|
ATLAS Offline Software
|
Go to the documentation of this file.
54 const int pin = (
roi.
chip() << 1) |
66 const int pin = (chip << 1) | (loc & 0
x1);
120 const int idx = 2*pin;
158 const int chip = pin >> 1;
159 const int idx = 2*pin;
void setBunchCrossing(int bc)
Set the Bunch Crossing number (neutral format only)
int cpm() const
Return CPM number (1-14)
int type() const
Return type em/tau (0/1)
bool packNeutral()
Pack neutral data.
int energy() const
Return energy.
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_locationLen
void setHeader(int wordId, int version, int format, int seqno, int crate, int module, int slices2, int slices1)
Store header data.
int bunchCrossing() const
Return the Bunch Crossing number (neutral format only)
bool unpackNeutral()
Unpack neutral data.
LVL1::CPMTobRoI roi(int chip, int loc, int type) const
Return RoI for given chip and location (left/right) and type (em/tau)
static const int s_bunchCrossingBits
bool unpackerNeutralParityError(int pin)
Unpack and test G-Link parity bit for given pin.
int crate() const
Return crate number (0-1)
bool unpack()
Unpack data.
int chip() const
Return CP chip number (0-7)
static const int s_energyLen
bool unpackerSuccess() const
Return unpacker success flag.
int isolation() const
Return isolation.
int location() const
Return location (RoI local coords) (0-7)
void setRoiHeader(int version, int crate, int module)
Store header.
static const int s_isolLen
std::vector< LVL1::CPMTobRoI > m_roiData
RoI words.
static const int s_wordIdVal
Header word ID.
void setUnpackErrorCode(int code)
Set the unpacking error code.
void clear()
Clear all data.
uint32_t unpackerNeutral(int pin, int nbits)
Unpack given number of bits of neutral data for given pin.
static const int s_glinkPins
void fillRoi(LVL1::CPMTobRoI roi)
Store RoI.
CPMTobRoI_v1 CPMTobRoI
Define the latest version of the CPMTobRoI class.
void packerNeutralParity(int pin)
Pack current G-Link parity bit for given pin.