52 if (
roi.crate() == roiTemp.
crate() &&
roi.cpm() == roiTemp.
cpm()) {
54 const int pin = (
roi.chip() << 1) |
64 const int pin = (chip << 1) | (loc & 0x1);
144 const int chip = pin >> 1;
bool packNeutral()
Pack neutral data.
void clear()
Clear all data.
LVL1::CPMRoI roi(int chip, int loc) const
Return RoI for given chip and location (left/right)
static const int s_bunchCrossingBits
std::vector< LVL1::CPMRoI > m_roiData
RoI words.
static const int s_wordIdVal
Header word ID.
void fillRoi(LVL1::CPMRoI roi)
Store RoI.
void setRoiHeader(int version, int crate, int module)
Store header.
bool unpackNeutral()
Unpack neutral data.
static const int s_locationLen
static const int s_hitsLen
static const int s_errorLen
bool unpack()
Unpack data.
static const int s_glinkPins
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 crate() const
Return crate number (0-1)
int cpm() const
Return CPM number (1-14)