15 const uint16_t capIndex,
17 const uint32_t
data) {
31 const uint16_t etSumPosEtaRing1,
32 const uint16_t etSumNegEtaRing1,
33 const uint16_t etSumPosEtaRing2,
34 const uint16_t etSumNegEtaRing2) {
57 data_ &= ~(0x7 << (i * 3));
58 data_ |= (et & 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);
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
uint16_t capBlock() const
get GCT unpacker capture block
bool operator==(const L1GctHFRingEtSums &c) const
operators
const edm::EventSetup & c
uint16_t capIndex() const
get index within GCT unpacker capture block
void setCapIndex(uint16_t capIndex)
set cap index
~L1GctHFRingEtSums()
destructor
std::ostream & operator<<(std::ostream &out, const ALILine &li)
bool empty() const
is the sum non-zero
void setEtSum(unsigned i, uint16_t et)
set a sum
void setCapBlock(uint16_t capBlock)
set cap block
int16_t bx() const
get BX number
static L1GctHFRingEtSums fromConcRingSums(const uint16_t capBlock, const uint16_t capIndex, const int16_t bx, const uint32_t data)
uint16_t raw() const
get the raw data
char data[epos_bytes_allocation]
L1GctHFRingEtSums()
default constructor (for vector initialisation etc.)
void setBx(uint16_t bx)
set bx
uint16_t etSum(unsigned const i) const