15 const uint16_t capIndex,
17 const uint32_t
data) {
22 c.setData(
data & 0xfff);
28 const uint16_t bitCountPosEtaRing1,
29 const uint16_t bitCountNegEtaRing1,
30 const uint16_t bitCountPosEtaRing2,
31 const uint16_t bitCountNegEtaRing2) {
34 c.setBitCount(0, bitCountPosEtaRing1);
35 c.setBitCount(1, bitCountNegEtaRing1);
36 c.setBitCount(2, bitCountPosEtaRing2);
37 c.setBitCount(3, bitCountNegEtaRing2);
54 data_ &= ~(0x7 << (
i * 3));
59 s <<
"L1GctHFBitCounts :";
64 s <<
" ring1 eta+=" <<
cand.bitCount(0);
65 s <<
" ring1 eta-=" <<
cand.bitCount(1);
66 s <<
" ring2 eta+=" <<
cand.bitCount(2);
67 s <<
" ring2 eta-=" <<
cand.bitCount(3);
71 s << std::hex <<
" cap block=" <<
cand.capBlock() <<
std::dec <<
" index=" <<
cand.capIndex() <<
" BX=" <<
cand.bx();
void setBitCount(unsigned i, uint16_t c)
set a sum
uint16_t capBlock() const
get GCT unpacker capture block
uint16_t raw() const
the raw data
~L1GctHFBitCounts()
destructor
bool operator==(const L1GctHFBitCounts &c) const
operators
std::ostream & operator<<(std::ostream &s, const L1GctHFBitCounts &cand)
L1GctHFBitCounts()
default constructor (for vector initialisation etc.)
char data[epos_bytes_allocation]
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)
uint16_t bitCount(unsigned const i) const
uint16_t capIndex() const
get index within GCT unpacker capture block
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