Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef TRIGT1CALO_CMMROI_H
5 #define TRIGT1CALO_CMMROI_H
6 
7 #include <stdint.h>
8 
10 
11 namespace LVL1 {
12 
21 class CMMRoI {
22 
23  public:
24 
25  CMMRoI() = default;
29  int missingEtSigHits, int ex, int ey, int et,
30  int jetEtError, int sumEtError, int missingEtError,
31  int missingEtSigError, int exError, int eyError, int etError);
32 
33 
35  int jetEtHits() const;
37  int sumEtHits() const;
39  int missingEtHits() const;
41  int missingEtSigHits() const;
43  int ex() const;
45  int ey() const;
47  int et() const;
49  int jetEtError() const;
51  int sumEtError() const;
53  int missingEtError() const;
55  int missingEtSigError() const;
57  int exError() const;
59  int eyError() const;
61  int etError() const;
62 
64  uint32_t jetEtRoiWord() const;
66  uint32_t energyRoiWord0() const;
68  uint32_t energyRoiWord1() const;
70  uint32_t energyRoiWord2() const;
73 
74  private:
75 
76  // RoI word IDs
77  static const unsigned int s_jetEtWordIdVal = 0x5;
78  static const unsigned int s_wordIdVal0 = 0x4;
79  static const unsigned int s_wordIdVal1 = 0x6;
80  static const unsigned int s_wordIdVal2 = 0x5;
81  // Data locations
82  static const int s_jetEtWordIdBit = 29;
83  static const int s_wordIdBit = 28;
84  static const int s_jetEtHitsBit = 0;
85  static const int s_sumEtHitsBit = 16;
86  static const int s_missingEtHitsBit = 16;
87  static const int s_missingEtSigHitsBit = 16;
88  static const int s_energyBit = 0;
89  static const int s_jetEtParityBit = 28;
90  static const int s_parityBit = 27;
91  static const int s_overflowBit = 15;
92  // Data masks
93  static const int s_jetEtWordIdMask = 0x7;
94  static const int s_wordIdMask = 0xf;
95  static const int s_jetEtHitsMask = 0xf;
96  static const int s_sumEtHitsMask = 0xff;
97  static const int s_missingEtHitsMask = 0xff;
98  static const int s_missingEtSigHitsMask = 0xff;
99  static const int s_energyMask = 0x7fff;
100 
102  int parity(uint32_t roiWord) const;
104  int overflow(uint32_t roiWord) const;
105 
106  // RoI words
111 
112 };
113 
114 inline int CMMRoI::jetEtHits() const
115 {
117 }
118 
119 inline int CMMRoI::sumEtHits() const
120 {
122 }
123 
124 inline int CMMRoI::missingEtHits() const
125 {
127 }
128 
129 inline int CMMRoI::missingEtSigHits() const
130 {
132 }
133 
134 inline int CMMRoI::ex() const
135 {
137 }
138 
139 inline int CMMRoI::ey() const
140 {
142 }
143 
144 inline int CMMRoI::et() const
145 {
147 }
148 
149 inline int CMMRoI::jetEtError() const
150 {
151  return ((m_jetEtRoiWord >> s_jetEtParityBit) & 0x1) << 1;
152 }
153 
154 inline int CMMRoI::sumEtError() const
155 {
156  return parity(m_energyRoiWord1) << 1;
157 }
158 
159 inline int CMMRoI::missingEtError() const
160 {
161  return parity(m_energyRoiWord2) << 1;
162 }
163 
164 inline int CMMRoI::missingEtSigError() const
165 {
166  return parity(m_energyRoiWord0) << 1;
167 }
168 
169 inline int CMMRoI::exError() const
170 {
172 }
173 
174 inline int CMMRoI::eyError() const
175 {
177 }
178 
179 inline int CMMRoI::etError() const
180 {
182 }
183 
185 {
186  return m_jetEtRoiWord;
187 }
188 
190 {
191  return m_energyRoiWord0;
192 }
193 
195 {
196  return m_energyRoiWord1;
197 }
198 
200 {
201  return m_energyRoiWord2;
202 }
203 
204 inline int CMMRoI::parity(uint32_t roiWord) const
205 {
206  return (roiWord >> s_parityBit) & 0x1;
207 }
208 
210 {
211  return (roiWord >> s_overflowBit) & 0x1;
212 }
213 
214 } // end namespace
215 
216 CLASS_DEF(LVL1::CMMRoI, 187997318, 1)
217 
218 #endif
LVL1::CMMRoI::s_missingEtSigHitsMask
static const int s_missingEtSigHitsMask
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:98
LVL1::CMMRoI::s_missingEtSigHitsBit
static const int s_missingEtSigHitsBit
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:87
plotBeamSpotCompare.x1
x1
Definition: plotBeamSpotCompare.py:216
LVL1::CMMRoI::s_jetEtHitsMask
static const int s_jetEtHitsMask
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:95
et
Extra patterns decribing particle interation process.
LVL1::CMMRoI::energyRoiWord2
uint32_t energyRoiWord2() const
Return packed Energy RoI word 2.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:199
LVL1::CMMRoI::m_energyRoiWord2
uint32_t m_energyRoiWord2
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:110
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
LVL1::CMMRoI::exError
int exError() const
Return Ex error flags (bit 0 Overflow, bit 1 Parity)
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:169
LVL1::CMMRoI::sumEtHits
int sumEtHits() const
Return Sum-ET hits.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:119
LVL1::CMMRoI::overflow
int overflow(uint32_t roiWord) const
Return Energy overflow flag (0/1)
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:209
LVL1::CMMRoI::s_sumEtHitsMask
static const int s_sumEtHitsMask
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:96
LVL1::CMMRoI::s_energyBit
static const int s_energyBit
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:88
LVL1::CMMRoI::s_energyMask
static const int s_energyMask
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:99
LVL1::CMMRoI::etError
int etError() const
Return Et error flags (bit 0 Overflow, bit 1 Parity)
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:179
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
LVL1::CMMRoI::s_wordIdVal1
static const unsigned int s_wordIdVal1
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:79
LVL1::CMMRoI::m_energyRoiWord1
uint32_t m_energyRoiWord1
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:109
LVL1::CMMRoI::s_missingEtHitsMask
static const int s_missingEtHitsMask
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:97
LVL1::CMMRoI::ex
int ex() const
Return Ex.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:134
xAOD::roiWord
roiWord
Definition: TrigMissingET_v1.cxx:36
LVL1::CMMRoI::energyRoiWord0
uint32_t energyRoiWord0() const
Return packed Energy RoI word 0.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:189
LVL1::CMMRoI::jetEtError
int jetEtError() const
Return Jet-ET error flag (bit 1 Parity)
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:149
LVL1::CMMRoI::energyRoiWord1
uint32_t energyRoiWord1() const
Return packed Energy RoI word 1.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:194
LVL1::CMMRoI::sumEtError
int sumEtError() const
Return Sum-ET error flag (bit 1 Parity)
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:154
LVL1::CMMRoI::jetEtHits
int jetEtHits() const
Return Jet-ET hits.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:114
LVL1::CMMRoI::s_wordIdVal2
static const unsigned int s_wordIdVal2
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:80
LVL1::CMMRoI::s_sumEtHitsBit
static const int s_sumEtHitsBit
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:85
LVL1::CMMRoI::ey
int ey() const
Return Ey.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:139
LVL1::CMMRoI::et
int et() const
Return Et.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:144
LVL1::CMMRoI::s_overflowBit
static const int s_overflowBit
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:91
LVL1::CMMRoI::missingEtHits
int missingEtHits() const
Return Missing-ET hits.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:124
LVL1::CMMRoI::parity
int parity(uint32_t roiWord) const
Return Energy parity error (0/1)
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:204
LVL1::CMMRoI::s_missingEtHitsBit
static const int s_missingEtHitsBit
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:86
LVL1::CMMRoI::CMMRoI
CMMRoI()=default
LVL1::CMMRoI::eyError
int eyError() const
Return Ey error flags (bit 0 Overflow, bit 1 Parity)
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:174
LVL1::CMMRoI::jetEtRoiWord
uint32_t jetEtRoiWord() const
Return packed Jet-Et RoI word.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:184
LVL1::CMMRoI::s_wordIdMask
static const int s_wordIdMask
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:94
LVL1::CMMRoI::s_parityBit
static const int s_parityBit
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:90
LVL1::CMMRoI::s_jetEtWordIdBit
static const int s_jetEtWordIdBit
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:82
LVL1::CMMRoI::missingEtSigError
int missingEtSigError() const
Return Missing-ET-Sig error flag (bit 1 Parity)
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:164
LVL1::CMMRoI::m_jetEtRoiWord
uint32_t m_jetEtRoiWord
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:107
LVL1::CMMRoI::s_wordIdBit
static const int s_wordIdBit
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:83
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:67
LVL1::CMMRoI::s_jetEtWordIdVal
static const unsigned int s_jetEtWordIdVal
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:77
LVL1::CMMRoI::setRoiWord
bool setRoiWord(uint32_t roiWord)
Set RoI word with ID check.
Definition: CMMRoI.cxx:82
LVL1::CMMRoI::missingEtError
int missingEtError() const
Return Missing-ET error flag (bit 1 Parity)
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:159
LVL1::CMMRoI::s_jetEtWordIdMask
static const int s_jetEtWordIdMask
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:93
LVL1::CMMRoI::missingEtSigHits
int missingEtSigHits() const
Return Missing-ET-Sig hits.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:129
LVL1::CMMRoI::s_jetEtHitsBit
static const int s_jetEtHitsBit
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:84
LVL1::CMMRoI::s_wordIdVal0
static const unsigned int s_wordIdVal0
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:78
CLASS_DEF.h
macros to associate a CLID to a type
LVL1::CMMRoI::s_jetEtParityBit
static const int s_jetEtParityBit
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:89
LVL1::CMMRoI
CMM RoI data.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:21
LVL1::CMMRoI::m_energyRoiWord0
uint32_t m_energyRoiWord0
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:108