1 #ifndef EventFilter_GEMRawToDigi_GEBdata_h 2 #define EventFilter_GEMRawToDigi_GEBdata_h 25 m_Vwh = 0x0fff & (word >> 23);
26 m_ErrorC = 0b0001111111111111 & (word);
27 for(
int i=0;
i<13; ++
i)
65 m_Vwt = 0x0fff & (word >> 36);
66 m_InFu = 0x0f & (word >> 35);
68 m_OHBC = 0x0fff & (word >> 20);
69 m_OHEC = 0x000fffff & (word);
74 (static_cast<uint64_t>(
m_OHCRC) << 48) |
void setVwh(uint16_t n)
Sets VFAT word count (size of VFAT payload)
void setInputID(uint8_t n)
Sets GLIB input ID.
void setChamberHeader(uint64_t word)
Reads the word for the GEM Chamber Header. Puts the thirteen flags in a vector.
uint8_t stuckd() const
Returns Stuck data flag.
uint8_t m_InFu
(7 0's):7 InFIFO underflow:1
uint8_t m_Stuckd
(7 0's):7 Stuck data:1
uint8_t getGEBflag(int c) const
Returns one of thirteen flags from GEM chamber header.
uint16_t zeroSupWordsCnt() const
Returns Zero suppression words counter.
uint32_t ohEC() const
Returns Optohybrid EC.
uint16_t m_OHCRC
OH CRC:16.
void addVFAT(VFATdata v)
Adds VFAT data to the vector.
static const int sizeGebID
uint8_t m_InputID
Input ID:5 000:3.
void setChamberTrailer(uint64_t word)
Reads the word for GEM Chamber Trailer.
uint8_t inFu() const
Returns InFIFO underflow flag.
uint64_t getChamberTrailer() const
uint8_t inputID() const
Returns GLIB input ID.
std::vector< uint8_t > m_GEBflags
Vector for thirteen flags in GEM Chamber Header.
unsigned long long uint64_t
uint16_t errorC() const
Returns thirteen flags in GEM Chamber Header.
uint16_t m_ErrorC
Thirteen Flags, only one bit each.
uint16_t m_OHBC
OH BC, bits [31:20].
uint16_t ohCRC() const
Returns OH CRC.
uint32_t m_OHEC
OH EC, bits [19:0].
uint64_t getChamberHeader() const
uint16_t vwt() const
Returns VFAT word count.
uint16_t m_Vwh
VFAT word count:12 0000:4.
uint16_t m_ZeroSupWordsCnt
Zero suppressed words counter.
std::vector< VFATdata > m_vfatd
Vector of VFAT data.
uint16_t vwh() const
Returns VFAT word count (size of VFAT payload)
uint16_t m_Vwt
0000:4 VFAT word count:12
const std::vector< VFATdata > * vFATs() const
Returns the vector of FVAT data.
std::vector< uint8_t > getGEBflag() const
uint16_t ohBC() const
Returns Optohybrid BC.