#include <GEBdata.h>
Public Member Functions | |
void | addVFAT (VFATdata v) |
Adds VFAT data to the vector. More... | |
uint16_t | errorC () const |
Returns thirteen flags in GEM Chamber Header. More... | |
GEBdata () | |
uint64_t | getChamberHeader () const |
uint64_t | getChamberTrailer () const |
uint8_t | getGEBflag (int c) const |
Returns one of thirteen flags from GEM chamber header. More... | |
std::vector< uint8_t > | getGEBflag () const |
uint8_t | inFu () const |
Returns InFIFO underflow flag. More... | |
uint8_t | inputID () const |
Returns GLIB input ID. More... | |
uint16_t | ohBC () const |
Returns Optohybrid BC. More... | |
uint16_t | ohCRC () const |
Returns OH CRC. More... | |
uint32_t | ohEC () const |
Returns Optohybrid EC. More... | |
void | setChamberHeader (uint64_t word) |
Reads the word for the GEM Chamber Header. Puts the thirteen flags in a vector. More... | |
void | setChamberTrailer (uint64_t word) |
Reads the word for GEM Chamber Trailer. More... | |
void | setInputID (uint8_t n) |
Sets GLIB input ID. More... | |
void | setVwh (uint16_t n) |
Sets VFAT word count (size of VFAT payload) More... | |
uint8_t | stuckd () const |
Returns Stuck data flag. More... | |
const std::vector< VFATdata > * | vFATs () const |
Returns the vector of FVAT data. More... | |
uint16_t | vwh () const |
Returns VFAT word count (size of VFAT payload) More... | |
uint16_t | vwt () const |
Returns VFAT word count. More... | |
uint16_t | zeroSupWordsCnt () const |
Returns Zero suppression words counter. More... | |
~GEBdata () | |
Static Public Attributes | |
static const int | sizeGebID = 5 |
Private Attributes | |
uint16_t | m_ErrorC |
Thirteen Flags, only one bit each. More... | |
std::vector< uint8_t > | m_GEBflags |
Vector for thirteen flags in GEM Chamber Header. More... | |
uint8_t | m_InFu |
(7 0's):7 InFIFO underflow:1 More... | |
uint8_t | m_InputID |
Input ID:5 000:3. More... | |
uint16_t | m_OHBC |
OH BC, bits [31:20]. More... | |
uint16_t | m_OHCRC |
OH CRC:16. More... | |
uint32_t | m_OHEC |
OH EC, bits [19:0]. More... | |
uint8_t | m_Stuckd |
(7 0's):7 Stuck data:1 More... | |
std::vector< VFATdata > | m_vfatd |
Vector of VFAT data. More... | |
uint16_t | m_Vwh |
VFAT word count:12 0000:4. More... | |
uint16_t | m_Vwt |
0000:4 VFAT word count:12 More... | |
uint16_t | m_ZeroSupWordsCnt |
Zero suppressed words counter. More... | |
|
inline |
|
inline |
|
inline |
Definition at line 32 of file GEBdata.h.
References m_ErrorC, m_InputID, m_Vwh, and m_ZeroSupWordsCnt.
|
inline |
|
inline |
Returns one of thirteen flags from GEM chamber header.
Argument must be between 0 and 12. The flags corresponding to a given argument are shown. 12->EvtFIFO full 11->InFIFO full 10->L1AFIFO full 9->Even size overflow 8->EvtFIFO near full 5->InFIFO near full 6->L1AFIFO near full 5->Event size warn 4->No VFAT marker 3->OOS GLIB VFAT 2->OOS GLIB OH 1->BX mismatch GLIB VFAT 0->BX mismatch GLIB OH
Definition at line 49 of file GEBdata.h.
References m_GEBflags.
|
inline |
Definition at line 53 of file GEBdata.h.
References m_GEBflags.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Reads the word for the GEM Chamber Header. Puts the thirteen flags in a vector.
Fills the Zero Suppression, GLIB Input ID, VFAT word count, and Thirteen Flags.
Zero suppressed words counter
<GLIB Input ID
<VFAT word count
<Thirteen Flags
Definition at line 21 of file GEBdata.h.
References mps_fire::i, m_ErrorC, m_GEBflags, m_InputID, m_Vwh, and m_ZeroSupWordsCnt.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Returns Zero suppression words counter.
Definition at line 85 of file GEBdata.h.
References m_ZeroSupWordsCnt.
|
private |
Thirteen Flags, only one bit each.
000:3 EvtFIFO full:1 InFIFO full:1 L1AFIFO full:1 Even size overflow:1 EvtFIFO near full:1 InFIFO near full:1 L1AFIFO near full:1 Event size warn:1 No VFAT marker:1 OOS GLIB VFAT:1 OOS GLIB OH:1 BX mismatch GLIB VFAT:1 BX mismatch GLIB OH:1
Definition at line 124 of file GEBdata.h.
Referenced by errorC(), getChamberHeader(), and setChamberHeader().
|
private |
Vector for thirteen flags in GEM Chamber Header.
Definition at line 106 of file GEBdata.h.
Referenced by getGEBflag(), and setChamberHeader().
|
private |
(7 0's):7 InFIFO underflow:1
Input status (critical): Input FIFO underflow occured while sending this event
Definition at line 136 of file GEBdata.h.
Referenced by getChamberTrailer(), inFu(), and setChamberTrailer().
|
private |
Input ID:5 000:3.
GLIB input ID (starting at 0)
Definition at line 114 of file GEBdata.h.
Referenced by getChamberHeader(), inputID(), setChamberHeader(), and setInputID().
|
private |
OH BC, bits [31:20].
Definition at line 141 of file GEBdata.h.
Referenced by getChamberTrailer(), ohBC(), and setChamberTrailer().
|
private |
OH CRC:16.
CRC of OH data (currently not available)
Definition at line 130 of file GEBdata.h.
Referenced by getChamberTrailer(), ohCRC(), and setChamberTrailer().
|
private |
OH EC, bits [19:0].
Definition at line 143 of file GEBdata.h.
Referenced by getChamberTrailer(), ohEC(), and setChamberTrailer().
|
private |
(7 0's):7 Stuck data:1
Input status (warning): Data in InFIFO or EvtFIFO when L1A FIFO was empty. Only resets with resync or reset
Definition at line 139 of file GEBdata.h.
Referenced by getChamberTrailer(), setChamberTrailer(), and stuckd().
|
private |
Vector of VFAT data.
Definition at line 105 of file GEBdata.h.
Referenced by addVFAT(), vFATs(), and ~GEBdata().
|
private |
VFAT word count:12 0000:4.
Size of VFAT payload in 64 bit words
Definition at line 117 of file GEBdata.h.
Referenced by getChamberHeader(), setChamberHeader(), setVwh(), and vwh().
|
private |
0000:4 VFAT word count:12
Same as in header. This one actually counts the number of valid words that were sent to AMC13; the one in header is what we expected to send to AMC13
Definition at line 133 of file GEBdata.h.
Referenced by getChamberTrailer(), setChamberTrailer(), and vwt().
|
private |
Zero suppressed words counter.
Definition at line 111 of file GEBdata.h.
Referenced by getChamberHeader(), setChamberHeader(), and zeroSupWordsCnt().