ATLAS Offline Software
Loading...
Searching...
No Matches
CrateEnergy.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4/***************************************************************************
5 CrateEnergy.h - description
6 -------------------
7 begin : 05/09/2007
8 email : Alan.Watson@cern.ch
9 ***************************************************************************/
10
11
12
13
14#ifndef CRATEENERGY_H
15#define CRATEENERGY_H
16
19#include <cstdint>
20
21
25namespace LVL1 {
26
29
31
32public:
33 CrateEnergy(unsigned int crate, const DataVector<ModuleEnergy>* modules, uint32_t maskXE = 0xff, uint32_t maskTE = 0xff, bool restricted = false);
34 CrateEnergy(unsigned int crate, const DataVector<EnergyCMXData>* modules, uint32_t maskXE = 0xff, uint32_t maskTE = 0xff, bool restricted = false);
35 CrateEnergy(unsigned int crate, unsigned int et, unsigned int exTC,
36 unsigned int eyTC, unsigned int overflowT, unsigned int overflowX,
37 unsigned int overflowY, bool restricted = false);
39
40public:
41 unsigned int crate() const;
43 int et() const;
44 int ex() const;
45 int ey() const;
47 unsigned int exTC() const;
48 unsigned int eyTC() const;
50 unsigned int exOverflow() const;
51 unsigned int eyOverflow() const;
52 unsigned int etOverflow() const;
54 bool restricted() const;
55private:
56 unsigned int m_crate;
57 unsigned int m_crateEt;
60 unsigned int m_overflowT;
61 unsigned int m_overflowX;
62 unsigned int m_overflowY;
64 bool m_debug;
65 static const unsigned int m_sumBitsTC=15;
66 static const unsigned int m_sumBits=14;
67 static const unsigned int m_jemEtSaturation= 0x3fff; // was 4032
68private:
69 unsigned int encodeTC(int input) const;
70 int decodeTC(unsigned int input) const;
71
72};
73
74} // end of namespace bracket
75
76
77#endif
Derived DataVector<T>.
Definition DataVector.h:795
unsigned int crate() const
return crate number
int ex() const
return crate Ex
unsigned int m_overflowT
Definition CrateEnergy.h:60
int ey() const
return crate Ey
int et() const
return et, ex, ey sums
static const unsigned int m_sumBits
Definition CrateEnergy.h:66
unsigned int exOverflow() const
Overflow bits.
unsigned int m_overflowY
Definition CrateEnergy.h:62
bool restricted() const
Full or restricted eta range?
unsigned int eyOverflow() const
return Ey overflow bit
unsigned int m_crate
Definition CrateEnergy.h:56
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
Definition CrateEnergy.h:65
unsigned int exTC() const
15 bit twos-complement format
unsigned int m_crateEt
Definition CrateEnergy.h:57
unsigned int eyTC() const
return crate Ey in 15-bit twos-complement format (hardware format)
unsigned int m_overflowX
Definition CrateEnergy.h:61
static const unsigned int m_jemEtSaturation
Definition CrateEnergy.h:67
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...