ATLAS Offline Software
Loading...
Searching...
No Matches
GenericTOB.cxx
Go to the documentation of this file.
1// Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2
4
6
7// default constructor
9 BaseTOB( roiWord,"GenericTOB" ),
11{
12}
13
14// constructor from generic data
15TCS::GenericTOB::GenericTOB(unsigned int Et, int eta, int phi, uint32_t roiWord) :
16 BaseTOB( roiWord,"GenericTOB" )
17 , m_Et(Et)
18 , m_eta(eta)
19 , m_phi(phi)
20 , m_EtDouble((double)Et)
21 , m_etaDouble(((double)eta)/10.)
22 , m_phiDouble(((double)phi)/10.)
23{}
24
25// copy constructor
26TCS::GenericTOB::GenericTOB(const GenericTOB & other) = default;
27
28// constructor from jet
31 , m_Et(jet.Et(jetSize))
34 , m_eta(jet.eta())
35 , m_phi(jet.phi())
36 , m_EtDouble(jet.EtDouble(jetSize))
39 , m_tobType(JET)
40{}
41
42// constructor from jFEX Tau
44 BaseTOB(tau.roiWord(), tau.tobName())
45 , m_Et(tau.Et())
46 , m_eta(tau.eta())
47 , m_phi(static_cast<int>(tau.phi()))
48 , m_EtDouble(tau.EtDouble())
49 , m_etaDouble(tau.etaDouble())
50 , m_phiDouble(tau.phiDouble())
52{}
53
54// constructor from jFEX Em
56 BaseTOB(jem.roiWord(), jem.tobName())
57 , m_Et(jem.Et())
58 , m_eta(jem.eta())
59 , m_phi(static_cast<int>(jem.phi()))
60 , m_EtDouble(jem.EtDouble())
61 , m_etaDouble(jem.etaDouble())
62 , m_phiDouble(jem.phiDouble())
63 , m_tobType(JEM)
64{}
65
66// constructor from jFEX LJet
69 , m_Et(jet.Et())
70 , m_eta(jet.eta())
71 , m_phi(static_cast<int>(jet.phi()))
76{}
77
78// constructor from gFEX LJet
81 , m_Et(jet.Et())
82 , m_eta(jet.eta())
83 , m_phi(static_cast<int>(jet.phi()))
88{}
89
90// constructor from jFEX Jet
93 , m_Et(jet.Et())
94 , m_eta(jet.eta())
95 , m_phi(static_cast<int>(jet.phi()))
100{}
101
102// constructor from gFEX Jet
105 , m_Et(jet.Et())
106 , m_eta(jet.eta())
107 , m_phi(static_cast<int>(jet.phi()))
111 , m_tobType(GJET)
112{}
113
114// constructor from cluster
116 BaseTOB(cluster.roiWord(), cluster.tobName())
117 , m_Et(cluster.Et())
118 , m_eta(cluster.eta())
119 , m_phi(cluster.phi())
120 , m_EtDouble(cluster.EtDouble())
121 , m_etaDouble(cluster.etaDouble())
122 , m_phiDouble(cluster.phiDouble())
123 , m_tobType(cluster.tobType())
124{}
125
126// constructor from eFEX Em
128 BaseTOB(eem.roiWord(), eem.tobName())
129 , m_Et(eem.Et())
130 , m_eta(eem.eta())
131 , m_phi(static_cast<int>(eem.phi()))
132 , m_EtDouble(eem.EtDouble())
133 , m_etaDouble(eem.etaDouble())
134 , m_phiDouble(eem.phiDouble())
135 , m_tobType(EEM)
136{}
137
138// constructor from eFEX Tau
140 BaseTOB(etau.roiWord(), etau.tobName())
141 , m_Et(etau.Et())
142 , m_eta(etau.eta())
143 , m_phi(static_cast<int>(etau.phi()))
144 , m_EtDouble(etau.EtDouble())
145 , m_etaDouble(etau.etaDouble())
146 , m_phiDouble(etau.phiDouble())
147 , m_tobType(ETAU)
148{}
149
150// constructor from cTau
152 BaseTOB(ctau.roiWord(), ctau.tobName())
153 , m_Et(ctau.Et())
154 , m_eta(ctau.eta())
155 , m_phi(static_cast<int>(ctau.phi()))
156 , m_EtDouble(ctau.EtDouble())
157 , m_etaDouble(ctau.etaDouble())
158 , m_phiDouble(ctau.phiDouble())
159 , m_tobType(ctau.tobType())
160{}
161
162// constructor from muon
164 BaseTOB(muon.roiWord(), muon.tobName())
165 , m_Et(muon.Et())
166 , m_eta(muon.eta())
167 , m_phi(static_cast<int>(muon.phi()))
168 , m_bw2or3(muon.bw2or3())
169 , m_innerCoin(muon.innerCoin())
170 , m_goodMF(muon.goodMF())
171 , m_charge(muon.charge())
172 , m_is2cand(muon.is2cand())
173 , m_EtDouble(muon.EtDouble())
174 , m_etaDouble(muon.EtaDouble())
175 , m_phiDouble(muon.PhiDouble())
176 , m_tobType(MUON)
177{}
178
179// constructor from latemuon
181 BaseTOB(lateMuon.roiWord(), lateMuon.tobName())
182 , m_Et(lateMuon.Et())
183 , m_eta(lateMuon.eta())
184 , m_phi(static_cast<int>(lateMuon.phi()))
185 , m_bw2or3(lateMuon.bw2or3())
186 , m_innerCoin(lateMuon.innerCoin())
187 , m_goodMF(lateMuon.goodMF())
188 , m_charge(lateMuon.charge())
189 , m_is2cand(lateMuon.is2cand())
190 , m_EtDouble(lateMuon.EtDouble())
191 , m_etaDouble(lateMuon.EtaDouble())
192 , m_phiDouble(lateMuon.PhiDouble())
194{}
195
196// constructor from muonNextBC
198 BaseTOB(muonNextBC.roiWord(), muonNextBC.tobName())
199 , m_Et(muonNextBC.Et())
200 , m_eta(muonNextBC.eta())
201 , m_phi(muonNextBC.phi())
202 , m_EtDouble((double)muonNextBC.Et())
203 , m_etaDouble(((double)muonNextBC.eta())/10.)
204 , m_phiDouble(((double)muonNextBC.phi())/10.)
206{}
207
208// constructor from met
211 , m_Et(met.Et())
212 , m_Ex(met.Ex())
213 , m_Ey(met.Ey())
214 , m_tobType(MET)
215{}
216
217// constructor from jFEX XE
219 BaseTOB(jxe.roiWord(), jxe.tobName())
220 , m_Et(jxe.Et())
221 , m_Ex(jxe.Ex())
222 , m_Ey(jxe.Ey())
223 , m_Et2(jxe.Et2())
224 , m_EtDouble(jxe.EtDouble())
225 , m_ExDouble(jxe.ExDouble())
226 , m_EyDouble(jxe.EyDouble())
227 , m_tobType(jxe.tobType())
228{}
229
230// constructor from jFEX TE
232 BaseTOB(jte.roiWord(), jte.tobName())
233 , m_sumEt(jte.sumEt())
234 , m_sumEtSideA(jte.sumEtSideA())
235 , m_sumEtSideC(jte.sumEtSideC())
239 , m_tobType(jte.tobType())
240{}
241
242
243
244
245// constructor from gFEX XE
247 BaseTOB(gxe.roiWord(), gxe.tobName())
248 , m_Et(gxe.Et())
249 , m_Ex(gxe.Ex())
250 , m_Ey(gxe.Ey())
251 , m_Et2(gxe.Et2())
252 , m_EtDouble(gxe.EtDouble())
253 , m_ExDouble(gxe.ExDouble())
254 , m_EyDouble(gxe.EyDouble())
255 , m_tobType(gxe.tobType())
256{}
257
258// constructor from gFEX TE
260 BaseTOB(gte.roiWord(), gte.tobName())
261 , m_sumEt(gte.sumEt())
263 , m_tobType(gte.tobType())
264{}
265
266// destructor
268
269
272 return fg_heap.create(tob);
273}
274
275void
277 return fg_heap.clear();
278}
279
280void TCS::GenericTOB::print(std::ostream &o) const {
281 o << "generic tob type: " << tobType() << ", energy: " << Et() << ", sumEt(): " << sumEt() << ", eta: " << eta() << ", phi: " << phi();
282}
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
const std::string & tobName() const
Definition BaseTOB.h:23
uint32_t roiWord() const
Definition BaseTOB.h:21
BaseTOB(uint32_t roiWord, const std::string &tobType)
Definition BaseTOB.cxx:11
inputTOBType_t m_tobType
Definition GenericTOB.h:181
unsigned int EtNarrow() const
Definition GenericTOB.h:115
int goodMF() const
Definition GenericTOB.h:130
GenericTOB(uint32_t roiWord=0)
Definition GenericTOB.cxx:8
double phiDouble() const
Definition GenericTOB.h:136
virtual void print(std::ostream &o) const
inputTOBType_t tobType() const
Definition GenericTOB.h:148
unsigned int m_Et
Definition GenericTOB.h:151
unsigned int m_EtWide
Definition GenericTOB.h:153
int bw2or3() const
Definition GenericTOB.h:128
double ExDouble() const
Definition GenericTOB.h:138
int is2cand() const
Definition GenericTOB.h:132
double sumEtDoubleSideC() const
Definition GenericTOB.h:142
unsigned int sumEtSideA() const
Definition GenericTOB.h:121
unsigned int EtWide() const
Definition GenericTOB.h:114
unsigned int Et() const
Definition GenericTOB.h:113
int innerCoin() const
Definition GenericTOB.h:129
int Ex() const
Definition GenericTOB.h:117
double sumEtDoubleSideA() const
Definition GenericTOB.h:141
static GenericTOB * createOnHeap(const GenericTOB &)
int charge() const
Definition GenericTOB.h:131
int Ey() const
Definition GenericTOB.h:118
int eta() const
Definition GenericTOB.h:124
unsigned int sumEtSideC() const
Definition GenericTOB.h:122
double m_sumEtDouble
Definition GenericTOB.h:177
unsigned int m_sumEt
Definition GenericTOB.h:158
unsigned int m_EtNarrow
Definition GenericTOB.h:152
double sumEtDouble() const
Definition GenericTOB.h:140
unsigned int m_sumEtSideC
Definition GenericTOB.h:160
double EtDouble() const
Definition GenericTOB.h:134
double EyDouble() const
Definition GenericTOB.h:139
unsigned int Et2() const
Definition GenericTOB.h:119
double m_sumEtDoubleSideC
Definition GenericTOB.h:179
static void clearHeap()
int phi() const
Definition GenericTOB.h:125
static thread_local Heap< TCS::GenericTOB > fg_heap
Definition GenericTOB.h:183
unsigned int m_sumEtSideA
Definition GenericTOB.h:159
unsigned int m_Et2
Definition GenericTOB.h:157
double m_sumEtDoubleSideA
Definition GenericTOB.h:178
unsigned int sumEt() const
Definition GenericTOB.h:120
double etaDouble() const
Definition GenericTOB.h:135
Definition MET.py:1