Go to the documentation of this file. 1 #ifndef L1GCTHFRINGETSUMS_H
2 #define L1GCTHFRINGETSUMS_H
37 const uint16_t etSumPosEtaRing1,
38 const uint16_t etSumNegEtaRing1,
39 const uint16_t etSumPosEtaRing2,
40 const uint16_t etSumNegEtaRing2);
58 int16_t
bx()
const {
return bx_; }
72 uint16_t
etSum(
unsigned const i)
const;
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
bool empty() const
is the sum non-zero
~L1GctHFRingEtSums()
destructor
void setData(uint32_t data)
set the raw data
bool operator!=(const L1GctHFRingEtSums &c) const
inequality operator
bool operator==(const L1GctHFRingEtSums &c) const
operators
uint16_t capBlock() const
get GCT unpacker capture block
uint16_t etSum(unsigned const i) const
static L1GctHFRingEtSums fromConcRingSums(const uint16_t capBlock, const uint16_t capIndex, const int16_t bx, const uint32_t data)
uint16_t capIndex() const
get index within GCT unpacker capture block
void setCapBlock(uint16_t capBlock)
set cap block
static const unsigned N_SUMS
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 raw() const
get the raw data
char data[epos_bytes_allocation]
void setBx(uint16_t bx)
set bx
void setCapIndex(uint16_t capIndex)
set cap index
L1GctHFRingEtSums()
default constructor (for vector initialisation etc.)