Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
packet_iddigitizerv3.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file packet_iddigitizerv3.h
1 #ifndef __PACKET_IDDIGITIZERV3_H__
2 #define __PACKET_IDDIGITIZERV3_H__
3 
4 
5 #include "packet_w124.h"
6 
7 #ifndef __CINT__
9 #else
10 class Packet_iddigitizerv3 : public Packet_w4 {
11 #endif
12 
13 public:
16 
17  int iValue(const int sample, const int ch);
18  int iValue(const int ,const char * what);
19  void dump ( OSTREAM& os = COUT) ;
20 
21 
22 protected:
23  int decode ();
24  unsigned int decode_FEM ( unsigned int *k, const int fem_nr, const int len);
25 
26  int _broken;
27 
28 #define NR_FEMS 4
29 
30  // header info per packet
31  int _evtnr;
32  int _flagword;
33  int _detid;
36 
37  // info per FEM
38  int _fem_slot[NR_FEMS];
39  int _fem_evtnr[NR_FEMS];
40  int _fem_clock[NR_FEMS];
41 
42  int _fem_checksum_MSB[NR_FEMS];
43  int _fem_checksum_LSB[NR_FEMS];
44  int _fem_calculated_checksum_MSB[NR_FEMS];
45  int _fem_calculated_checksum_LSB[NR_FEMS];
46 
47  int _nsamples;
49 
52 
53  bool isZeroSuppressed[NR_FEMS*64];
55 
56  int adc[32][NR_FEMS*64];
57  int pre_post[2][NR_FEMS*64];
58 
59 
60 };
61 
62 
63 #endif /* __PACKET_IDDIGITIZERV3_H__ */