#include <GEBdata.h>
Definition at line 10 of file GEBdata.h.
gem::GEBdata::GEBdata |
( |
| ) |
|
|
inline |
gem::GEBdata::~GEBdata |
( |
| ) |
|
|
inline |
Definition at line 14 of file GEBdata.h.
References m_vfatd.
std::vector< VFATdata > m_vfatd
Vector of VFAT data.
void gem::GEBdata::addVFAT |
( |
VFATdata |
v | ) |
|
|
inline |
Adds VFAT data to the vector.
Definition at line 92 of file GEBdata.h.
References m_vfatd.
std::vector< VFATdata > m_vfatd
Vector of VFAT data.
uint16_t gem::GEBdata::errorC |
( |
| ) |
const |
|
inline |
uint64_t gem::GEBdata::getChamberHeader |
( |
| ) |
const |
|
inline |
Definition at line 32 of file GEBdata.h.
References m_ErrorC, m_InputID, m_Vwh, and m_ZeroSup.
35 (static_cast<uint64_t>(
m_ZeroSup & 0x00ffffff) << 40) |
uint8_t m_InputID
Input ID:5 000:3.
uint32_t m_ZeroSup
Zero Suppression Flags:24 (8 zeroes):8.
unsigned long long uint64_t
uint16_t m_ErrorC
Thirteen Flags, only one bit each.
uint16_t m_Vwh
VFAT word count:12 0000:4.
uint64_t gem::GEBdata::getChamberTrailer |
( |
| ) |
const |
|
inline |
Definition at line 69 of file GEBdata.h.
References m_InFu, m_OHCRC, m_Stuckd, and m_Vwt.
72 (static_cast<uint64_t>(
m_OHCRC) << 48) |
uint8_t m_InFu
(7 0's):7 InFIFO underflow:1
uint8_t m_Stuckd
(7 0's):7 Stuck data:1
uint16_t m_OHCRC
OH CRC:16.
unsigned long long uint64_t
uint16_t m_Vwt
0000:4 VFAT word count:12
uint8_t gem::GEBdata::getGEBflag |
( |
int |
c | ) |
const |
|
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.
std::vector< uint8_t > m_GEBflags
Vector for thirteen flags in GEM Chamber Header.
std::vector<uint8_t> gem::GEBdata::getGEBflag |
( |
| ) |
const |
|
inline |
Definition at line 53 of file GEBdata.h.
References m_GEBflags.
std::vector< uint8_t > m_GEBflags
Vector for thirteen flags in GEM Chamber Header.
uint8_t gem::GEBdata::inFu |
( |
| ) |
const |
|
inline |
Returns InFIFO underflow flag.
Definition at line 88 of file GEBdata.h.
References m_InFu.
uint8_t gem::GEBdata::inputID |
( |
| ) |
const |
|
inline |
uint16_t gem::GEBdata::ohCRC |
( |
| ) |
const |
|
inline |
void gem::GEBdata::setChamberHeader |
( |
uint64_t |
word | ) |
|
|
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 Suppression
<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_ZeroSup.
25 m_Vwh = 0x0fff & (word >> 23);
26 m_ErrorC = 0b0001111111111111 & (word);
27 for(
int i=0;
i<13; ++
i)
uint8_t m_InputID
Input ID:5 000:3.
std::vector< uint8_t > m_GEBflags
Vector for thirteen flags in GEM Chamber Header.
uint32_t m_ZeroSup
Zero Suppression Flags:24 (8 zeroes):8.
uint16_t m_ErrorC
Thirteen Flags, only one bit each.
uint16_t m_Vwh
VFAT word count:12 0000:4.
void gem::GEBdata::setChamberTrailer |
( |
uint64_t |
word | ) |
|
|
inline |
Reads the word for GEM Chamber Trailer.
Fills the OH CRC, VFAT word count, InFIFO underflow, and Stuck data.
<OH CRC
<VFAT word count
<InFIFO underflow
<Stuck data
Definition at line 62 of file GEBdata.h.
References m_InFu, m_OHCRC, m_Stuckd, and m_Vwt.
65 m_Vwt = 0x0fff & (word >> 36);
66 m_InFu = 0x0f & (word >> 35);
uint8_t m_InFu
(7 0's):7 InFIFO underflow:1
uint8_t m_Stuckd
(7 0's):7 Stuck data:1
uint16_t m_OHCRC
OH CRC:16.
uint16_t m_Vwt
0000:4 VFAT word count:12
void gem::GEBdata::setInputID |
( |
uint8_t |
n | ) |
|
|
inline |
void gem::GEBdata::setVwh |
( |
uint16_t |
n | ) |
|
|
inline |
Sets VFAT word count (size of VFAT payload)
Definition at line 78 of file GEBdata.h.
References m_Vwh, and gen::n.
uint8_t gem::GEBdata::stuckd |
( |
| ) |
const |
|
inline |
const std::vector<VFATdata>* gem::GEBdata::vFATs |
( |
| ) |
const |
|
inline |
Returns the vector of FVAT data.
Definition at line 94 of file GEBdata.h.
References m_vfatd.
std::vector< VFATdata > m_vfatd
Vector of VFAT data.
uint16_t gem::GEBdata::vwh |
( |
| ) |
const |
|
inline |
Returns VFAT word count (size of VFAT payload)
Definition at line 83 of file GEBdata.h.
References m_Vwh.
uint16_t gem::GEBdata::vwt |
( |
| ) |
const |
|
inline |
Returns VFAT word count.
Definition at line 87 of file GEBdata.h.
References m_Vwt.
uint32_t gem::GEBdata::zeroSup |
( |
| ) |
const |
|
inline |
uint16_t gem::GEBdata::m_ErrorC |
|
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 119 of file GEBdata.h.
Referenced by errorC(), getChamberHeader(), and setChamberHeader().
std::vector<uint8_t> gem::GEBdata::m_GEBflags |
|
private |
uint8_t gem::GEBdata::m_InFu |
|
private |
uint8_t gem::GEBdata::m_InputID |
|
private |
uint16_t gem::GEBdata::m_OHCRC |
|
private |
uint8_t gem::GEBdata::m_Stuckd |
|
private |
std::vector<VFATdata> gem::GEBdata::m_vfatd |
|
private |
uint16_t gem::GEBdata::m_Vwh |
|
private |
uint16_t gem::GEBdata::m_Vwt |
|
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 128 of file GEBdata.h.
Referenced by getChamberTrailer(), setChamberTrailer(), and vwt().
uint32_t gem::GEBdata::m_ZeroSup |
|
private |
const int gem::GEBdata::sizeGebID = 5 |
|
static |