|
ATLAS Offline Software
|
Go to the documentation of this file.
52 unsigned int hits = 0;
168 const int pin =
source - 1;
191 std::vector<uint32_t>::const_iterator
pos;
210 const int pin =
source - 1;
void setBunchCrossing(int bc)
Set the Bunch Crossing number (neutral format only)
bool unpackNeutral()
Unpack neutral data.
static const uint32_t s_sourceIdMask
int sourceId(uint32_t word) const
std::vector< uint32_t > m_hitsData
CPM hits and sums data.
void clear()
Clear all data.
void packerNeutral(int pin, uint32_t datum, int nbits)
Pack given neutral data from given pin.
bool unpackUncompressed()
Unpack uncompressed data.
static const int s_sourceIdBit
static const int s_maxHits
static const int s_threshErrorBit
unsigned int hits(int slice, int source) const
Return hit counts for given CPM or source ID.
void setHits(int slice, int source, unsigned int hits, int error)
Store hit counts for given CPM or source ID.
void setGlinkParity(int bit=1)
Set G-Link Parity bit in Sub-status word.
void unpackerInit()
Initialise unpacker.
static const int s_dataWordId
static const int s_hitsBits
static const uint32_t s_threshMask
int hitsError(int slice, int source) const
Return hit error for given CPM or source ID.
static const uint32_t s_errorMask
void packerFlush()
Flush the current data word padded with zeros.
int bunchCrossing() const
Return the Bunch Crossing number (neutral format only)
bool packNeutral()
Pack neutral data.
static const int s_fifoOverflowPin
void packer(uint32_t datum, int nbits)
Pack given data into given number of bits.
static const int s_hitsErrorBits
bool unpack()
Unpack data.
static const int s_paddingBits
void setDaqOverflow(int bit=1)
Set DAQ FIFO Overflow bit in Sub-status word.
static const int s_threshBit
bool unpackerNeutralParityError(int pin)
Unpack and test G-Link parity bit for given pin.
uint32_t unpacker(int nbits)
Unpack given number of bits of data.
static const int s_wordLength
Data word length.
bool unpackerSuccess() const
Return unpacker success flag.
bool packUncompressed()
Pack uncompressed data.
void clear()
Clear all data.
static const int s_dataWordIdBit
void setUnpackErrorCode(int code)
Set the unpacking error code.
int index(int slice, int source) const
uint32_t unpackerNeutral(int pin, int nbits)
Unpack given number of bits of neutral data for given pin.
static const int s_bunchCrossingBits
void packerNeutralParity(int pin)
Pack current G-Link parity bit for given pin.