1 #ifndef L1GCTHFBITCOUNTS_H
2 #define L1GCTHFBITCOUNTS_H
40 const uint16_t bitCountPosEtaRing1,
41 const uint16_t bitCountNegEtaRing1,
42 const uint16_t bitCountPosEtaRing2,
43 const uint16_t bitCountNegEtaRing2);
62 int16_t
bx()
const {
return bx_; }
76 uint16_t
bitCount(
unsigned const i)
const;
void setData(uint32_t data)
set the raw data
void setBx(int16_t bx)
set bx
bool empty() const
is the sum non-zero
void setBitCount(unsigned i, uint16_t c)
set a sum
int16_t bx() const
get BX number
std::ostream & operator<<(std::ostream &out, const ALILine &li)
uint16_t bitCount(unsigned const i) const
bool operator!=(const L1GctHFBitCounts &c) const
inequality operator
~L1GctHFBitCounts()
destructor
uint16_t capBlock() const
get GCT unpacker capture block
void setCapBlock(uint16_t capBlock)
set cap block
static const unsigned N_SUMS
void setCapIndex(uint16_t capIndex)
set cap index
L1GctHFBitCounts()
default constructor (for vector initialisation etc.)
bool operator==(const L1GctHFBitCounts &c) const
operators
char data[epos_bytes_allocation]
static L1GctHFBitCounts fromConcHFBitCounts(const uint16_t capBlock, const uint16_t capIndex, const int16_t bx, const uint32_t data)
static unsigned nCounts()
uint16_t capIndex() const
get index within GCT unpacker capture block
uint16_t raw() const
the raw data
static L1GctHFBitCounts fromGctEmulator(const int16_t bx, const uint16_t bitCountPosEtaRing1, const uint16_t bitCountNegEtaRing1, const uint16_t bitCountPosEtaRing2, const uint16_t bitCountNegEtaRing2)
named ctor for GCT emulator