CMS 3D CMS Logo

GEMAMCStatusDigi.h
Go to the documentation of this file.
1 #ifndef DataFormats_GEMDigi_GEMAMCStatusDigi_H
2 #define DataFormats_GEMDigi_GEMAMCStatusDigi_H
3 
4 #include <cstdint>
5 #include <vector>
6 
8 
9  public:
10  explicit GEMAMCStatusDigi(const uint8_t AMCnum_,
11  const uint32_t L1A_,
12  const uint16_t BX_,
13  const uint32_t Dlength_,
14  const uint8_t FV_,
15  const uint8_t Rtype_,
16  const uint8_t Param1_,
17  const uint8_t Param2_,
18  const uint8_t Param3_,
19  const uint16_t Onum_,
20  const uint16_t BID_,
21  const uint32_t GEMDAV_,
22  const uint64_t Bstatus_,
23  const uint8_t GDcount_,
24  const uint8_t Tstate_,
25  const uint32_t ChamT_,
26  const uint8_t OOSG);
27 
28 
29 
31 
32  uint8_t AMCnum() const {return m_AMCnum;}
33  uint32_t L1A() const {return m_L1A;}
34  uint16_t BX() const {return m_BX;}
35  uint32_t Dlength() const {return m_Dlength;}
36 
37  uint8_t FV() const {return m_FV;}
38  uint8_t Rtype() const {return m_Rtype;}
39  uint8_t Param1() const {return m_Param1;}
40  uint8_t Param2() const {return m_Param2;}
41  uint8_t Param3() const {return m_Param3;}
42  uint16_t Onum() const {return m_Onum;}
43  uint16_t BID() const {return m_BID;}
44 
45  uint32_t GEMDAV () const {return m_GEMDAV;}
46  uint64_t Bstatus() const {return m_Bstatus;}
47  int GDcount() const {return unsigned(m_GDcount);}
48  uint8_t Tstate() const {return m_Tstate;}
49 
50  uint32_t ChamT() const {return m_ChamT;}
51  uint8_t OOSG() const {return m_OOSG;}
52 
53  uint32_t CRC() const {return m_CRC;}
54  uint8_t L1AT() const {return m_L1AT;}
55  uint32_t DlengthT() const {return m_DlengthT;}
56 
57 
58 
59  private:
60 
61  uint8_t m_AMCnum;
62  uint32_t m_L1A;
63  uint16_t m_BX;
64  uint32_t m_Dlength;
65 
66 
67 
68  uint8_t m_FV;
69  uint8_t m_Rtype;
70  uint8_t m_Param1;
71  uint8_t m_Param2;
72  uint8_t m_Param3;
73  uint16_t m_Onum;
74  uint16_t m_BID;
75 
76 
77  uint32_t m_GEMDAV;
79  uint8_t m_GDcount;
80  uint8_t m_Tstate;
81 
82 
83  uint32_t m_ChamT;
84  uint8_t m_OOSG;
85 
86  uint32_t m_CRC;
87  uint8_t m_L1AT;
88  uint32_t m_DlengthT;
89 
90 
91 };
92 #endif
uint32_t DlengthT() const
uint16_t BX() const
Returns Bunch Crossing ID.
uint32_t ChamT() const
Return Chamber Timeout.
uint16_t m_Onum
Orbit number:16.
uint8_t m_FV
0000:4 Format Version:4
uint8_t Rtype() const
Returns Run Type.
uint8_t Param2() const
uint8_t L1AT() const
uint8_t AMCnum() const
Returns AMC number.
uint8_t m_Param2
Run param2:8.
uint32_t GEMDAV() const
Returns GEM DAV list (which chambers have data)
uint32_t CRC() const
uint8_t Tstate() const
Returns TTS state.
uint16_t Onum() const
Returns Orbit number.
uint8_t FV() const
Returns Format Version.
uint8_t m_Param1
Run param1:8.
uint8_t m_Param3
Run param3:8.
unsigned long long uint64_t
Definition: Time.h:15
uint16_t BID() const
Returns Board ID.
uint8_t OOSG() const
Return OOS GLIB (if GLIB is out of sync)
int GDcount() const
Returns GEM DAV count (number of chamber blocks)
uint32_t L1A() const
Returns L1A number.
uint32_t Dlength() const
Returns Data Length (Overall size of FED event fragment)
uint8_t Param1() const
uint64_t Bstatus() const
Returns Buffer status.
uint8_t Param3() const