33 const uint16_t capIndex,
35 const uint32_t
data) {
47 const uint16_t capIndex,
49 const uint32_t
data) {
51 uint32_t word=data>>16;
62 const uint16_t capIndex,
64 const uint32_t
data) {
77 const uint16_t capIndex,
79 const uint32_t
data) {
91 const uint16_t capIndex,
93 const uint32_t
data) {
110 if (overFlow || (totEt > kTotEtOrHtMaxValue)) s.
setOflow(0x1);
119 if (overFlow || (totHt > kTotEtOrHtMaxValue)) s.
setOflow(0x1);
137 if (overFlow || (totEtOrHt > kTotEtOrHtMaxValue)) s.
setOflow(0x1);
161 data_ |= val & 0x7ffffff;
177 data_ |= (oflow & 0x1)<<31;
183 s <<
"L1GctInternEtSum : ";
186 s <<
" type=jet_miss_et";
188 s <<
" type=jet_tot_et";
190 s <<
" type=jet_tot_ht";
192 s <<
" type=total_et_or_ht";
194 s <<
" type=miss_etx_or_ety";
200 s <<
" mag=" << c.
et();
201 if (c.
oflow()) { s <<
" overflow set"; }
204 s <<
" cap block=" << std::hex << c.
capBlock();
205 s <<
" index=" << std::dec << c.
capIndex();
206 s <<
" BX=" << c.
bx();
static L1GctInternEtSum fromMissEtxOrEty(uint16_t capBlock, uint16_t capIndex, int16_t bx, uint32_t data)
L1 GCT internal energy sum.
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)