Back to home page

sPhenix code displayed by LXR

 
 

    


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

0001 #ifndef __PACKET_FVTX_DCM0_H__
0002 #define __PACKET_FVTX_DCM0_H__
0003 
0004 
0005 #include <packet_w124.h>
0006 
0007 /**
0008    This is the packet which deals with data in PXL\_DCM0 format.
0009    It inherits from Packet\_w4 because the data are 32bit entities.
0010 */
0011 #ifndef __CINT__
0012 class WINDOWSEXPORT Packet_fvtx_dcm0 : public Packet_w4 {
0013 #else
0014 class  Packet_fvtx_dcm0 : public Packet_w4 {
0015 #endif
0016 
0017 public:
0018   Packet_fvtx_dcm0();
0019   Packet_fvtx_dcm0(PACKET_ptr);
0020   ~Packet_fvtx_dcm0();
0021 
0022 /** with the "what" parameter you can decide which aspect of
0023 the data is made available. This class is one of those which have
0024 several different "kinds" of data; we use this to bring up 
0025 the misc. items in the FEM headers and trailers.
0026 
0027 
0028 In addition, there is 
0029 \begin{verbatim}
0030   packet->iValue(0,"EVTNR")
0031   packet->iValue(0,"DETID")
0032   packet->iValue(0,"MODADDR")
0033   packet->iValue(0,"FLAG")
0034   packet->iValue(0,"BCLCK")
0035   packet->iValue(0,"CHECKPARITY")
0036 
0037   packet->iValue(0,"HITS")
0038   packet->iValue(i,"FEMID")   ==  packet->iValue(i,0)
0039   packet->iValue(i,"CHIPID")  ==  packet->iValue(i,1)
0040   packet->iValue(i,"CHANNEL") ==  packet->iValue(i,2)
0041   packet->iValue(i,"ADC")     ==  packet->iValue(i,3)
0042 
0043 
0044 \end{verbatim}
0045 */
0046 
0047 
0048   virtual int    iValue(const int channel,const char *what);
0049   virtual int    iValue(const int chip,const int what);
0050   virtual void  dump ( OSTREAM& ) ;
0051 
0052 
0053 protected:
0054   virtual int *decode (int *);
0055   virtual int *decode_misc (int *);
0056   int calculate_parity();
0057 
0058   int calculated_parity; 
0059   int parity_comparison; 
0060   int number_of_hits;
0061 
0062   int error_code;
0063 
0064 
0065 };
0066 
0067 #endif /* __PACKET_FVTX_DCM0_H__ */
0068 
0069 
0070