|
ATLAS Offline Software
|
Go to the documentation of this file.
157 const int err = (parity << 1) | sat;
167 for (
int pin = 0; pin <= maxPin; ++pin) {
void setBunchCrossing(int bc)
Set the Bunch Crossing number (neutral format only)
void clear()
Clear all data.
void packerNeutral(int pin, uint32_t datum, int nbits)
Pack given neutral data from given pin.
static const int s_bunchCrossingBits
bool unpackNeutral()
Unpack neutral data.
static const int s_locationBits
int location() const
Return location (RoI local coords) (0-3)
int forward() const
Return forward jet flag (0/1)
void setHeader(int wordId, int version, int format, int seqno, int crate, int module, int slices2, int slices1)
Store header data.
static const int s_frames
int bunchCrossing() const
Return the Bunch Crossing number (neutral format only)
int error() const
Return error flags (bit 0 Saturation, bit 1 Parity)
int hits() const
Return Jet hit map (8 bits Main or 4 bits Forward)
bool unpackerNeutralParityError(int pin)
Unpack and test G-Link parity bit for given pin.
LVL1::JEMRoI roi(int frame, int forward) const
Return RoI for given frame and forward.
static const int s_wordIdVal
Header word ID.
bool unpack()
Unpack data.
void fillRoi(LVL1::JEMRoI roi)
Store RoI.
int crate() const
Return crate number (0-1)
bool unpackerSuccess() const
Return unpacker success flag.
std::vector< LVL1::JEMRoI > m_roiData
RoIs.
static const int s_saturationBits
static const int s_bunchCrossingPin
static const int s_paddingBits
int jem() const
Return JEM number (0-15)
static const int s_framesPerPin
void setUnpackErrorCode(int code)
Set the unpacking error code.
void setRoiHeader(int version, int crate, int module)
Store header.
static const int s_hitsBits
uint32_t unpackerNeutral(int pin, int nbits)
Unpack given number of bits of neutral data for given pin.
void clear()
Clear all data.
bool packNeutral()
Pack neutral data.
int frame() const
Return RoI frame number (0-7)
void packerNeutralParity(int pin)
Pack current G-Link parity bit for given pin.
JEMRoI_v1 JEMRoI
Define the latest version of the JEMRoI class.