ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
L1Topo
L1TopoEvent
Root
GenericTOB.cxx
Go to the documentation of this file.
1
// Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2
3
#include "
L1TopoEvent/GenericTOB.h
"
4
5
thread_local
TCS::Heap<TCS::GenericTOB>
TCS::GenericTOB::fg_heap
(
"Generic"
,100);
6
7
// default constructor
8
TCS::GenericTOB::GenericTOB
(uint32_t
roiWord
) :
9
BaseTOB
(
roiWord
,
"GenericTOB"
),
10
m_tobType
(
JET
)
11
{
12
}
13
14
// constructor from generic data
15
TCS::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
26
TCS::GenericTOB::GenericTOB
(
const
GenericTOB
& other) =
default
;
27
28
// constructor from jet
29
TCS::GenericTOB::GenericTOB
(
const
JetTOB
&
jet
,
JetTOB::JetSize
jetSize) :
30
BaseTOB
(
jet
.
roiWord
(),
jet
.
tobName
())
31
,
m_Et
(
jet
.
Et
(jetSize))
32
,
m_EtNarrow
(
jet
.
EtNarrow
())
33
,
m_EtWide
(
jet
.
EtWide
())
34
,
m_eta
(
jet
.
eta
())
35
,
m_phi
(
jet
.
phi
())
36
,
m_EtDouble
(
jet
.
EtDouble
(jetSize))
37
,
m_etaDouble
(
jet
.
etaDouble
())
38
,
m_phiDouble
(
jet
.
phiDouble
())
39
,
m_tobType
(
JET
)
40
{}
41
42
// constructor from jFEX Tau
43
TCS::GenericTOB::GenericTOB
(
const
jTauTOB
& 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
())
51
,
m_tobType
(
JTAU
)
52
{}
53
54
// constructor from jFEX Em
55
TCS::GenericTOB::GenericTOB
(
const
jEmTOB
& jem) :
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
67
TCS::GenericTOB::GenericTOB
(
const
jLJetTOB
&
jet
) :
68
BaseTOB
(
jet
.
roiWord
(),
jet
.
tobName
())
69
,
m_Et
(
jet
.
Et
())
70
,
m_eta
(
jet
.
eta
())
71
,
m_phi
(static_cast<int>(
jet
.
phi
()))
72
,
m_EtDouble
(
jet
.
EtDouble
())
73
,
m_etaDouble
(
jet
.
etaDouble
())
74
,
m_phiDouble
(
jet
.
phiDouble
())
75
,
m_tobType
(
JLJET
)
76
{}
77
78
// constructor from gFEX LJet
79
TCS::GenericTOB::GenericTOB
(
const
gLJetTOB
&
jet
) :
80
BaseTOB
(
jet
.
roiWord
(),
jet
.
tobName
())
81
,
m_Et
(
jet
.
Et
())
82
,
m_eta
(
jet
.
eta
())
83
,
m_phi
(static_cast<int>(
jet
.
phi
()))
84
,
m_EtDouble
(
jet
.
EtDouble
())
85
,
m_etaDouble
(
jet
.
etaDouble
())
86
,
m_phiDouble
(
jet
.
phiDouble
())
87
,
m_tobType
(
GLJET
)
88
{}
89
90
// constructor from jFEX Jet
91
TCS::GenericTOB::GenericTOB
(
const
jJetTOB
&
jet
) :
92
BaseTOB
(
jet
.
roiWord
(),
jet
.
tobName
())
93
,
m_Et
(
jet
.
Et
())
94
,
m_eta
(
jet
.
eta
())
95
,
m_phi
(static_cast<int>(
jet
.
phi
()))
96
,
m_EtDouble
(
jet
.
EtDouble
())
97
,
m_etaDouble
(
jet
.
etaDouble
())
98
,
m_phiDouble
(
jet
.
phiDouble
())
99
,
m_tobType
(
JJET
)
100
{}
101
102
// constructor from gFEX Jet
103
TCS::GenericTOB::GenericTOB
(
const
gJetTOB
&
jet
) :
104
BaseTOB
(
jet
.
roiWord
(),
jet
.
tobName
())
105
,
m_Et
(
jet
.
Et
())
106
,
m_eta
(
jet
.
eta
())
107
,
m_phi
(static_cast<int>(
jet
.
phi
()))
108
,
m_EtDouble
(
jet
.
EtDouble
())
109
,
m_etaDouble
(
jet
.
etaDouble
())
110
,
m_phiDouble
(
jet
.
phiDouble
())
111
,
m_tobType
(
GJET
)
112
{}
113
114
// constructor from cluster
115
TCS::GenericTOB::GenericTOB
(
const
ClusterTOB
& 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
127
TCS::GenericTOB::GenericTOB
(
const
eEmTOB
& eem) :
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
139
TCS::GenericTOB::GenericTOB
(
const
eTauTOB
& etau) :
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
151
TCS::GenericTOB::GenericTOB
(
const
cTauTOB
& 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
163
TCS::GenericTOB::GenericTOB
(
const
MuonTOB
& 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
180
TCS::GenericTOB::GenericTOB
(
const
LateMuonTOB
& 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())
193
,
m_tobType
(
LATEMUON
)
194
{}
195
196
// constructor from muonNextBC
197
TCS::GenericTOB::GenericTOB
(
const
MuonNextBCTOB
& 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.)
205
,
m_tobType
(
MUONNEXTBC
)
206
{}
207
208
// constructor from met
209
TCS::GenericTOB::GenericTOB
(
const
MetTOB
&
met
) :
210
BaseTOB
(
met
.
roiWord
(),
met
.
tobName
())
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
218
TCS::GenericTOB::GenericTOB
(
const
jXETOB
& jxe) :
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
231
TCS::GenericTOB::GenericTOB
(
const
jTETOB
& jte) :
232
BaseTOB
(jte.
roiWord
(), jte.
tobName
())
233
,
m_sumEt
(jte.
sumEt
())
234
,
m_sumEtSideA
(jte.
sumEtSideA
())
235
,
m_sumEtSideC
(jte.
sumEtSideC
())
236
,
m_sumEtDouble
(jte.
sumEtDouble
())
237
,
m_sumEtDoubleSideA
(jte.
sumEtDoubleSideA
())
238
,
m_sumEtDoubleSideC
(jte.
sumEtDoubleSideC
())
239
,
m_tobType
(jte.
tobType
())
240
{}
241
242
243
244
245
// constructor from gFEX XE
246
TCS::GenericTOB::GenericTOB
(
const
gXETOB
& gxe) :
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
259
TCS::GenericTOB::GenericTOB
(
const
gTETOB
& gte) :
260
BaseTOB
(gte.
roiWord
(), gte.
tobName
())
261
,
m_sumEt
(gte.
sumEt
())
262
,
m_sumEtDouble
(gte.
sumEtDouble
())
263
,
m_tobType
(gte.
tobType
())
264
{}
265
266
// destructor
267
TCS::GenericTOB::~GenericTOB
() =
default
;
268
269
270
TCS::GenericTOB
*
271
TCS::GenericTOB::createOnHeap
(
const
GenericTOB
& tob) {
272
return
fg_heap
.create(tob);
273
}
274
275
void
276
TCS::GenericTOB::clearHeap
() {
277
return
fg_heap
.clear();
278
}
279
280
void
TCS::GenericTOB::print
(std::ostream &o)
const
{
281
o <<
"generic tob type: "
<<
tobType
() <<
", energy: "
<<
Et
() <<
", sumEt(): "
<<
sumEt
() <<
", eta: "
<<
eta
() <<
", phi: "
<<
phi
();
282
}
eta
Scalar eta() const
pseudorapidity method
Definition
AmgMatrixBasePlugin.h:83
phi
Scalar phi() const
phi method
Definition
AmgMatrixBasePlugin.h:67
GenericTOB.h
TCS::BaseTOB::tobName
const std::string & tobName() const
Definition
BaseTOB.h:24
TCS::BaseTOB::roiWord
uint32_t roiWord() const
Definition
BaseTOB.h:22
TCS::BaseTOB::BaseTOB
BaseTOB(uint32_t roiWord, const std::string_view tobType)
Definition
BaseTOB.cxx:11
TCS::ClusterTOB
Definition
ClusterTOB.h:13
TCS::GenericTOB
Definition
GenericTOB.h:35
TCS::GenericTOB::m_tobType
inputTOBType_t m_tobType
Definition
GenericTOB.h:181
TCS::GenericTOB::m_eta
int m_eta
Definition
GenericTOB.h:162
TCS::GenericTOB::EtNarrow
unsigned int EtNarrow() const
Definition
GenericTOB.h:115
TCS::GenericTOB::goodMF
int goodMF() const
Definition
GenericTOB.h:130
TCS::GenericTOB::GenericTOB
GenericTOB(uint32_t roiWord=0)
Definition
GenericTOB.cxx:8
TCS::GenericTOB::phiDouble
double phiDouble() const
Definition
GenericTOB.h:136
TCS::GenericTOB::print
virtual void print(std::ostream &o) const
Definition
GenericTOB.cxx:280
TCS::GenericTOB::tobType
inputTOBType_t tobType() const
Definition
GenericTOB.h:148
TCS::GenericTOB::m_innerCoin
int m_innerCoin
Definition
GenericTOB.h:166
TCS::GenericTOB::m_Et
unsigned int m_Et
Definition
GenericTOB.h:151
TCS::GenericTOB::m_EtWide
unsigned int m_EtWide
Definition
GenericTOB.h:153
TCS::GenericTOB::bw2or3
int bw2or3() const
Definition
GenericTOB.h:128
TCS::GenericTOB::fg_heap
static Heap< TCS::GenericTOB > fg_heap
Definition
GenericTOB.h:183
TCS::GenericTOB::m_goodMF
int m_goodMF
Definition
GenericTOB.h:167
TCS::GenericTOB::ExDouble
double ExDouble() const
Definition
GenericTOB.h:138
TCS::GenericTOB::m_is2cand
int m_is2cand
Definition
GenericTOB.h:169
TCS::GenericTOB::m_etaDouble
double m_etaDouble
Definition
GenericTOB.h:172
TCS::GenericTOB::is2cand
int is2cand() const
Definition
GenericTOB.h:132
TCS::GenericTOB::sumEtDoubleSideC
double sumEtDoubleSideC() const
Definition
GenericTOB.h:142
TCS::GenericTOB::m_phi
int m_phi
Definition
GenericTOB.h:163
TCS::GenericTOB::sumEtSideA
unsigned int sumEtSideA() const
Definition
GenericTOB.h:121
TCS::GenericTOB::EtWide
unsigned int EtWide() const
Definition
GenericTOB.h:114
TCS::GenericTOB::Et
unsigned int Et() const
Definition
GenericTOB.h:113
TCS::GenericTOB::innerCoin
int innerCoin() const
Definition
GenericTOB.h:129
TCS::GenericTOB::Ex
int Ex() const
Definition
GenericTOB.h:117
TCS::GenericTOB::sumEtDoubleSideA
double sumEtDoubleSideA() const
Definition
GenericTOB.h:141
TCS::GenericTOB::createOnHeap
static GenericTOB * createOnHeap(const GenericTOB &)
Definition
GenericTOB.cxx:271
TCS::GenericTOB::charge
int charge() const
Definition
GenericTOB.h:131
TCS::GenericTOB::Ey
int Ey() const
Definition
GenericTOB.h:118
TCS::GenericTOB::m_Ex
int m_Ex
Definition
GenericTOB.h:155
TCS::GenericTOB::eta
int eta() const
Definition
GenericTOB.h:124
TCS::GenericTOB::sumEtSideC
unsigned int sumEtSideC() const
Definition
GenericTOB.h:122
TCS::GenericTOB::m_sumEtDouble
double m_sumEtDouble
Definition
GenericTOB.h:177
TCS::GenericTOB::m_sumEt
unsigned int m_sumEt
Definition
GenericTOB.h:158
TCS::GenericTOB::m_EtNarrow
unsigned int m_EtNarrow
Definition
GenericTOB.h:152
TCS::GenericTOB::~GenericTOB
~GenericTOB()
TCS::GenericTOB::sumEtDouble
double sumEtDouble() const
Definition
GenericTOB.h:140
TCS::GenericTOB::m_charge
int m_charge
Definition
GenericTOB.h:168
TCS::GenericTOB::m_sumEtSideC
unsigned int m_sumEtSideC
Definition
GenericTOB.h:160
TCS::GenericTOB::EtDouble
double EtDouble() const
Definition
GenericTOB.h:134
TCS::GenericTOB::EyDouble
double EyDouble() const
Definition
GenericTOB.h:139
TCS::GenericTOB::Et2
unsigned int Et2() const
Definition
GenericTOB.h:119
TCS::GenericTOB::m_sumEtDoubleSideC
double m_sumEtDoubleSideC
Definition
GenericTOB.h:179
TCS::GenericTOB::m_EyDouble
double m_EyDouble
Definition
GenericTOB.h:176
TCS::GenericTOB::m_Ey
int m_Ey
Definition
GenericTOB.h:156
TCS::GenericTOB::clearHeap
static void clearHeap()
Definition
GenericTOB.cxx:276
TCS::GenericTOB::phi
int phi() const
Definition
GenericTOB.h:125
TCS::GenericTOB::m_sumEtSideA
unsigned int m_sumEtSideA
Definition
GenericTOB.h:159
TCS::GenericTOB::m_ExDouble
double m_ExDouble
Definition
GenericTOB.h:175
TCS::GenericTOB::m_Et2
unsigned int m_Et2
Definition
GenericTOB.h:157
TCS::GenericTOB::m_phiDouble
double m_phiDouble
Definition
GenericTOB.h:173
TCS::GenericTOB::m_sumEtDoubleSideA
double m_sumEtDoubleSideA
Definition
GenericTOB.h:178
TCS::GenericTOB::sumEt
unsigned int sumEt() const
Definition
GenericTOB.h:120
TCS::GenericTOB::etaDouble
double etaDouble() const
Definition
GenericTOB.h:135
TCS::GenericTOB::m_bw2or3
int m_bw2or3
Definition
GenericTOB.h:165
TCS::GenericTOB::m_EtDouble
double m_EtDouble
Definition
GenericTOB.h:171
TCS::Heap
Definition
Heap.h:13
TCS::JetTOB
Definition
JetTOB.h:18
TCS::JetTOB::JetSize
JetSize
Definition
JetTOB.h:21
TCS::LateMuonTOB
Definition
LateMuonTOB.h:13
TCS::MetTOB
Definition
MetTOB.h:13
TCS::MuonNextBCTOB
Definition
MuonNextBCTOB.h:13
TCS::MuonTOB
Definition
MuonTOB.h:14
TCS::cTauTOB
Definition
cTauTOB.h:13
TCS::eEmTOB
Definition
L1Topo/L1TopoEvent/L1TopoEvent/eEmTOB.h:13
TCS::eTauTOB
Definition
eTauTOB.h:13
TCS::gJetTOB
Definition
gJetTOB.h:18
TCS::gLJetTOB
Definition
gLJetTOB.h:18
TCS::gTETOB
Definition
gTETOB.h:13
TCS::gXETOB
Definition
gXETOB.h:13
TCS::jEmTOB
Definition
jEmTOB.h:16
TCS::jJetTOB
Definition
jJetTOB.h:16
TCS::jLJetTOB
Definition
jLJetTOB.h:16
TCS::jTETOB
Definition
jTETOB.h:13
TCS::jTauTOB
Definition
jTauTOB.h:19
TCS::jXETOB
Definition
jXETOB.h:13
MET
Definition
MET.py:1
TCS::JET
@ JET
Definition
Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/Types.h:12
TCS::JLJET
@ JLJET
Definition
Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/Types.h:14
TCS::JEM
@ JEM
Definition
Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/Types.h:23
TCS::EEM
@ EEM
Definition
Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/Types.h:21
TCS::LATEMUON
@ LATEMUON
Definition
Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/Types.h:19
TCS::MUONNEXTBC
@ MUONNEXTBC
Definition
Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/Types.h:20
TCS::ETAU
@ ETAU
Definition
Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/Types.h:22
TCS::JTAU
@ JTAU
Definition
Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/Types.h:13
TCS::GJET
@ GJET
Definition
Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/Types.h:25
TCS::JJET
@ JJET
Definition
Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/Types.h:15
TCS::GLJET
@ GLJET
Definition
Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/Types.h:24
TCS::MUON
@ MUON
Definition
Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/Types.h:17
jet
Definition
JetCalibTools_PlotJESFactors.cxx:23
met
Definition
IMETSignificance.h:24
Generated on
for ATLAS Offline Software by
1.17.0