10 const uint16_t capIndex,
12 const uint32_t
data) {
23 const uint16_t capIndex,
25 const uint32_t
data) {
31 for (
unsigned i = 0;
i < 4; ++
i) {
32 d.setCount(
i, (
data >> (6 *
i)) & 0x3f);
38 const uint16_t capIndex,
40 const uint32_t
data) {
46 d.setData(
data & 0xff);
51 const uint16_t capIndex,
53 const uint32_t
data) {
59 d.setCount(0,
data & 0x3f);
77 data_ &= ~(0xff << (
i * 8));
88 s <<
"L1GctInternHFData :";
94 s <<
" type=conc_hf_ring_et_sums";
95 s <<
" ring1 eta+=" <<
cand.et(0);
96 s <<
" ring1 eta-=" <<
cand.et(1);
97 s <<
" ring2 eta+=" <<
cand.et(2);
98 s <<
" ring2 eta-=" <<
cand.et(3);
100 s <<
" type=conc_hf_bit_counts";
101 s <<
" ring1 eta+=" <<
cand.count(0);
102 s <<
" ring1 eta-=" <<
cand.count(1);
103 s <<
" ring2 eta+=" <<
cand.count(2);
104 s <<
" ring2 eta-=" <<
cand.count(3);
106 s <<
" type=conc_hf_ring_et_sums";
107 s <<
" Et sum=" <<
cand.et(0);
109 s <<
" type=wheel_hf_bit_counts";
110 s <<
" Bit count=" <<
cand.et(0);
115 s << std::hex <<
" cap block=" <<
cand.capBlock() <<
std::dec <<
" index=" <<
cand.capIndex() <<
" BX=" <<
cand.bx();
std::ostream & operator<<(std::ostream &s, const L1GctInternHFData &cand)
L1GctInternHFData()
default constructor (for vector initialisation etc.)
void setValue(unsigned const i, uint16_t const val)
set value
void setCount(unsigned const i, uint16_t const count)
set the count
static L1GctInternHFData fromConcBitCounts(const uint16_t capBlock, const uint16_t capIndex, const int16_t bx, const uint32_t data)
uint16_t capIndex() const
get index within capture block
uint16_t et(unsigned i) const
get the et sums
static L1GctInternHFData fromConcRingSums(const uint16_t capBlock, const uint16_t capIndex, const int16_t bx, const uint32_t data)
bool operator==(const L1GctInternHFData &c) const
operators
uint16_t count(unsigned i) const
get the counts
static L1GctInternHFData fromWheelRingSums(const uint16_t capBlock, const uint16_t capIndex, const int16_t bx, const uint32_t data)
void setEt(unsigned const i, uint16_t const et)
set the sum
uint16_t value(unsigned i) const
get value
int16_t bx() const
get BX number
uint16_t capBlock() const
get capture block
~L1GctInternHFData()
destructor
char data[epos_bytes_allocation]
uint32_t raw() const
get the raw data
static L1GctInternHFData fromWheelBitCounts(const uint16_t capBlock, const uint16_t capIndex, const int16_t bx, const uint32_t data)
L1 GCT internal ring sums and/or bit counts.