15 const uint16_t capIndex,
17 const uint32_t
data) {
22 s.setEtSum(0, (
data >> 12) & 0x7);
23 s.setEtSum(1, (
data >> 16) & 0x7);
24 s.setEtSum(2, (
data >> 19) & 0x7);
25 s.setEtSum(3, (
data >> 22) & 0x7);
31 const uint16_t etSumPosEtaRing1,
32 const uint16_t etSumNegEtaRing1,
33 const uint16_t etSumPosEtaRing2,
34 const uint16_t etSumNegEtaRing2) {
37 s.setEtSum(0, etSumPosEtaRing1);
38 s.setEtSum(1, etSumNegEtaRing1);
39 s.setEtSum(2, etSumPosEtaRing2);
40 s.setEtSum(3, etSumNegEtaRing2);
57 data_ &= ~(0x7 << (
i * 3));
62 s <<
"L1GctHFRingEtSums :";
67 s <<
" ring1 eta+=" <<
cand.etSum(0);
68 s <<
" ring1 eta-=" <<
cand.etSum(1);
69 s <<
" ring2 eta+=" <<
cand.etSum(2);
70 s <<
" ring2 eta-=" <<
cand.etSum(3);
74 s << std::hex <<
" cap block=" <<
cand.capBlock() <<
std::dec <<
" index=" <<
cand.capIndex() <<
" BX=" <<
cand.bx();
static L1GctHFRingEtSums fromGctEmulator(const int16_t bx, const uint16_t etSumPosEtaRing1, const uint16_t etSumNegEtaRing1, const uint16_t etSumPosEtaRing2, const uint16_t etSumNegEtaRing2)
named ctor for GCT emulator
~L1GctHFRingEtSums()
destructor
bool operator==(const L1GctHFRingEtSums &c) const
operators
uint16_t etSum(unsigned const i) const
std::ostream & operator<<(std::ostream &s, const L1GctHFRingEtSums &cand)
int16_t bx() const
get BX number
void setEtSum(unsigned i, uint16_t et)
set a sum
uint16_t capIndex() const
get index within GCT unpacker capture block
static L1GctHFRingEtSums fromConcRingSums(const uint16_t capBlock, const uint16_t capIndex, const int16_t bx, const uint32_t data)
uint16_t capBlock() const
get GCT unpacker capture block
char data[epos_bytes_allocation]
uint16_t raw() const
get the raw data
L1GctHFRingEtSums()
default constructor (for vector initialisation etc.)