Back to home page

sPhenix code displayed by LXR

 
 

    


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

0001 #ifndef __PACKET_hbd_fpga_H__
0002 #define __PACKET_hbd_fpga_H__
0003 
0004 
0005 #include "packet_w124.h"
0006 
0007 /**
0008    This is the packet which deals with data in hbd_fpga format.
0009    It inherits from Packet\_w4 because the data are 32bit entities.
0010 */
0011 
0012 #ifndef __CINT__
0013 class WINDOWSEXPORT Packet_hbd_fpga : public Packet_w4{ 
0014 #else
0015 class  Packet_hbd_fpga : public Packet_w4 {
0016 #endif
0017 
0018 public:
0019   Packet_hbd_fpga(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 
0038   int setInternalParameter ( const int ns, const int x, const char *what = "")
0039   { return setNumSamples(ns);};
0040 
0041 
0042  protected:
0043 
0044   int  setNumSamples(const int ns) { HBD_NSAMPLES = ns; return 0; }
0045 
0046   virtual int *decode (int *);
0047   int nr_modules;
0048   int HBD_NSAMPLES;
0049 
0050 };
0051 
0052 #endif /* __PACKET_hbd_fpga_H__ */
0053 
0054