31 if ((maskXE&0xff) != 0xff || (maskTE&0xff) != 0xff)
m_restricted =
true;
40 unsigned int eT[2] = {0,0};
41 unsigned int eX[2] = {0,0};
42 unsigned int eY[2] = {0,0};
44 int moduleInQuad = jem->module() % 8;
46 int quad = ( jem->module() < 8 ? 0 : 1 );
47 if ((maskTE>>moduleInQuad)&1) {
48 eT[quad] += jem->et();
51 if ((maskXE>>moduleInQuad)&1) {
52 eX[quad] += jem->ex();
53 eY[quad] += jem->ey();
85 std::cout <<
"CrateEnergy: crate " <<
m_crate <<
" results " << std::endl
109 if ((maskXE&0xff) != 0xff || (maskTE&0xff) != 0xff)
m_restricted =
true;
118 unsigned int eT[2] = {0,0};
119 unsigned int eX[2] = {0,0};
120 unsigned int eY[2] = {0,0};
122 int moduleInQuad = jem->module() % 8;
123 if ((
unsigned int)jem->crate() ==
m_crate) {
124 int quad = ( jem->module() < 8 ? 0 : 1 );
126 if ((maskTE>>moduleInQuad)&1) {
127 eT[quad] += jem->Et();
130 if ((maskXE>>moduleInQuad)&1) {
131 eX[quad] += jem->Ex();
132 eY[quad] += jem->Ey();
163 std::cout <<
"CrateEnergy: crate " <<
m_crate <<
" results " << std::endl
173 unsigned int eyTC,
unsigned int overflowT,
unsigned int overflowX,
195 std::cout <<
"CrateEnergy: crate " <<
m_crate <<
" results " << std::endl
276 int value = input&mask;
unsigned int crate() const
return crate number
int ex() const
return crate Ex
int ey() const
return crate Ey
int et() const
return et, ex, ey sums
static const unsigned int m_sumBits
unsigned int exOverflow() const
Overflow bits.
bool restricted() const
Full or restricted eta range?
unsigned int eyOverflow() const
return Ey overflow bit
unsigned int etOverflow() const
return Et overflow bit
CrateEnergy(unsigned int crate, const DataVector< ModuleEnergy > *modules, uint32_t maskXE=0xff, uint32_t maskTE=0xff, bool restricted=false)
unsigned int encodeTC(int input) const
encode int as 15-bit twos-complement format (hardware Ex/Ey format)
int decodeTC(unsigned int input) const
decode 15-bit twos-complement format (hardware Ex/Ey format) as int
static const unsigned int m_sumBitsTC
unsigned int exTC() const
15 bit twos-complement format
unsigned int eyTC() const
return crate Ey in 15-bit twos-complement format (hardware format)
static const unsigned int m_jemEtSaturation
The EnergyCMXData object contains the data transferred from the JEM to the EnergySum CMX in the crate...
This is an internal class, used in the Energy trigger.
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...