1 #ifndef EventFilter_GEMRawToDigi_AMCdata_h 2 #define EventFilter_GEMRawToDigi_AMCdata_h 18 const uint32_t Dlength_,
21 const uint8_t Param1_,
22 const uint8_t Param2_,
23 const uint8_t Param3_,
26 const uint32_t GEMDAV_,
28 const uint8_t GDcount_,
29 const uint8_t Tstate_,
30 const uint32_t ChamT_,
31 const uint8_t OOSG_) :
57 m_L1A = 0x00ffffff & (word >> 32);
58 m_BX = 0x0fff & (word >> 20);
64 (static_cast<uint64_t>(
m_AMCnum & 0x0f) << 56) |
74 m_FV = 0x0f & (word >> 60);
85 (static_cast<uint64_t>(
m_FV & 0x0f) << 60) |
98 m_GEMDAV = 0x00ffffff & (word >> 40);
106 (static_cast<uint64_t>(
m_GEMDAV & 0x00ffffff) << 40) |
116 m_ChamT = 0x00ffffff & (word >> 40);
117 m_OOSG = 0b00000001 & (word >> 39);
122 (static_cast<uint64_t>(
m_ChamT & 0x00ffffff) << 40) |
136 (static_cast<uint64_t>(
m_CRC) << 32) |
193 const std::vector<GEBdata> *
gebs()
const {
return &
gebd;}
uint32_t chamberTimeOut() const
Return Chamber Timeout.
void setParam2(uint8_t n)
void setGEMDAV(uint32_t n)
Returns GEM DAV list (which chambers have data)
uint64_t getAMCTrailer() const
uint32_t m_Dlength
(12 zeroes):12 Data length:20
void setBID(uint16_t n)
Returns Board ID.
const std::vector< GEBdata > * gebs() const
Returns a vector of GEB data.
uint8_t ttsState() const
Returns TTS state.
void setBstatus(uint64_t n)
Returns Buffer status.
uint8_t amcNum() const
Returns AMC number.
uint8_t m_AMCnum
0000:4 AMC#:4
uint16_t orbitNum() const
Returns Orbit number.
uint32_t m_ChamT
(8 zeroes):8 Chamber timeout:24
uint32_t dlength() const
Returns Data Length (Overall size of FED event fragment)
void setParam1(uint8_t n)
void setBX(uint16_t n)
Returns Bunch Crossing ID.
uint32_t m_L1A
(8 zeroes):8 L1A ID:24
void setDlength(uint32_t n)
Returns Data Length (Overall size of FED event fragment)
void setRtype(uint8_t n)
Returns Run Type.
uint8_t m_OOSG
(7 zeroes):7 OOS GLIB:1
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
uint16_t boardId() const
Returns Board ID.
AMCdata()
Constructor for the class.
uint16_t bx() const
Returns Bunch Crossing ID.
uint8_t m_Param1
Run param1:8.
uint8_t runType() const
Returns Run Type.
void setAMCheader1(uint64_t word)
Reads the word for AMC Header.
uint32_t dlengthT() const
uint32_t m_GEMDAV
(8 zeroes):8 GEM DAV list:24
void setGEMeventHeader(uint64_t word)
Reads the word for the GEM Event Header.
void setOOSG(uint8_t n)
Return OOS GLIB (if GLIB is out of sync)
uint64_t getGEMeventTrailer() const
uint8_t m_Param2
Run param2:8.
void setDlengthT(uint32_t n)
~AMCdata()
Destructor for the class.
uint32_t l1A() const
Returns L1A number.
uint8_t gdCount() const
Returns GEM DAV count (number of chamber blocks)
uint8_t m_Rtype
0000:4 Run Type:4
void setAMCTrailer(uint64_t word)
Reads the word for the AMC Trailer.
uint8_t fv() const
Returns Format Version.
void setTstate(uint8_t n)
Returns TTS state.
void setFV(uint8_t n)
Returns Format Version.
void setAMCnum(uint8_t n)
Returns AMC number.
uint64_t m_Bstatus
(30 zeroes):30 Buffer Status:34
AMCdata(const uint8_t AMCnum_, const uint32_t L1A_, const uint16_t BX_, const uint32_t Dlength_, const uint8_t FV_, const uint8_t Rtype_, const uint8_t Param1_, const uint8_t Param2_, const uint8_t Param3_, const uint16_t Onum_, const uint16_t BID_, const uint32_t GEMDAV_, const uint64_t Bstatus_, const uint8_t GDcount_, const uint8_t Tstate_, const uint32_t ChamT_, const uint8_t OOSG_)
uint64_t getAMCheader2() const
uint32_t gemDAV() const
Returns GEM DAV list (which chambers have data)
unsigned long long uint64_t
void setChamT(uint32_t n)
Return Chamber Timeout.
void setParam3(uint8_t n)
void setL1A(uint32_t n)
Returns L1A number.
uint8_t oosGLIB() const
Return OOS GLIB (if GLIB is out of sync)
uint16_t m_BID
Board ID:16.
void setOnum(uint16_t n)
Returns Orbit number.
void setGDcount(uint8_t n)
Returns GEM DAV count (number of chamber blocks)
void setGEMeventTrailer(uint64_t word)
Reads the word for the GEM Event Trailer.
uint64_t bStatus() const
Returns Buffer status.
uint8_t m_Param3
Run param3:8.
uint64_t getGEMeventHeader() const
void setAMCheader2(uint64_t word)
Reads the word for the AMC Header 2.
std::vector< GEBdata > gebd
Vector of GEB data.
uint8_t m_GDcount
000:3 GEM DAV count:5
void addGEB(GEBdata g)
Adds GEB data to vector.
uint8_t m_Tstate
0000:4 TTS state:4
uint16_t m_BX
0000:4 BX ID:12
uint64_t getAMCheader1() const