#include <AMCdata.h>
Public Member Functions | |
void | addGEB (GEBdata g) |
Adds GEB data to vector. More... | |
AMCdata () | |
Constructor for the class. More... | |
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_) | |
uint8_t | amcNum () const |
Returns AMC number. More... | |
uint16_t | boardId () const |
Returns Board ID. More... | |
uint64_t | bStatus () const |
Returns Buffer status. More... | |
uint16_t | bx () const |
Returns Bunch Crossing ID. More... | |
uint32_t | chamberTimeOut () const |
Return Chamber Timeout. More... | |
uint32_t | crc () const |
uint32_t | dlength () const |
Returns Data Length (Overall size of FED event fragment) More... | |
uint32_t | dlengthT () const |
uint8_t | fv () const |
Returns Format Version. More... | |
uint8_t | gdCount () const |
Returns GEM DAV count (number of chamber blocks) More... | |
const std::vector< GEBdata > * | gebs () const |
Returns a vector of GEB data. More... | |
uint32_t | gemDAV () const |
Returns GEM DAV list (which chambers have data) More... | |
uint64_t | getAMCheader1 () const |
uint64_t | getAMCheader2 () const |
uint64_t | getAMCTrailer () const |
uint64_t | getGEMeventHeader () const |
uint64_t | getGEMeventTrailer () const |
uint32_t | l1A () const |
Returns L1A number. More... | |
uint8_t | l1AT () const |
uint8_t | oosGLIB () const |
Return OOS GLIB (if GLIB is out of sync) More... | |
uint16_t | orbitNum () const |
Returns Orbit number. More... | |
uint8_t | param1 () const |
uint8_t | param2 () const |
uint8_t | param3 () const |
uint8_t | runType () const |
Returns Run Type. More... | |
void | setAMCheader1 (uint64_t word) |
Reads the word for AMC Header. More... | |
void | setAMCheader2 (uint64_t word) |
Reads the word for the AMC Header 2. More... | |
void | setAMCnum (uint8_t n) |
Returns AMC number. More... | |
void | setAMCTrailer (uint64_t word) |
Reads the word for the AMC Trailer. More... | |
void | setBID (uint16_t n) |
Returns Board ID. More... | |
void | setBstatus (uint64_t n) |
Returns Buffer status. More... | |
void | setBX (uint16_t n) |
Returns Bunch Crossing ID. More... | |
void | setChamT (uint32_t n) |
Return Chamber Timeout. More... | |
void | setCRC (uint32_t n) |
void | setDlength (uint32_t n) |
Returns Data Length (Overall size of FED event fragment) More... | |
void | setDlengthT (uint32_t n) |
void | setFV (uint8_t n) |
Returns Format Version. More... | |
void | setGDcount (uint8_t n) |
Returns GEM DAV count (number of chamber blocks) More... | |
void | setGEMDAV (uint32_t n) |
Returns GEM DAV list (which chambers have data) More... | |
void | setGEMeventHeader (uint64_t word) |
Reads the word for the GEM Event Header. More... | |
void | setGEMeventTrailer (uint64_t word) |
Reads the word for the GEM Event Trailer. More... | |
void | setL1A (uint32_t n) |
Returns L1A number. More... | |
void | setL1AT (uint8_t n) |
void | setOnum (uint16_t n) |
Returns Orbit number. More... | |
void | setOOSG (uint8_t n) |
Return OOS GLIB (if GLIB is out of sync) More... | |
void | setParam1 (uint8_t n) |
void | setParam2 (uint8_t n) |
void | setParam3 (uint8_t n) |
void | setRtype (uint8_t n) |
Returns Run Type. More... | |
void | setTstate (uint8_t n) |
Returns TTS state. More... | |
uint8_t | ttsState () const |
Returns TTS state. More... | |
~AMCdata () | |
Destructor for the class. More... | |
Private Attributes | |
std::vector< GEBdata > | gebd |
Vector of GEB data. More... | |
uint8_t | m_AMCnum |
0000:4 AMC#:4 More... | |
uint16_t | m_BID |
Board ID:16. More... | |
uint64_t | m_Bstatus |
(30 zeroes):30 Buffer Status:34 More... | |
uint16_t | m_BX |
0000:4 BX ID:12 More... | |
uint32_t | m_ChamT |
(8 zeroes):8 Chamber timeout:24 More... | |
uint32_t | m_CRC |
uint32_t | m_Dlength |
(12 zeroes):12 Data length:20 More... | |
uint32_t | m_DlengthT |
uint8_t | m_FV |
uint8_t | m_GDcount |
000:3 GEM DAV count:5 More... | |
uint32_t | m_GEMDAV |
(8 zeroes):8 GEM DAV list:24 More... | |
uint32_t | m_L1A |
(8 zeroes):8 L1A ID:24 More... | |
uint8_t | m_L1AT |
uint16_t | m_Onum |
uint8_t | m_OOSG |
(7 zeroes):7 OOS GLIB:1 More... | |
uint8_t | m_Param1 |
Run param1:8. More... | |
uint8_t | m_Param2 |
Run param2:8. More... | |
uint8_t | m_Param3 |
Run param3:8. More... | |
uint8_t | m_Rtype |
0000:4 Run Type:4 More... | |
uint8_t | m_Tstate |
0000:4 TTS state:4 More... | |
|
inline |
|
inline |
|
inline |
|
inline |
Adds GEB data to vector.
Definition at line 191 of file AMCdata.h.
References gebd.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Reads the word for the AMC Trailer.
Definition at line 127 of file AMCdata.h.
References m_CRC, m_DlengthT, and m_L1AT.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Vector of GEB data.
Definition at line 196 of file AMCdata.h.
Referenced by addGEB(), gebs(), and ~AMCdata().
|
private |
0000:4 AMC#:4
Slot number of AMC(GLIB/MP7/EC7, etc.)
Definition at line 202 of file AMCdata.h.
Referenced by amcNum(), getAMCheader1(), setAMCheader1(), and setAMCnum().
|
private |
Board ID:16.
This is currently filled with 8bit long GLIB serial number
Definition at line 225 of file AMCdata.h.
Referenced by boardId(), getAMCheader2(), setAMCheader2(), and setBID().
|
private |
(30 zeroes):30 Buffer Status:34
Bitmask indicating buffer error in given inputs
Definition at line 234 of file AMCdata.h.
Referenced by bStatus(), getGEMeventHeader(), setBstatus(), and setGEMeventHeader().
|
private |
0000:4 BX ID:12
Bunch crossing ID
Definition at line 208 of file AMCdata.h.
Referenced by bx(), getAMCheader1(), setAMCheader1(), and setBX().
|
private |
(8 zeroes):8 Chamber timeout:24
Bitmask indicating if GLIB did not recieve data from particular input for this L1A in X amount of GTX clock cycles
Definition at line 246 of file AMCdata.h.
Referenced by chamberTimeOut(), getGEMeventTrailer(), setChamT(), and setGEMeventTrailer().
|
private |
Definition at line 253 of file AMCdata.h.
Referenced by crc(), getAMCTrailer(), setAMCTrailer(), and setCRC().
|
private |
(12 zeroes):12 Data length:20
Overall size of this FED event fragment in 64bit words (including headers and trailers)
Definition at line 211 of file AMCdata.h.
Referenced by dlength(), getAMCheader1(), setAMCheader1(), and setDlength().
|
private |
Definition at line 255 of file AMCdata.h.
Referenced by dlengthT(), getAMCTrailer(), setAMCTrailer(), and setDlengthT().
|
private |
0000:4 Format Version:4
Definition at line 215 of file AMCdata.h.
Referenced by fv(), getAMCheader2(), setAMCheader2(), and setFV().
|
private |
000:3 GEM DAV count:5
Number of chamber blocks
Definition at line 237 of file AMCdata.h.
Referenced by gdCount(), getGEMeventHeader(), setGDcount(), and setGEMeventHeader().
|
private |
(8 zeroes):8 GEM DAV list:24
Bitmask indicating which inputs/chambers have data
Definition at line 231 of file AMCdata.h.
Referenced by gemDAV(), getGEMeventHeader(), setGEMDAV(), and setGEMeventHeader().
|
private |
(8 zeroes):8 L1A ID:24
Basically like event number, but reset by resync
Definition at line 205 of file AMCdata.h.
Referenced by getAMCheader1(), l1A(), setAMCheader1(), and setL1A().
|
private |
Definition at line 254 of file AMCdata.h.
Referenced by getAMCTrailer(), l1AT(), setAMCTrailer(), and setL1AT().
|
private |
Orbit number:16
Definition at line 222 of file AMCdata.h.
Referenced by getAMCheader2(), orbitNum(), setAMCheader2(), and setOnum().
|
private |
(7 zeroes):7 OOS GLIB:1
GLIB is out-of-sync (critical): L1A ID is different for different chambers in this event.
Definition at line 249 of file AMCdata.h.
Referenced by getGEMeventTrailer(), oosGLIB(), setGEMeventTrailer(), and setOOSG().
|
private |
Run param1:8.
Definition at line 219 of file AMCdata.h.
Referenced by getAMCheader2(), param1(), setAMCheader2(), and setParam1().
|
private |
Run param2:8.
Definition at line 220 of file AMCdata.h.
Referenced by getAMCheader2(), param2(), setAMCheader2(), and setParam2().
|
private |
Run param3:8.
Definition at line 221 of file AMCdata.h.
Referenced by getAMCheader2(), param3(), setAMCheader2(), and setParam3().
|
private |
0000:4 Run Type:4
Current version = 0x0; Could be used to encode run types like physics, cosmics, threshold scan, etc.
Definition at line 218 of file AMCdata.h.
Referenced by getAMCheader2(), runType(), setAMCheader2(), and setRtype().
|
private |
0000:4 TTS state:4
Debug: GLIB TTS state at the moment when this event was built
Definition at line 240 of file AMCdata.h.
Referenced by getGEMeventHeader(), setGEMeventHeader(), setTstate(), and ttsState().