Go to the documentation of this file. 1 #ifndef L1GCTHFBITCOUNTS_H
2 #define L1GCTHFBITCOUNTS_H
37 const uint16_t bitCountPosEtaRing1,
38 const uint16_t bitCountNegEtaRing1,
39 const uint16_t bitCountPosEtaRing2,
40 const uint16_t bitCountNegEtaRing2);
58 int16_t
bx()
const {
return bx_; }
72 uint16_t
bitCount(
unsigned const i)
const;
uint16_t capBlock() const
get GCT unpacker capture block
uint16_t raw() const
the raw data
L1GctHFBitCounts()
default constructor (for vector initialisation etc.)
int16_t bx() const
get BX number
static L1GctHFBitCounts fromConcHFBitCounts(const uint16_t capBlock, const uint16_t capIndex, const int16_t bx, const uint32_t 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
bool empty() const
is the sum non-zero
static unsigned nCounts()
static const unsigned N_SUMS
void setData(uint32_t data)
set the raw data
bool operator!=(const L1GctHFBitCounts &c) const
inequality operator
void setBitCount(unsigned i, uint16_t c)
set a sum
uint16_t bitCount(unsigned const i) const
std::ostream & operator<<(std::ostream &s, const L1GctHFBitCounts &cand)
~L1GctHFBitCounts()
destructor
uint16_t capIndex() const
get index within GCT unpacker capture block
bool operator==(const L1GctHFBitCounts &c) const
operators
void setBx(int16_t bx)
set bx
void setCapBlock(uint16_t capBlock)
set cap block
char data[epos_bytes_allocation]
void setCapIndex(uint16_t capIndex)
set cap index