55 if (
roi.crate() == roiTemp.
crate() &&
roi.jem() == roiTemp.
jem()) {
57 const int pos =
roi.frame();
120 for (
int frame = 0; frame <
s_frames; ++frame) {
146 for (
int frame = 0; frame <
s_frames; ++frame) {
154 frame, loc, enLarge, enSmall);
static const int s_energySmallBits
static const int s_framesPerPin
static const int s_wordIdVal
Header word ID.
static const int s_bunchCrossingPin
bool unpack()
Unpack data.
void clear()
Clear all data.
LVL1::JEMTobRoI roi(int frame) const
Return RoI for given frame.
static const int s_paddingBits
static const int s_frames
static const int s_bunchCrossingBits
static const int s_locationBits
void fillRoi(LVL1::JEMTobRoI roi)
Store RoI.
bool unpackNeutral()
Unpack neutral data.
bool packNeutral()
Pack neutral data.
void setRoiHeader(int version, int crate, int module)
Store header.
std::vector< LVL1::JEMTobRoI > m_roiData
RoIs.
static const int s_energyLargeBits
void setUnpackErrorCode(int code)
Set the unpacking error code.
bool unpackerSuccess() const
Return unpacker success flag.
void setHeader(int wordId, int version, int format, int seqno, int crate, int module, int slices2, int slices1)
Store header data.
bool unpackerNeutralParityError(int pin)
Unpack and test G-Link parity bit for given pin.
void clear()
Clear all data.
void packerNeutralParity(int pin)
Pack current G-Link parity bit for given pin.
uint32_t unpackerNeutral(int pin, int nbits)
Unpack given number of bits of neutral data for given pin.
int bunchCrossing() const
Return the Bunch Crossing number (neutral format only)
void packerNeutral(int pin, uint32_t datum, int nbits)
Pack given neutral data from given pin.
void setBunchCrossing(int bc)
Set the Bunch Crossing number (neutral format only)
int jem() const
Return JEM number (0-15)
int crate() const
Return crate number (0-1)