8 : type_(null), capBlock_(capBlock), capIndex_(capIndex), bx_(bx), data_(0) {
17 const uint16_t capIndex,
19 const uint32_t
data) {
31 const uint16_t capIndex,
33 const uint32_t
data) {
35 uint32_t
word = data >> 16;
46 const uint16_t capIndex,
48 const uint32_t
data) {
60 const uint16_t capIndex,
62 const uint32_t
data) {
74 const uint16_t capIndex,
76 const uint32_t
data) {
92 if (overFlow || (totEt > kTotEtOrHtMaxValue))
102 if (overFlow || (totHt > kTotEtOrHtMaxValue))
122 if (overFlow || (totEtOrHt > kTotEtOrHtMaxValue))
145 data_ |= val & 0x7ffffff;
157 data_ |= (oflow & 0x1) << 31;
162 s <<
"L1GctInternEtSum : ";
165 s <<
" type=jet_miss_et";
167 s <<
" type=jet_tot_et";
169 s <<
" type=jet_tot_ht";
171 s <<
" type=total_et_or_ht";
173 s <<
" type=miss_etx_or_ety";
179 s <<
" mag=" << c.
et();
181 s <<
" overflow set";
185 s <<
" cap block=" << std::hex << c.
capBlock();
187 s <<
" BX=" << c.
bx();
static L1GctInternEtSum fromMissEtxOrEty(uint16_t capBlock, uint16_t capIndex, int16_t bx, uint32_t data)
L1 GCT internal energy sum.
const edm::EventSetup & c
static L1GctInternEtSum fromEmulatorJetTotEt(unsigned totEt, bool overFlow, int16_t bx)
Emulator constructors.
uint16_t capIndex() const
get index within capture block
uint16_t capBlock() const
get capture block
void setOflow(uint8_t oflow)
set overflow bit
void setCapBlock(uint16_t capBlock)
set cap block
std::ostream & operator<<(std::ostream &out, const ALILine &li)
bool empty() const
is the sum non-zero
void setBx(uint16_t bx)
set bx
static L1GctInternEtSum fromTotalEtOrHt(uint16_t capBlock, uint16_t capIndex, int16_t bx, uint32_t data)
~L1GctInternEtSum()
destructor
static L1GctInternEtSum fromEmulatorJetTotHt(unsigned totHt, bool overFlow, int16_t bx)
uint8_t oflow() const
get oflow
void setType(L1GctInternEtSumType type)
set type
static L1GctInternEtSum fromEmulatorMissEtxOrEty(int missEtxOrEty, bool overFlow, int16_t bx)
static L1GctInternEtSum fromJetMissEt(uint16_t capBlock, uint16_t capIndex, int16_t bx, uint32_t data)
static L1GctInternEtSum fromEmulatorTotalEtOrHt(unsigned totEtOrHt, bool overFlow, int16_t bx)
L1GctInternEtSum::L1GctInternEtSumType type() const
metadata
uint32_t et() const
get et
void setCount(uint32_t count)
set count
void setEt(uint32_t et)
set Et sum
uint32_t raw() const
get the actual bits
void setValue(uint32_t val)
set value
bool operator==(const L1GctInternEtSum &c) const
operators
int16_t bx() const
get BX number
char data[epos_bytes_allocation]
static L1GctInternEtSum fromEmulatorJetMissEt(int missEtxOrEty, bool overFlow, int16_t bx)
L1GctInternEtSum()
default constructor (for vector initialisation etc.)
void setCapIndex(uint16_t capIndex)
set cap index
static L1GctInternEtSum fromJetTotEt(uint16_t capBlock, uint16_t capIndex, int16_t bx, uint32_t data)
static L1GctInternEtSum fromJetTotHt(uint16_t capBlock, uint16_t capIndex, int16_t bx, uint32_t data)