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 public:
9  explicit GEMAMCStatusDigi(const uint8_t AMCnum_,
10  const uint32_t L1A_,
11  const uint16_t BX_,
12  const uint32_t Dlength_,
13  const uint8_t FV_,
14  const uint8_t Rtype_,
15  const uint8_t Param1_,
16  const uint8_t Param2_,
17  const uint8_t Param3_,
18  const uint16_t Onum_,
19  const uint16_t BID_,
20  const uint32_t GEMDAV_,
21  const uint64_t Bstatus_,
22  const uint8_t GDcount_,
23  const uint8_t Tstate_,
24  const uint32_t ChamT_,
25  const uint8_t OOSG);
26 
28 
29  uint8_t AMCnum() const { return m_AMCnum; }
30  uint32_t L1A() const { return m_L1A; }
31  uint16_t BX() const { return m_BX; }
32  uint32_t Dlength() const { return m_Dlength; }
33 
34  uint8_t FV() const { return m_FV; }
35  uint8_t Rtype() const { return m_Rtype; }
36  uint8_t Param1() const { return m_Param1; }
37  uint8_t Param2() const { return m_Param2; }
38  uint8_t Param3() const { return m_Param3; }
39  uint16_t Onum() const { return m_Onum; }
40  uint16_t BID() const { return m_BID; }
41 
42  uint32_t GEMDAV() const { return m_GEMDAV; }
43  uint64_t Bstatus() const { return m_Bstatus; }
44  int GDcount() const { return unsigned(m_GDcount); }
45  uint8_t Tstate() const { return m_Tstate; }
46 
47  uint32_t ChamT() const { return m_ChamT; }
48  uint8_t OOSG() const { return m_OOSG; }
49 
50  uint32_t CRC() const { return m_CRC; }
51  uint8_t L1AT() const { return m_L1AT; }
52  uint32_t DlengthT() const { return m_DlengthT; }
53 
54 private:
55  uint8_t m_AMCnum;
56  uint32_t m_L1A;
57  uint16_t m_BX;
58  uint32_t m_Dlength;
59 
60  uint8_t m_FV;
61  uint8_t m_Rtype;
62  uint8_t m_Param1;
63  uint8_t m_Param2;
64  uint8_t m_Param3;
65  uint16_t m_Onum;
66  uint16_t m_BID;
67 
68  uint32_t m_GEMDAV;
70  uint8_t m_GDcount;
71  uint8_t m_Tstate;
72 
73  uint32_t m_ChamT;
74  uint8_t m_OOSG;
75 
76  uint32_t m_CRC;
77  uint8_t m_L1AT;
78  uint32_t m_DlengthT;
79 };
80 #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:13
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