|
ATLAS Offline Software
|
Go to the documentation of this file.
54 const int pin = (
roi.
chip() << 1) |
64 const int pin = (chip << 1) | (loc & 0
x1);
144 const int chip = pin >> 1;
void setBunchCrossing(int bc)
Set the Bunch Crossing number (neutral format only)
int location() const
Return location (RoI local coords) (0-7)
std::vector< LVL1::CPMRoI > m_roiData
RoI words.
int chip() const
Return CP chip number (0-7)
void clear()
Clear all data.
void packerNeutral(int pin, uint32_t datum, int nbits)
Pack given neutral data from given pin.
bool unpack()
Unpack data.
bool packNeutral()
Pack neutral data.
static const int s_bunchCrossingBits
static const int s_wordIdVal
Header word ID.
LVL1::CPMRoI roi(int chip, int loc) const
Return RoI for given chip and location (left/right)
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_errorLen
int hits() const
Return hit thresholds map.
int bunchCrossing() const
Return the Bunch Crossing number (neutral format only)
static const int s_locationLen
int cpm() const
Return CPM number (1-14)
void clear()
Clear all data.
static const int s_hitsLen
bool unpackerNeutralParityError(int pin)
Unpack and test G-Link parity bit for given pin.
int error() const
Return error flags (bit 0 Saturation, bit 1 Parity)
bool unpackerSuccess() const
Return unpacker success flag.
void fillRoi(LVL1::CPMRoI roi)
Store RoI.
void setUnpackErrorCode(int code)
Set the unpacking error code.
static const int s_glinkPins
uint32_t unpackerNeutral(int pin, int nbits)
Unpack given number of bits of neutral data for given pin.
void setRoiHeader(int version, int crate, int module)
Store header.
int crate() const
Return crate number (0-1)
CPMRoI_v1 CPMRoI
Define the latest version of the CPMRoI class.
bool unpackNeutral()
Unpack neutral data.
void packerNeutralParity(int pin)
Pack current G-Link parity bit for given pin.