ATLAS Offline Software
CrateEnergy.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 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 
20 
24 namespace LVL1 {
25 
29 class CrateEnergy {
30 
31 public:
32  CrateEnergy(unsigned int crate, const DataVector<ModuleEnergy>* modules, uint32_t maskXE = 0xff, uint32_t maskTE = 0xff, bool restricted = false);
33  CrateEnergy(unsigned int crate, const DataVector<EnergyCMXData>* modules, uint32_t maskXE = 0xff, uint32_t maskTE = 0xff, bool restricted = false);
34  CrateEnergy(unsigned int crate, unsigned int et, unsigned int exTC,
35  unsigned int eyTC, unsigned int overflowT, unsigned int overflowX,
36  unsigned int overflowY, bool restricted = false);
37  ~CrateEnergy();
38 
39 public:
40  unsigned int crate() const;
42  int et() const;
43  int ex() const;
44  int ey() const;
46  unsigned int exTC() const;
47  unsigned int eyTC() const;
49  unsigned int exOverflow() const;
50  unsigned int eyOverflow() const;
51  unsigned int etOverflow() const;
53  bool restricted() const;
54 private:
55  unsigned int m_crate;
56  unsigned int m_crateEt;
57  int m_crateEx;
58  int m_crateEy;
59  unsigned int m_overflowT;
60  unsigned int m_overflowX;
61  unsigned int m_overflowY;
62  bool m_restricted;
63  bool m_debug;
64  static const unsigned int m_sumBitsTC=15;
65  static const unsigned int m_sumBits=14;
66  static const unsigned int m_jemEtSaturation= 0x3fff; // was 4032
67 private:
68  unsigned int encodeTC(int input) const;
69  int decodeTC(unsigned int input) const;
70 
71 };
72 
73 } // end of namespace bracket
74 
75 
76 #endif
LVL1::CrateEnergy::decodeTC
int decodeTC(unsigned int input) const
decode 15-bit twos-complement format (hardware Ex/Ey format) as int
Definition: CrateEnergy.cxx:278
et
Extra patterns decribing particle interation process.
LVL1::CrateEnergy::exOverflow
unsigned int exOverflow() const
Overflow bits.
Definition: CrateEnergy.cxx:238
LVL1::CrateEnergy::~CrateEnergy
~CrateEnergy()
Definition: CrateEnergy.cxx:209
LVL1::CrateEnergy::eyOverflow
unsigned int eyOverflow() const
return Ey overflow bit
Definition: CrateEnergy.cxx:243
LVL1::CrateEnergy::etOverflow
unsigned int etOverflow() const
return Et overflow bit
Definition: CrateEnergy.cxx:233
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
LVL1::CrateEnergy::m_crateEt
unsigned int m_crateEt
Definition: CrateEnergy.h:66
ModuleEnergy.h
LVL1::CrateEnergy::m_overflowT
unsigned int m_overflowT
Definition: CrateEnergy.h:69
LVL1::CrateEnergy::et
int et() const
return et, ex, ey sums
Definition: CrateEnergy.cxx:218
LVL1::CrateEnergy::m_overflowX
unsigned int m_overflowX
Definition: CrateEnergy.h:70
LVL1::CrateEnergy::CrateEnergy
CrateEnergy(unsigned int crate, const DataVector< ModuleEnergy > *modules, uint32_t maskXE=0xff, uint32_t maskTE=0xff, bool restricted=false)
Definition: CrateEnergy.cxx:21
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
LVL1::CrateEnergy::m_sumBitsTC
static const unsigned int m_sumBitsTC
Definition: CrateEnergy.h:74
EnergyCMXData.h
LVL1::CrateEnergy::m_sumBits
static const unsigned int m_sumBits
Definition: CrateEnergy.h:75
LVL1::CrateEnergy::eyTC
unsigned int eyTC() const
return crate Ey in 15-bit twos-complement format (hardware format)
Definition: CrateEnergy.cxx:258
LVL1::CrateEnergy::crate
unsigned int crate() const
return crate number
Definition: CrateEnergy.cxx:213
LVL1::CrateEnergy::exTC
unsigned int exTC() const
15 bit twos-complement format
Definition: CrateEnergy.cxx:253
PlotPulseshapeFromCool.input
input
Definition: PlotPulseshapeFromCool.py:106
LVL1::CrateEnergy::m_crateEx
int m_crateEx
Definition: CrateEnergy.h:67
LVL1::CrateEnergy::encodeTC
unsigned int encodeTC(int input) const
encode int as 15-bit twos-complement format (hardware Ex/Ey format)
Definition: CrateEnergy.cxx:263
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
LVL1::CrateEnergy::m_overflowY
unsigned int m_overflowY
Definition: CrateEnergy.h:71
LVL1::CrateEnergy::restricted
bool restricted() const
Full or restricted eta range?
Definition: CrateEnergy.cxx:248
LVL1::CrateEnergy::ex
int ex() const
return crate Ex
Definition: CrateEnergy.cxx:223
LVL1::CrateEnergy::m_crateEy
int m_crateEy
Definition: CrateEnergy.h:68
LVL1::CrateEnergy::m_debug
bool m_debug
Definition: CrateEnergy.h:73
LVL1::CrateEnergy::ey
int ey() const
return crate Ey
Definition: CrateEnergy.cxx:228
LVL1::CrateEnergy::m_crate
unsigned int m_crate
Definition: CrateEnergy.h:65
LVL1::CrateEnergy::m_restricted
bool m_restricted
Definition: CrateEnergy.h:72
LVL1::CrateEnergy::m_jemEtSaturation
static const unsigned int m_jemEtSaturation
Definition: CrateEnergy.h:76