55 if (
roi.crate() == roiTemp.
crate() &&
roi.jem() == roiTemp.
jem()) {
66 const int pos = frame + forward*
s_frames;
121 for (
int pos = 0; pos < 2*
s_frames; ++pos) {
148 for (
int pos = 0; pos < 2*
s_frames; ++pos) {
157 const int err = (parity << 1) | sat;
167 for (
int pin = 0; pin <= maxPin; ++pin) {
175 const int err = (parity << 1) |
roi.error();
177 roi.location(),
roi.forward(),
static const int s_framesPerPin
std::vector< LVL1::JEMRoI > m_roiData
RoIs.
static const int s_bunchCrossingBits
bool packNeutral()
Pack neutral data.
static const int s_hitsBits
static const int s_bunchCrossingPin
void fillRoi(LVL1::JEMRoI roi)
Store RoI.
void setRoiHeader(int version, int crate, int module)
Store header.
static const int s_paddingBits
static const int s_saturationBits
void clear()
Clear all data.
bool unpackNeutral()
Unpack neutral data.
LVL1::JEMRoI roi(int frame, int forward) const
Return RoI for given frame and forward.
static const int s_locationBits
bool unpack()
Unpack data.
static const int s_frames
static const int s_wordIdVal
Header word ID.
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)