|
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.
static const int s_saturationBits
void packerNeutral(int pin, uint32_t datum, int nbits)
Pack given neutral data from given pin.
static const int s_framesPerPin
int location() const
Return location (RoI local coords) (0-3)
void clear()
Clear all data.
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.
void setRoiHeader(int version, int crate, int module)
Store header.
int bunchCrossing() const
Return the Bunch Crossing number (neutral format only)
static const int s_hitsBits
static const int s_paddingBits
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)
LVL1::JEMRoI roi(int frame, int forward) const
Return RoI for given frame and forward.
bool unpackerNeutralParityError(int pin)
Unpack and test G-Link parity bit for given pin.
int crate() const
Return crate number (0-1)
bool unpackerSuccess() const
Return unpacker success flag.
void fillRoi(LVL1::JEMRoI roi)
Store RoI.
static const int s_bunchCrossingBits
bool unpack()
Unpack data.
bool packNeutral()
Pack neutral data.
std::vector< LVL1::JEMRoI > m_roiData
RoIs.
bool unpackNeutral()
Unpack neutral data.
int jem() const
Return JEM number (0-15)
void setUnpackErrorCode(int code)
Set the unpacking error code.
static const int s_bunchCrossingPin
static const int s_wordIdVal
Header word ID.
static const int s_locationBits
uint32_t unpackerNeutral(int pin, int nbits)
Unpack given number of bits of neutral data for given pin.
int frame() const
Return RoI frame number (0-7)
static const int s_frames
void packerNeutralParity(int pin)
Pack current G-Link parity bit for given pin.
JEMRoI_v1 JEMRoI
Define the latest version of the JEMRoI class.