ATLAS Offline Software
SystemEnergy.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  SystemEnergy.h - description
6  -------------------
7  begin : 06/09/2007
8  email : Alan.Watson@cern.ch
9  ***************************************************************************/
10 
11 
12 
13 
14 #ifndef SYSTEMENERGY_H
15 #define SYSTEMENERGY_H
17 
18 #include "TrigConfData/L1Menu.h"
19 
20 
21 
25 namespace LVL1 {
26 
30 class SystemEnergy {
31 
32 public:
33  SystemEnergy(const DataVector<CrateEnergy>* crates, const TrigConf::L1Menu* l1Menu);
34  SystemEnergy(unsigned int et, unsigned int exTC, unsigned int eyTC,
35  unsigned int overflowT, unsigned int overflowX,
36  unsigned int overflowY, unsigned int restricted,
37  const TrigConf::L1Menu* l1Menu);
38  ~SystemEnergy() = default;
39 
40 public:
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  unsigned int etMissHits() const;
54  unsigned int etSumHits() const;
55  unsigned int metSigHits() const;
57  unsigned int roiWord0() const;
58  unsigned int roiWord1() const;
59  unsigned int roiWord2() const;
60 
61 private:
63 
64  int m_systemEx;
65  int m_systemEy;
66  int m_systemEt;
67  unsigned int m_overflowX;
68  unsigned int m_overflowY;
69  unsigned int m_overflowT;
70  unsigned int m_restricted;
71  unsigned int m_etMissHits;
72  unsigned int m_etSumHits;
73  unsigned int m_metSigHits;
75  static const unsigned int m_sumBits=15;
76  static const int m_maxEtSumThr=0x3fff;
77  static const int m_etSumOverflow=0x7fff;
78  bool m_debug;
79 
80 private:
81  void etMissTrigger();
82  void etSumTrigger();
83  void metSigTrigger();
84  unsigned int encodeTC(int input) const;
85  int decodeTC(unsigned int input) const;
86 
87 };
88 
89 } // end of namespace bracket
90 
91 #endif
LVL1::SystemEnergy::exTC
unsigned int exTC() const
15 bit twos-complement format
Definition: SystemEnergy.cxx:174
et
Extra patterns decribing particle interation process.
LVL1::SystemEnergy::etMissHits
unsigned int etMissHits() const
Trigger Results.
Definition: SystemEnergy.cxx:186
LVL1::SystemEnergy::metSigHits
unsigned int metSigHits() const
return MEtSig hits
Definition: SystemEnergy.cxx:198
LVL1::SystemEnergy::m_metSigHits
unsigned int m_metSigHits
Definition: SystemEnergy.h:83
LVL1::SystemEnergy::m_etMissHits
unsigned int m_etMissHits
Definition: SystemEnergy.h:81
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
LVL1::SystemEnergy::roiWord0
unsigned int roiWord0() const
RoI words.
Definition: SystemEnergy.cxx:204
LVL1::SystemEnergy::etMissTrigger
void etMissTrigger()
Test Ex, Ey sums against ETmiss thresholds Regrettably not as simple as it sounds if we emulate har...
Definition: SystemEnergy.cxx:257
LVL1::SystemEnergy::eyTC
unsigned int eyTC() const
return crate Ey in 15-bit twos-complement format (hardware format)
Definition: SystemEnergy.cxx:180
TrigConf::L1Menu
L1 menu configuration.
Definition: L1Menu.h:28
LVL1::SystemEnergy::m_debug
bool m_debug
Definition: SystemEnergy.h:88
LVL1::SystemEnergy::m_etSumHits
unsigned int m_etSumHits
Definition: SystemEnergy.h:82
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
LVL1::SystemEnergy::m_systemEx
int m_systemEx
Definition: SystemEnergy.h:74
CrateEnergy.h
LVL1::SystemEnergy::ex
int ex() const
return crate Ex
Definition: SystemEnergy.cxx:144
LVL1::SystemEnergy::roiWord2
unsigned int roiWord2() const
return RoI word 2 (Et value & overflow, EtMiss hits)
Definition: SystemEnergy.cxx:238
LVL1::SystemEnergy::etSumTrigger
void etSumTrigger()
Test Et sum against ETsum thresholds.
Definition: SystemEnergy.cxx:302
LVL1::SystemEnergy::encodeTC
unsigned int encodeTC(int input) const
encode int as 15-bit twos-complement format (hardware Ex/Ey format)
Definition: SystemEnergy.cxx:412
LVL1::SystemEnergy::decodeTC
int decodeTC(unsigned int input) const
decode 15-bit twos-complement format (hardware Ex/Ey format) as int
Definition: SystemEnergy.cxx:430
LVL1::SystemEnergy::exOverflow
unsigned int exOverflow() const
Overflow bits.
Definition: SystemEnergy.cxx:162
LVL1::SystemEnergy::m_etSumOverflow
static const int m_etSumOverflow
Definition: SystemEnergy.h:87
LVL1::SystemEnergy::etSumHits
unsigned int etSumHits() const
return EtSum hits
Definition: SystemEnergy.cxx:192
LVL1::SystemEnergy::etOverflow
unsigned int etOverflow() const
return Et overflow bit
Definition: SystemEnergy.cxx:156
LVL1::SystemEnergy::m_sumBits
static const unsigned int m_sumBits
Definition: SystemEnergy.h:85
PlotPulseshapeFromCool.input
input
Definition: PlotPulseshapeFromCool.py:106
LVL1::SystemEnergy::et
int et() const
return global et, ex, ey sums
Definition: SystemEnergy.cxx:138
LVL1::SystemEnergy::roiWord1
unsigned int roiWord1() const
return RoI word 1 (Ey value & overflow, EtSum hits)
Definition: SystemEnergy.cxx:221
LVL1::SystemEnergy::m_etMissQ
uint32_t m_etMissQ
Definition: SystemEnergy.h:84
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
LVL1::SystemEnergy::m_systemEt
int m_systemEt
Definition: SystemEnergy.h:76
LVL1::SystemEnergy::m_overflowT
unsigned int m_overflowT
Definition: SystemEnergy.h:79
LVL1::SystemEnergy::m_maxEtSumThr
static const int m_maxEtSumThr
Definition: SystemEnergy.h:86
LVL1::SystemEnergy::m_overflowY
unsigned int m_overflowY
Definition: SystemEnergy.h:78
LVL1::SystemEnergy::m_systemEy
int m_systemEy
Definition: SystemEnergy.h:75
LVL1::SystemEnergy::~SystemEnergy
~SystemEnergy()=default
LVL1::SystemEnergy::eyOverflow
unsigned int eyOverflow() const
return Ey overflow bit
Definition: SystemEnergy.cxx:168
LVL1::SystemEnergy::SystemEnergy
SystemEnergy(const DataVector< CrateEnergy > *crates, const TrigConf::L1Menu *l1Menu)
Definition: SystemEnergy.cxx:21
LVL1::SystemEnergy::m_L1Menu
const TrigConf::L1Menu * m_L1Menu
Definition: SystemEnergy.h:72
LVL1::SystemEnergy::m_restricted
unsigned int m_restricted
Definition: SystemEnergy.h:80
L1Menu.h
LVL1::SystemEnergy::metSigTrigger
void metSigTrigger()
Test MEt Significance against METSig thresholds.
Definition: SystemEnergy.cxx:351
LVL1::SystemEnergy::ey
int ey() const
return crate Ey
Definition: SystemEnergy.cxx:150
LVL1::SystemEnergy::m_overflowX
unsigned int m_overflowX
Definition: SystemEnergy.h:77