Go to the documentation of this file. 1 #ifndef L1GCTINTERNETSUM_H
2 #define L1GCTINTERNETSUM_H
83 int16_t
bx()
const {
return bx_; }
static L1GctInternEtSum fromJetTotHt(uint16_t capBlock, uint16_t capIndex, int16_t bx, uint32_t data)
void setValue(uint32_t val)
set value
static L1GctInternEtSum fromEmulatorMissEtxOrEty(int missEtxOrEty, bool overFlow, int16_t bx)
void setBx(uint16_t bx)
set bx
uint16_t capBlock() const
get capture block
uint32_t et() const
get et
L1GctInternEtSumType
et sum type - not clear this is required
bool operator!=(const L1GctInternEtSum &c) const
inequality operator
L1GctInternEtSum::L1GctInternEtSumType type() const
metadata
uint32_t raw() const
get the actual bits
void setEt(uint32_t et)
set Et sum
void setType(L1GctInternEtSumType type)
set type
uint16_t capIndex() const
get index within capture block
~L1GctInternEtSum()
destructor
L1GctInternEtSumType type_
void setCapBlock(uint16_t capBlock)
set cap block
uint32_t count() const
get count
std::ostream & operator<<(std::ostream &s, const L1GctInternEtSum &c)
Pretty-print operator for L1GctInternEtSum.
void setCapIndex(uint16_t capIndex)
set cap index
static L1GctInternEtSum fromEmulatorTotalEtOrHt(unsigned totEtOrHt, bool overFlow, int16_t bx)
bool operator==(const L1GctInternEtSum &c) const
operators
static L1GctInternEtSum fromTotalEtOrHt(uint16_t capBlock, uint16_t capIndex, int16_t bx, uint32_t data)
static L1GctInternEtSum fromEmulatorJetMissEt(int missEtxOrEty, bool overFlow, int16_t bx)
uint32_t value() const
get value
void setCount(uint32_t count)
set count
L1 GCT internal energy sum.
static L1GctInternEtSum fromMissEtxOrEty(uint16_t capBlock, uint16_t capIndex, int16_t bx, uint32_t data)
bool empty() const
is the sum non-zero
char data[epos_bytes_allocation]
static L1GctInternEtSum fromEmulatorJetTotHt(unsigned totHt, bool overFlow, int16_t bx)
uint8_t oflow() const
get oflow
static L1GctInternEtSum fromJetMissEt(uint16_t capBlock, uint16_t capIndex, int16_t bx, uint32_t data)
L1GctInternEtSum()
default constructor (for vector initialisation etc.)
int16_t bx() const
get BX number
static L1GctInternEtSum fromEmulatorJetTotEt(unsigned totEt, bool overFlow, int16_t bx)
Emulator constructors.
static L1GctInternEtSum fromJetTotEt(uint16_t capBlock, uint16_t capIndex, int16_t bx, uint32_t data)
void setOflow(uint8_t oflow)
set overflow bit