57 unsigned int hits = 0;
100 const unsigned int hits,
const int error)
244 std::vector<uint32_t>::const_iterator pos;
262 unsigned int hits = 0;
293 for (
int pin = 0; pin <= lastpin; ++pin) {
static const int s_paddingBits
unsigned int jetHits(int slice, int source) const
Return jet hit counts for given jem or source ID.
bool unpackUncompressed()
Unpack uncompressed data.
std::vector< uint32_t > m_hitsData
JEM hits and sums data.
static const uint32_t s_etMapMask
bool packNeutral()
Pack neutral data.
static const int s_fwdHitsBits
static const int s_wordLength
Data word length.
static const int s_bunchCrossingBits
int jetHitsError(int slice, int source) const
Return jet hit error for given jem or source ID.
static const int s_threshErrorBit
static const int s_rightBit
bool packUncompressed()
Pack uncompressed data.
static const int s_dataWordId
static const uint32_t s_errorMask
static const int s_fifoOverflowPin
void setJetHits(int slice, int source, unsigned int hits, int error)
Store jet hit counts and error for given jem or source ID.
static const uint32_t s_sourceIdMask
static const uint32_t s_fwdMask
static const int s_fwdErrorBit
static const int s_threshBit
int sourceId(uint32_t word) const
int index(int slice, int source) const
static const int s_maxHits
void setJetEtMap(int slice, unsigned int map)
Store jet ET map.
static const int s_jetHitsBits
static const uint32_t s_threshMask
static const int s_dataWordIdBit
unsigned int jetEtMap(int slice) const
Return jet ET map.
void clear()
Clear all data.
bool unpackNeutral()
Unpack neutral data.
bool unpack()
Unpack data.
static const int s_sourceIdBit
static const int s_jetHitsErrorBits
static const int s_etMapBit
void setDaqOverflow(int bit=1)
Set DAQ FIFO Overflow bit in Sub-status word.
void setGlinkParity(int bit=1)
Set G-Link Parity bit in Sub-status word.
void packer(uint32_t datum, int nbits)
Pack given data into given number of bits.
uint32_t unpacker(int nbits)
Unpack given number of bits of data.
void setUnpackErrorCode(int code)
Set the unpacking error code.
bool unpackerSuccess() const
Return unpacker success flag.
bool unpackerNeutralParityError(int pin)
Unpack and test G-Link parity bit for given pin.
void clear()
Clear all data.
void packerNeutralParity(int pin)
Pack current G-Link parity bit for given pin.
void packerFlush()
Flush the current data word padded with zeros.
uint32_t unpackerNeutral(int pin, int nbits)
Unpack given number of bits of neutral data for given pin.
int bunchCrossing() const
Return the Bunch Crossing number (neutral format only)
void unpackerInit()
Initialise unpacker.
void packerNeutral(int pin, uint32_t datum, int nbits)
Pack given neutral data from given pin.
void setBunchCrossing(int bc)
Set the Bunch Crossing number (neutral format only)