16 const uint16_t capIndex,
18 const uint32_t
data) {
29 const uint16_t capIndex,
31 const uint32_t
data) {
37 for (
unsigned i=0;
i<4; ++
i) {
44 const uint16_t capIndex,
46 const uint32_t
data) {
57 const uint16_t capIndex,
59 const uint32_t
data) {
72 return (
data_>>(i*8)) & 0xff;
88 return ( this->
raw() == c.
raw() );
94 data_ &= ~(0xff<<(i*8));
95 data_ |= (val&0xff)<<(i*8);
111 s <<
"L1GctInternHFData :";
117 s <<
" type=conc_hf_ring_et_sums";
118 s <<
" ring1 eta+=" << cand.
et(0);
119 s <<
" ring1 eta-=" << cand.
et(1);
120 s <<
" ring2 eta+=" << cand.
et(2);
121 s <<
" ring2 eta-=" << cand.
et(3);
123 s <<
" type=conc_hf_bit_counts";
124 s <<
" ring1 eta+=" << cand.
count(0);
125 s <<
" ring1 eta-=" << cand.
count(1);
126 s <<
" ring2 eta+=" << cand.
count(2);
127 s <<
" ring2 eta-=" << cand.
count(3);
129 s <<
" type=conc_hf_ring_et_sums";
130 s <<
" Et sum=" << cand.
et(0);
132 s <<
" type=wheel_hf_bit_counts";
133 s <<
" Bit count=" << cand.
et(0);
void setCapBlock(uint16_t const capBlock)
set cap block
L1GctInternHFData()
default constructor (for vector initialisation etc.)
L1GctInternHFData::L1GctInternHFDataType type() const
metadata
void setValue(unsigned const i, uint16_t const val)
set value
uint16_t capIndex() const
get index within capture block
std::ostream & operator<<(std::ostream &out, const ALILine &li)
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)
static L1GctInternHFData fromConcRingSums(const uint16_t capBlock, const uint16_t capIndex, const int16_t bx, const uint32_t data)
uint16_t count(unsigned i) const
get the counts
uint16_t capBlock() const
get capture block
uint16_t et(unsigned i) const
get the et sums
int16_t bx() const
get BX number
static L1GctInternHFData fromWheelRingSums(const uint16_t capBlock, const uint16_t capIndex, const int16_t bx, const uint32_t data)
void setType(L1GctInternHFDataType type)
set type
uint16_t value(unsigned i) const
get value
void setEt(unsigned const i, uint16_t const et)
set the sum
void setBx(int16_t const bx)
set bx
bool empty() const
is the sum non-zero
~L1GctInternHFData()
destructor
void setData(uint32_t const data)
bool operator==(const L1GctInternHFData &c) const
operators
char data[epos_bytes_allocation]
static L1GctInternHFData fromWheelBitCounts(const uint16_t capBlock, const uint16_t capIndex, const int16_t bx, const uint32_t data)
uint32_t raw() const
get the raw data
L1 GCT internal ring sums and/or bit counts.
void setCapIndex(uint16_t const capIndex)
set cap index