Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-03 08:20:40

0001 #ifndef __PACKET_hbd_fpgashort_H__
0002 #define __PACKET_hbd_fpgashort_H__
0003 
0004 
0005 #include "packet_w124.h"
0006 
0007 /**
0008    This is the packet which deals with data in hbd_fpgashort format.
0009    It inherits from Packet\_w4 because the data are 32bit entities.
0010 */
0011 
0012 #ifndef __CINT__
0013 class WINDOWSEXPORT Packet_hbd_fpgashort : public Packet_w4{ 
0014 #else
0015 class  Packet_hbd_fpgashort : public Packet_w4 {
0016 #endif
0017 
0018 public:
0019   Packet_hbd_fpgashort(PACKET_ptr);
0020 
0021   /** with the "what" parameter you can decide which aspect of
0022  the data is made available. This class is one of those which have
0023  several different "kinds" of data; we use this to bring up the AMU
0024  cell information and all the misc. items in the FEM headers and
0025  trailers.
0026 
0027 
0028   */
0029 
0030 
0031 
0032   virtual int    iValue(const int channel,const char *what);
0033   virtual int    iValue(const int channel,const int y);
0034 
0035   
0036   virtual void   dump ( OSTREAM& );
0037   int setInternalParameter ( const int ns, const int x, const char *what = "")
0038   { return setNumSamples(ns);};
0039 
0040  protected:
0041   int setNumSamples(const int ns) { HBD_NSAMPLES = ns; return 0;}
0042 
0043   virtual int *decode (int *);
0044   int nr_modules;
0045   int HBD_NSAMPLES;
0046   int hbd_parity;
0047 };
0048 
0049 #endif /* __PACKET_hbd_fpgashort_H__ */
0050 
0051