ATLAS Offline Software
Loading...
Searching...
No Matches
TruthClassificationTool Class Reference

a tool to classify particles based on their type and origin More...

#include <TruthClassificationTool.h>

Inheritance diagram for TruthClassificationTool:
Collaboration diagram for TruthClassificationTool:

Public Member Functions

 TruthClassificationTool (const std::string &type)
virtual StatusCode classify (const xAOD::IParticle &particle, unsigned int &classification) const override
 classify and return unsigned int
virtual StatusCode classify (const xAOD::IParticle &particle, Truth::Type &classification) const override
 classify and return Truth::Type
virtual StatusCode initialize ()
 Dummy implementation of the initialisation function.
virtual void print () const
 Print the state of the tool.
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysInitialize () override
 Perform system initialization for an algorithm.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () const
bool msgLvl (const MSG::Level lvl) const
Additional helper functions, not directly mimicking Athena
template<class T>
const T * getProperty (const std::string &name) const
 Get one of the tool's properties.
const std::string & msg_level_name () const __attribute__((deprecated))
 A deprecated function for getting the message level's name.
const std::string & getName (const void *ptr) const
 Get the name of an object that is / should be in the event store.
SG::sgkey_t getKey (const void *ptr) const
 Get the (hashed) key of an object that is in the event store.

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed.

Private Types

typedef ServiceHandle< StoreGateSvc > StoreGateSvc_t

Private Member Functions

StatusCode classifyElectron (const xAOD::IParticle &electron, Truth::Type &classification) const
 electron classification helper
StatusCode classifyMuon (const xAOD::IParticle &muon, Truth::Type &classification) const
 muon classification helper
void splitPromptPhotonConversion (const xAOD::IParticle &electron, Truth::Type &classification) const
 split a PromptPhotonConversion electron into material or internal conversion (left unchanged if this cannot be decided)
bool isPromptElectron (const xAOD::IParticle &electron, bool isTruthParticle, const xAOD::TruthParticle *truthParticle) const
 a helper to check if an electron is prompt
bool isChargeFlipElectron (const xAOD::IParticle &electron, bool isTruthParticle, const xAOD::TruthParticle *truthParticle) const
 a helper to check if an electron has an incorrectly reconstructed charge
bool isChargeFlipMuon (const xAOD::IParticle &muon, bool isTruthParticle, const xAOD::TruthParticle *truthParticle) const
 a helper to check if a muon has an incorrectly reconstructed charge
bool hasBHadronOrigin (int origin) const
 a helper to check if the origin is a b-hadron
bool hasCHadronOrigin (int origin) const
 a helper to check if the origin is a c-hadron
bool hasLightHadronOrigin (int origin) const
 a helper to check if the origin is a light hadron
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

bool m_separateChargeFlipElectrons = false
 separately store charge-flip electrons/muons
bool m_separateChargeFlipMuons = false
bool m_separateConversionTypes = false
 split electron photon conversions into material and internal conversions
bool m_useTruthParticleDecorations {false}
 use truth particle decorations
const SG::ConstAccessor< int > m_truthType {"truthType"}
const SG::ConstAccessor< int > m_truthOrigin {"truthOrigin"}
const SG::ConstAccessor< unsigned int > m_truthClassification {"truthClassification"}
const SG::ConstAccessor< int > m_truthPdgId {"truthPdgId"}
const SG::ConstAccessor< unsigned int > m_classifierParticleType {"classifierParticleType"}
const SG::ConstAccessor< unsigned int > m_classifierParticleOrigin {"classifierParticleOrigin"}
const SG::ConstAccessor< int > m_firstMotherTruthType {"firstEgMotherTruthType"}
const SG::ConstAccessor< int > m_firstMotherTruthOrigin {"firstEgMotherTruthOrigin"}
const SG::ConstAccessor< unsigned int > m_firstMotherTruthClassification {"firstEgMotherTruthClassification"}
const SG::ConstAccessor< int > m_firstMotherPdgId {"firstEgMotherPdgId"}
const SG::ConstAccessor< int > m_lastMotherTruthType {"lastEgMotherTruthType"}
const SG::ConstAccessor< int > m_lastMotherTruthOrigin {"lastEgMotherTruthOrigin"}
const SG::ConstAccessor< unsigned int > m_lastMotherTruthClassification {"lastEgMotherTruthClassification"}
const SG::ConstAccessor< int > m_lastMotherPdgId {"lastEgMotherPdgId"}
const SG::ConstAccessor< int > m_fallbackTruthType {"TruthClassifierFallback_truthType"}
const SG::ConstAccessor< int > m_fallbackTruthOrigin {"TruthClassifierFallback_truthOrigin"}
const SG::ConstAccessor< int > m_fallbackTruthClassification {"TruthClassifierFallback_truthClassification"}
const SG::ConstAccessor< float > m_fallbackDR {"TruthClassifierFallback_dR"}
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default).
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default).
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared

Detailed Description

a tool to classify particles based on their type and origin

Definition at line 18 of file TruthClassificationTool.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< AlgTool > >::StoreGateSvc_t
privateinherited

Definition at line 376 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ TruthClassificationTool()

TruthClassificationTool::TruthClassificationTool ( const std::string & type)
explicit

Definition at line 25 of file TruthClassificationTool.cxx.

26 : asg::AsgTool(type)
27{
28 declareProperty ("separateChargeFlipElectrons", m_separateChargeFlipElectrons, "separate prompt charge-flipped electrons");
29 declareProperty ("separateChargeFlipMuons", m_separateChargeFlipMuons, "separate prompt charge-flipped muons");
30 declareProperty ("useTruthParticleDecorations", m_useTruthParticleDecorations, "use truth particle decorations");
31 declareProperty ("separateConversionTypes", m_separateConversionTypes, "split electrons from photon conversions into material and internal conversions");
32}
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
bool m_separateChargeFlipElectrons
separately store charge-flip electrons/muons
bool m_separateConversionTypes
split electron photon conversions into material and internal conversions
bool m_useTruthParticleDecorations
use truth particle decorations

Member Function Documentation

◆ classify() [1/2]

StatusCode TruthClassificationTool::classify ( const xAOD::IParticle & particle,
Truth::Type & classification ) const
overridevirtual

classify and return Truth::Type

Implements ITruthClassificationTool.

Definition at line 45 of file TruthClassificationTool.cxx.

47{
48 const xAOD::TruthParticle *truthParticle = dynamic_cast<const xAOD::TruthParticle *> (&particle);
49 if (dynamic_cast<const xAOD::Electron *> (&particle) || (truthParticle != nullptr && MC::isElectron(truthParticle)))
50 {
51 ANA_CHECK(classifyElectron(particle, classification));
52 if (m_separateConversionTypes && classification == Truth::Type::PromptPhotonConversion)
53 {
54 splitPromptPhotonConversion(particle, classification);
55 }
56 }
57 else if (dynamic_cast<const xAOD::Muon *> (&particle) || (truthParticle != nullptr && MC::isMuon(truthParticle)))
58 {
59 ANA_CHECK(classifyMuon(particle, classification));
60 }
61 else
62 {
63 ANA_MSG_ERROR("Only electrons and muons are supported.");
64 return StatusCode::FAILURE;
65 }
66
67 return StatusCode::SUCCESS;
68}
#define ANA_MSG_ERROR(xmsg,...)
Macro printing error messages.
#define ANA_CHECK(EXP)
check whether the given expression was successful
StatusCode classifyElectron(const xAOD::IParticle &electron, Truth::Type &classification) const
electron classification helper
StatusCode classifyMuon(const xAOD::IParticle &muon, Truth::Type &classification) const
muon classification helper
void splitPromptPhotonConversion(const xAOD::IParticle &electron, Truth::Type &classification) const
split a PromptPhotonConversion electron into material or internal conversion (left unchanged if this ...
bool isElectron(const T &p)
bool isMuon(const T &p)
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
TruthParticle_v1 TruthParticle
Typedef to implementation.
Muon_v1 Muon
Reference the current persistent version:
Definition Muon.h:13
Electron_v1 Electron
Definition of the current "egamma version".
Definition Electron.h:17

◆ classify() [2/2]

StatusCode TruthClassificationTool::classify ( const xAOD::IParticle & particle,
unsigned int & classification ) const
overridevirtual

classify and return unsigned int

Implements ITruthClassificationTool.

Definition at line 35 of file TruthClassificationTool.cxx.

37{
38 Truth::Type type = Truth::Type::Unknown;
39 ANA_CHECK(classify(particle, type));
40 classification = static_cast<int>(type);
41 return StatusCode::SUCCESS;
42}
virtual StatusCode classify(const xAOD::IParticle &particle, unsigned int &classification) const override
classify and return unsigned int
Type
truth classification type enum

◆ classifyElectron()

StatusCode TruthClassificationTool::classifyElectron ( const xAOD::IParticle & electron,
Truth::Type & classification ) const
private

electron classification helper

Definition at line 71 of file TruthClassificationTool.cxx.

73{
74
75
76 // Check if xAOD::TruthParticle or if not if it has the TruthParticleLink
77 const xAOD::TruthParticle *truthParticle = dynamic_cast<const xAOD::TruthParticle *> (&electron);
78 bool isTruthParticle{};
79 if (truthParticle == nullptr)
80 {
81 // need to find the truth particle
82 truthParticle = xAOD::TruthHelpers::getTruthParticle(electron);
83 }
84 else
85 {
86 isTruthParticle = true;
87 }
88
89 if (!m_truthPdgId.isAvailable(electron) && !isTruthParticle)
90 {
91 ANA_MSG_ERROR("Electron does not have the 'truthPdgId' decoration.");
92 return StatusCode::FAILURE;
93 }
94
95 if (!m_firstMotherTruthType.isAvailable(electron)
96 || !m_firstMotherTruthOrigin.isAvailable(electron)
97 || !m_firstMotherPdgId.isAvailable(electron))
98 {
99 ANA_MSG_ERROR("Electron does not have one or more 'firstEgMother' decorations.");
100 return StatusCode::FAILURE;
101 }
102
103 int type = isTruthParticle ? m_classifierParticleType(electron) : m_truthType(electron);
104 int origin = isTruthParticle ? m_classifierParticleOrigin(electron) : m_truthOrigin(electron);
105 int pdgId = isTruthParticle && truthParticle != nullptr ? truthParticle->pdgId() : m_truthPdgId(electron);
106 if (m_useTruthParticleDecorations && !isTruthParticle && truthParticle != nullptr)
107 {
108 type = m_classifierParticleType(*truthParticle);
109 origin = m_classifierParticleOrigin(*truthParticle);
110 }
111
112 int firstMotherType = m_firstMotherTruthType(electron);
113 int firstMotherOrigin = m_firstMotherTruthOrigin(electron);
114 int firstMotherPdgId = m_firstMotherPdgId(electron);
115 // not in the smart slimming list, thus only in few derivations
116 int lastMotherType = m_lastMotherTruthType.isAvailable(electron) ? m_lastMotherTruthType(electron) : -1;
117 int lastMotherOrigin = m_lastMotherTruthOrigin.isAvailable(electron) ? m_lastMotherTruthOrigin(electron) : -1;
118 int lastMotherPdgId = m_lastMotherPdgId.isAvailable(electron) ? m_lastMotherPdgId(electron) : -1;
119 // fallback recorations
120 int fallbackType{-1};
121 if (m_fallbackTruthType.isAvailable(electron) && m_fallbackDR.isAvailable(electron))
122 {
123 fallbackType = m_fallbackDR(electron) < 0.05 ? m_fallbackTruthType(electron) : -1;
124 }
125
126 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
127 // Prompt Photon Conversions
128 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
129
130 // gamma -> e+ e-
133 && firstMotherType == MCTruthPartClassifier::IsoPhoton && firstMotherOrigin == MCTruthPartClassifier::PromptPhot)
134 {
135 classification = Truth::Type::PromptPhotonConversion;
136 return StatusCode::SUCCESS;
137 }
138
139 // H -> gamma gamma, gamma -> e+ e-
141 && firstMotherType == MCTruthPartClassifier::IsoPhoton && firstMotherOrigin == MCTruthPartClassifier::Higgs)
142 {
143 classification = Truth::Type::PromptPhotonConversion;
144 return StatusCode::SUCCESS;
145 }
146
147 // bkg electrons from bkg photons
149 && firstMotherType == MCTruthPartClassifier::UnknownPhoton && firstMotherOrigin == MCTruthPartClassifier::NonDefined)
150 {
151 classification = Truth::Type::PromptPhotonConversion;
152 return StatusCode::SUCCESS;
153 }
154
155 // bkg photon from UndrPhot; (Here there is a generator level photon (not gen electron ) that later converts)
158 && firstMotherType == MCTruthPartClassifier::BkgPhoton && firstMotherOrigin == MCTruthPartClassifier::UndrPhot)
159 {
160 classification = Truth::Type::PromptPhotonConversion;
161 return StatusCode::SUCCESS;
162 }
163
164 // type = 16 and origin = 38 (again, this is a photon)
166 {
167 classification = Truth::Type::PromptPhotonConversion;
168 return StatusCode::SUCCESS;
169 }
170
171 // Is an isolated photon
172 if (type == MCTruthPartClassifier::IsoPhoton && pdgId == 22)
173 {
174 classification = Truth::Type::PromptPhotonConversion;
175 return StatusCode::SUCCESS;
176 }
177
178 // electrons from ElMagProc
179 // when FSR, a better classification can be made with the fall back vars
181 && firstMotherType == MCTruthPartClassifier::UnknownPhoton && firstMotherOrigin == MCTruthPartClassifier::NonDefined)
182 {
183 classification = Truth::Type::PromptPhotonConversion;
184 return StatusCode::SUCCESS;
185 }
187 && firstMotherType == MCTruthPartClassifier::NonIsoPhoton && firstMotherOrigin == MCTruthPartClassifier::FSRPhot)
188 {
189 classification = Truth::Type::PromptPhotonConversion;
190 return StatusCode::SUCCESS;
191 }
192
193 // TODO: Message from Otilia: """
194 // but it's not clear if these electrons are really
195 // "fakes" or they should go in the real category (we don't know from where
196 // this photon is coming...). I would say more truth studies should be done.
197 // """
198 // Hence the warning message...
200 && firstMotherType == MCTruthPartClassifier::Unknown && firstMotherOrigin == MCTruthPartClassifier::ZBoson)
201 {
202 ANA_MSG_WARNING("Electron identified as from a PromptPhotonConversion, "
203 "but this type of electron needs further study!");
204 classification = Truth::Type::PromptPhotonConversion;
205 return StatusCode::SUCCESS;
206 }
207
208 // when always a photon (last mum is a photon, even if the truth PDG is 11 and first mum PDG is 11 ):
209 // very likely these are internal conversions; last_mum_pdgId == 22 important as the cases with last_mum_pdgId == 11 were found to be quite often close to a true electron
212 && std::abs(firstMotherPdgId) == 11 && std::abs(pdgId) == 11)
213 { // electron
214 if(lastMotherType == -1 || (lastMotherType == MCTruthPartClassifier::GenParticle && (lastMotherPdgId == 22 || std::abs(lastMotherPdgId) == 11)))
215 {
216 // lastMotherType == -1 ==> when the last mother info is not stored in the derivations
217 classification = Truth::Type::PromptPhotonConversion;
218 return StatusCode::SUCCESS;
219 }
220 }
221
222
223 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
224 // Is muon reco as electron or ele radiated by muons
225 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
226
228 && (origin == MCTruthPartClassifier::Mu || firstMotherOrigin == MCTruthPartClassifier::Mu))
229 {
230 classification = Truth::Type::ElectronFromMuon;
231 return StatusCode::SUCCESS;
232 }
233
234 if (type == MCTruthPartClassifier::BkgElectron && firstMotherOrigin == MCTruthPartClassifier::Mu)
235 {
236 classification = Truth::Type::ElectronFromMuon;
237 return StatusCode::SUCCESS;
238 }
239
241 classification = Truth::Type::ElectronFromMuon;
242 return StatusCode::SUCCESS;
243 }
244
245
246 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
247 // Tau decays
248 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
249
250 // Non-isolated electron/photon from tau decay
253 {
254 classification = Truth::Type::TauDecay;
255 return StatusCode::SUCCESS;
256 }
257
258 // tau -> tau gamma, gamma -> e+ e-, etc
259 if ((firstMotherType == MCTruthPartClassifier::NonIsoElectron || firstMotherType == MCTruthPartClassifier::NonIsoPhoton)
260 && firstMotherOrigin == MCTruthPartClassifier::TauLep)
261 {
262 classification = Truth::Type::TauDecay;
263 return StatusCode::SUCCESS;
264 }
265
266
267 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
268 // Light hadron sources
269 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
270
272 {
273 classification = Truth::Type::LightFlavorDecay;
274 return StatusCode::SUCCESS;
275 }
276
277 if (firstMotherType == MCTruthPartClassifier::BkgElectron)
278 {
280 && (hasLightHadronOrigin(origin) || hasLightHadronOrigin(firstMotherOrigin)))
281 {
282 classification = Truth::Type::LightFlavorDecay;
283 return StatusCode::SUCCESS;
284 }
285 }
286
288 {
289 if (origin == MCTruthPartClassifier::DalitzDec || firstMotherOrigin == MCTruthPartClassifier::DalitzDec) {
290 classification = Truth::Type::LightFlavorDecay;
291 return StatusCode::SUCCESS;
292 }
293 if (hasLightHadronOrigin(origin) || hasLightHadronOrigin(firstMotherOrigin)) {
294 classification = Truth::Type::LightFlavorDecay;
295 return StatusCode::SUCCESS;
296 }
297 }
298
300 && (hasLightHadronOrigin(origin) || hasLightHadronOrigin(firstMotherOrigin)))
301 {
302 classification = Truth::Type::LightFlavorDecay;
303 return StatusCode::SUCCESS;
304 }
305
306
307 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
308 // From B hadron
309 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
310
311 if (hasBHadronOrigin(origin) || hasBHadronOrigin(firstMotherOrigin))
312 {
313 classification = Truth::Type::BHadronDecay;
314 return StatusCode::SUCCESS;
315 }
316
317 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
318 // From C hadron
319 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
320
321 if (type != MCTruthPartClassifier::IsoElectron && (hasCHadronOrigin(origin) || hasCHadronOrigin(firstMotherOrigin)))
322 {
323 classification = Truth::Type::CHadronDecay;
324 return StatusCode::SUCCESS;
325 }
326
327
328 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
329 // Prompt / Isolated electrons
330 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
331
332 if (isPromptElectron(electron, isTruthParticle, truthParticle))
333 {
334 if (m_separateChargeFlipElectrons && isChargeFlipElectron(electron, isTruthParticle, truthParticle))
335 {
336 classification = Truth::Type::ChargeFlipIsoElectron;
337 return StatusCode::SUCCESS;
338 }
339
340 classification = Truth::Type::IsoElectron;
341 return StatusCode::SUCCESS;
342 }
343
344
345 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
346 // Unknown & known Unknown
347 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
348
349 // TODO: See if we want this or not. Now we check if this is something we are
350 // able to classify or not. Note that this might be a bit dangerous because
351 // the reasons for not having origin and status codes might be complex. The
352 // main idea is to weed out things we don't have a hope of classifying due to
353 // missing or unknown information.
354 static const SG::ConstAccessor<int> statusAcc("status");
355 bool stable = (truthParticle != nullptr && statusAcc.isAvailable(*truthParticle)) ? MC::isStable(truthParticle) : false;
356
357
358 if (origin == MCTruthPartClassifier::NonDefined && firstMotherOrigin == MCTruthPartClassifier::NonDefined)
359 {
360 if (!stable)
361 {
363 {
364 classification = Truth::Type::KnownUnknown;
365 return StatusCode::SUCCESS;
366 }
367 } else {
368 if ((type == MCTruthPartClassifier::Unknown && firstMotherType == MCTruthPartClassifier::Unknown)
370 {
371 classification = Truth::Type::KnownUnknown;
372 return StatusCode::SUCCESS;
373 }
374
376 {
377 classification = Truth::Type::KnownUnknown;
378 return StatusCode::SUCCESS;
379 }
380 }
381 }
382
383 // non-iso photons with no info available to classify
384 if (type == MCTruthPartClassifier::NonIsoPhoton && origin == MCTruthPartClassifier::FSRPhot && pdgId == 22
385 && firstMotherType == 0 && firstMotherOrigin == 0 && firstMotherPdgId == 0)
386 {
387 if (lastMotherType == -1 || (lastMotherType == 0 && lastMotherOrigin == 0 && lastMotherPdgId == 0))
388 { // last_firstMotherType == -1 ==> when the last_mum info is not stored in the derivations
389 classification = Truth::Type::KnownUnknown;
390 return StatusCode::SUCCESS;
391 }
392 }
393
394 ANA_MSG_WARNING("Electron type unknown: type = " << type << ", origin = " << origin);
395
396 // debug printout
397 if (truthParticle != nullptr)
398 {
399 const xAOD::TruthParticle *parent = truthParticle;
400 ATH_MSG_DEBUG("Unknown particle decay chain (approximate):");
401 std::string out = "\t";
402 while (parent != nullptr)
403 {
404 out.append(std::to_string(parent->pdgId()));
405 parent = parent->parent(0); //AV: Note the ambiguity: only the first particle is considered.
406 if (parent) out.append(" -> ");
407 }
408 ATH_MSG_DEBUG(out);
409 }
410
411 classification = Truth::Type::Unknown;
412 return StatusCode::SUCCESS;
413}
#define ATH_MSG_DEBUG(x,...)
#define ANA_MSG_WARNING(xmsg,...)
Macro printing warning messages.
const SG::ConstAccessor< int > m_truthPdgId
const SG::ConstAccessor< int > m_lastMotherTruthOrigin
const SG::ConstAccessor< int > m_truthType
const SG::ConstAccessor< float > m_fallbackDR
const SG::ConstAccessor< int > m_firstMotherTruthType
bool hasCHadronOrigin(int origin) const
a helper to check if the origin is a c-hadron
const SG::ConstAccessor< int > m_lastMotherPdgId
const SG::ConstAccessor< unsigned int > m_classifierParticleType
const SG::ConstAccessor< int > m_fallbackTruthType
const SG::ConstAccessor< int > m_firstMotherPdgId
bool isChargeFlipElectron(const xAOD::IParticle &electron, bool isTruthParticle, const xAOD::TruthParticle *truthParticle) const
a helper to check if an electron has an incorrectly reconstructed charge
bool hasBHadronOrigin(int origin) const
a helper to check if the origin is a b-hadron
bool isPromptElectron(const xAOD::IParticle &electron, bool isTruthParticle, const xAOD::TruthParticle *truthParticle) const
a helper to check if an electron is prompt
const SG::ConstAccessor< int > m_firstMotherTruthOrigin
const SG::ConstAccessor< int > m_truthOrigin
bool hasLightHadronOrigin(int origin) const
a helper to check if the origin is a light hadron
const SG::ConstAccessor< unsigned int > m_classifierParticleOrigin
const SG::ConstAccessor< int > m_lastMotherTruthType
XAOD_AUXDATA_DEPRECATED bool isAvailable(const std::string &name, const std::string &clsname="") const
Check if a user property is available for reading or not.
int pdgId() const
PDG ID code.
@ stable
The particle is physical: stable or decayed (MC::isPhysical), not an intermediate or documentation en...
@ ElMagProc
Electromagnetic or nuclear material process: bremsstrahlung/pair production in the detector,...
@ UndrPhot
"Underlying" photon: radiated from a quark or gluon in the parton shower/underlying event
@ ZBoson
Z boson (or Z/gamma*) decay (including Sherpa Z records and Z+gamma).
@ PromptPhot
Prompt (direct) photon of the hard process, e.g. Pythia8 gamma+jet.
@ Higgs
Higgs boson decay (SM Higgs, PDG 25).
@ PhotonConv
Photon conversion (gamma -> e+ e-, or gamma -> mu+ mu- for muons).
@ TauLep
Decay (or radiation) of a tau lepton that is not itself prompt.
@ FSRPhot
Final-state radiation photon, e.g. from the leptons of W/Z/H decays or from Photos.
@ Mu
Decay (or radiation) of a muon.
@ NonDefined
Origin could not be determined (no production vertex, no ancestor, or particle not classified).
@ DalitzDec
Dalitz decay of a pi0 (pi0 -> gamma e+ e-, or pi0 -> e+ e- e+ e-).
@ Unknown
Not classified: not a lepton, photon, neutrino or hadron (e.g. a quark, a gluon, a boson),...
@ IsoPhoton
Isolated (prompt) photon: from W/Z/H/BSM decay, a hard-process prompt photon, or a single-photon gun.
@ UnknownMuon
Muon with undefined origin.
@ NonIsoPhoton
Non-isolated photon: initial/final-state radiation, or from tau, muon or right-handed neutrino/W_R de...
@ BkgPhoton
Background photon: bremsstrahlung, pi0 decay, hadron decay, nuclear reaction, underlying-event photon...
@ NonIsoMuon
Non-isolated muon from J/psi, B/D hadron, tau or quark weak decay.
@ BkgMuon
Background muon: pion/kaon decay in flight and other remaining cases.
@ IsoElectron
Isolated (prompt) electron, e.g. from W/Z/H/top/BSM decay, or a single-electron particle gun.
@ IsoMuon
Isolated (prompt) muon.
@ NonIsoElectron
Non-isolated electron from J/psi, B/D hadron, tau, muon or quark weak decay.
@ GenParticle
Generator-level intermediate particle (decayed, or otherwise not a final-state candidate) that is not...
@ UnknownPhoton
Photon with undefined origin.
@ UnknownElectron
Electron with undefined origin (no production vertex, or origin could not be traced).
@ Hadron
Any hadron (neither the beam nor a nuclear fragment); the origin is not studied further.
@ BkgElectron
Background electron: photon conversion, Dalitz decay, material interaction, light-hadron decay,...
bool isStable(const T &p)
Identify if the particle is stable, i.e. has not decayed.
const xAOD::TruthParticle * getTruthParticle(const xAOD::IParticle &p)
Return the truthParticle associated to the given IParticle (if any).

◆ classifyMuon()

StatusCode TruthClassificationTool::classifyMuon ( const xAOD::IParticle & muon,
Truth::Type & classification ) const
private

muon classification helper

Definition at line 416 of file TruthClassificationTool.cxx.

418{
419
420
421 // Check if xAOD::TruthParticle or if not if it has the TruthParticleLink
422 const xAOD::TruthParticle *truthParticle
423 = dynamic_cast<const xAOD::TruthParticle *> (&muon);
424 bool isTruthParticle{};
425 if (truthParticle == nullptr)
426 {
427 // need to find the truth particle
428 truthParticle = xAOD::TruthHelpers::getTruthParticle(muon);
429 }
430 else
431 {
432 isTruthParticle = true;
433 }
434
435 int type = isTruthParticle ? m_classifierParticleType(muon) : m_truthType(muon);
436 int origin = isTruthParticle ? m_classifierParticleOrigin(muon) : m_truthOrigin(muon);
437 if (m_useTruthParticleDecorations && !isTruthParticle && truthParticle != nullptr)
438 {
439 type = m_classifierParticleType(*truthParticle);
440 origin = m_classifierParticleOrigin(*truthParticle);
441 }
442
443 // fallback recorations
444 int fallbackType{-1};
445 if (m_fallbackTruthType.isAvailable(muon) && m_fallbackDR.isAvailable(muon))
446 {
447 fallbackType = m_fallbackDR(muon) < 0.05 ? m_fallbackTruthType(muon) : -1;
448 }
449
450 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
451 // muons from taus
452 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
453
455 {
456 classification = Truth::Type::TauDecay;
457 return StatusCode::SUCCESS;
458 }
459
460
461 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
462 // Photon conversions (gamma -> mu+ mu-)
463 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
464
465 // Muon analogue of the electron PromptPhotonConversion rules. Without it these muons
466 // (BkgMuon, PhotonConv) matched no rule and ended up as Unknown, while the
467 // MCTruthClassifier-based isPrompt flag counts them as prompt.
469 {
470 classification = Truth::Type::PromptPhotonConversion;
471 return StatusCode::SUCCESS;
472 }
473
474
475 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
476 // Light hadron sources
477 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
478
480 {
481 classification = Truth::Type::LightFlavorDecay;
482 return StatusCode::SUCCESS;
483 }
484
485 if (type == MCTruthPartClassifier::Hadron || fallbackType == MCTruthPartClassifier::Hadron )
486 {
487 classification = Truth::Type::LightFlavorDecay;
488 return StatusCode::SUCCESS;
489 }
490
491
492 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
493 // From B hadron
494 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
495
496 if (hasBHadronOrigin(origin))
497 {
498 classification = Truth::Type::BHadronDecay;
499 return StatusCode::SUCCESS;
500 }
501
502 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
503 // From C hadron
504 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
505
507 {
508 classification = Truth::Type::CHadronDecay;
509 return StatusCode::SUCCESS;
510 }
511
512
513 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
514 // prompt muons
515 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
516 // Check if the type of muon is IsoMuon(6) and whether the origin
517 // of the muon is from a prompt source
518 static const std::set<int> promptOrigin({
519 MCTruthPartClassifier::SingleMuon, // Single muon (origin = 2) from muon twiki
527 MCTruthPartClassifier::CCbarMeson, // PromptQuarkoniumDecay
532 });
533 if (type == MCTruthPartClassifier::IsoMuon && isInSet(origin, promptOrigin))
534 {
535 //separate charge-flip muons
536 if (m_separateChargeFlipMuons && isChargeFlipMuon(muon, isTruthParticle, truthParticle))
537 {
538 classification = Truth::Type::ChargeFlipMuon;
539 return StatusCode::SUCCESS;
540 }
541 classification = Truth::Type::PromptMuon;
542 return StatusCode::SUCCESS;
543 }
544
545
546 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
547 // Known Unknown
548 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
549
551 {
552 classification = Truth::Type::KnownUnknown;
553 return StatusCode::SUCCESS;
554 }
555
556 static const SG::ConstAccessor<int> statusAcc("status");
557 bool stable = (truthParticle != nullptr && statusAcc.isAvailable(*truthParticle)) ? MC::isStable(truthParticle) : false;
558
559 if (!stable) {
561 { // Data
562 classification = Truth::Type::KnownUnknown;
563 return StatusCode::SUCCESS;
564 }
565 if (type == -99999 && origin == -99999)
566 { // MC - no status = 1 truth particle associated with the primary track
567 classification = Truth::Type::KnownUnknown;
568 return StatusCode::SUCCESS;
569 }
570 }
571
572 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
573 // NonMuonlike
574 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
575 // Check if the type of muon is related to electrons, ie IsoElectron (2) or NonIsoElectron (3) or BkgElectron (4)
577 {
578 classification = Truth::Type::NonMuonlike;
579 return StatusCode::SUCCESS;
580 }
581
582 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
583 // TauLike, BHadLike, CHadLike
584 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
585 // Check if the matched parent of truth muon fall into these 3 xxxLike
586 // Only truth muon with one matched parent is considered
587 // If parent is tau, the muons is TauLike
588 // If parent is bhadron/b quark, the muons is BHadLike
589 // If parent is chadron/c quark, the muons is CHadLike
591 if( truthParticle != nullptr && truthParticle->nParents() == 1 && truthParticle->parent(0) != nullptr){
592 const xAOD::TruthParticle *parent = truthParticle->parent(0);
593 int parent_pdgid = parent->pdgId();
594 if(parent->isTau()){
595 classification = Truth::Type::TauDecayLike;
596 ATH_MSG_WARNING("Muon type taudecaylike: type = " << type << ", origin = " << origin << ", parent = " << parent_pdgid) ;
597 return StatusCode::SUCCESS;
598 }
599 if(parent->isBottomHadron() || parent->hasBottom()){
600 classification = Truth::Type::BHadronDecayLike;
601 ATH_MSG_WARNING("Muon type bhadrondecaylike: type = " << type << ", origin = " << origin << ", parent = " << parent_pdgid) ;
602 return StatusCode::SUCCESS;
603 }
604 if(parent->isCharmHadron() || parent->hasCharm()){
605 if( (parent_pdgid / 1000) % 10 != 0 || (parent_pdgid / 100) % 10 != 4 || (parent_pdgid / 10) % 10 != 4){ // to exclude ccbarmeson
606 classification = Truth::Type::CHadronDecayLike;
607 ATH_MSG_WARNING("Muon type chadrondecaylike: type = " << type << ", origin = " << origin << ", parent = " << parent_pdgid) ;
608 return StatusCode::SUCCESS;
609 }
610 }
611 }
612 }
613
614 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
615 // Unknown
616 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
617 classification = Truth::Type::Unknown;
618 ATH_MSG_WARNING("Muon type unknown: type = " << type << ", origin = " << origin) ;
619
620 return StatusCode::SUCCESS;
622}
#define ATH_MSG_WARNING(x,...)
if(pathvar)
bool isChargeFlipMuon(const xAOD::IParticle &muon, bool isTruthParticle, const xAOD::TruthParticle *truthParticle) const
a helper to check if a muon has an incorrectly reconstructed charge
const TruthParticle_v1 * parent(size_t i) const
Retrieve the i-th mother (TruthParticle) of this TruthParticle.
size_t nParents() const
Number of parents of this particle.
@ SUSY
Decay of a SUSY particle.
@ JPsi
Decay of a J/psi.
@ BBbarMeson
Decay of a hidden-bottom meson.
@ DiBoson
Two-boson (WW, WZ, ZZ) production recorded without explicit bosons: four leptons/neutrinos in the har...
@ HiggsMSSM
Decay of an extra (MSSM/2HDM) Higgs boson: H (35), A (36) or H+ (37).
@ WBoson
W boson decay (including Sherpa W records and W+gamma).
@ CCbarMeson
Decay of a hidden-charm meson other than J/psi.
@ top
Decay of a top quark (including through W).
@ HeavyBoson
Decay of a heavy gauge boson Z', Z'', W'+ (PDG 32, 33, 34), or a KK graviton (5100039) in the photon ...
@ SingleMuon
Single-muon particle gun.
@ MultiBoson
Three or more bosons (VVV, 4-top with leptonic W decays): six or eight leptons/neutrinos in the hard-...

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T, V, H > & hndl,
const SG::VarHandleKeyType &  )
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( Gaudi::Property< T, V, H > & t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ detStore()

const ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

◆ evtStore()

ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase & ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ getKey()

SG::sgkey_t asg::AsgTool::getKey ( const void * ptr) const
inherited

Get the (hashed) key of an object that is in the event store.

This is a bit of a special one. StoreGateSvc and xAOD::Event both provide ways for getting the SG::sgkey_t key for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.

In order to allow tools to efficiently perform this operation, they can use this helper function.

See also
asg::AsgTool::getName
Parameters
ptrThe bare pointer to the object that the event store should know about
Returns
The hashed key of the object in the store. If not found, an invalid (zero) key.

Definition at line 119 of file AsgTool.cxx.

119 {
120
121#ifdef XAOD_STANDALONE
122 // In case we use @c xAOD::Event, we have a direct function call
123 // for this.
124 return evtStore()->event()->getKey( ptr );
125#else
126 const SG::DataProxy* proxy = evtStore()->proxy( ptr );
127 return ( proxy == nullptr ? 0 : proxy->sgkey() );
128#endif // XAOD_STANDALONE
129 }
ServiceHandle< StoreGateSvc > & evtStore()

◆ getName()

const std::string & asg::AsgTool::getName ( const void * ptr) const
inherited

Get the name of an object that is / should be in the event store.

This is a bit of a special one. StoreGateSvc and xAOD::Event both provide ways for getting the std::string name for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.

In order to allow tools to efficiently perform this operation, they can use this helper function.

See also
asg::AsgTool::getKey
Parameters
ptrThe bare pointer to the object that the event store should know about
Returns
The string name of the object in the store. If not found, an empty string.

Definition at line 106 of file AsgTool.cxx.

106 {
107
108#ifdef XAOD_STANDALONE
109 // In case we use @c xAOD::Event, we have a direct function call
110 // for this.
111 return evtStore()->event()->getName( ptr );
112#else
113 const SG::DataProxy* proxy = evtStore()->proxy( ptr );
114 static const std::string dummy = "";
115 return ( proxy == nullptr ? dummy : proxy->name() );
116#endif // XAOD_STANDALONE
117 }

◆ getProperty()

template<class T>
const T * asg::AsgTool::getProperty ( const std::string & name) const
inherited

Get one of the tool's properties.

◆ hasBHadronOrigin()

bool TruthClassificationTool::hasBHadronOrigin ( int origin) const
private

a helper to check if the origin is a b-hadron

Definition at line 800 of file TruthClassificationTool.cxx.

801{
802 static const std::set<int> b_hadrons({
806 });
807 return b_hadrons.contains(origin);
808}
@ BottomMeson
Decay of an open-bottom meson.
@ BottomBaryon
Decay of a bottom baryon.

◆ hasCHadronOrigin()

bool TruthClassificationTool::hasCHadronOrigin ( int origin) const
private

a helper to check if the origin is a c-hadron

Definition at line 811 of file TruthClassificationTool.cxx.

811 {
812 static const std::set<int> c_hadrons({
817 });
818 return c_hadrons.contains(origin);
819}
@ CharmedBaryon
Decay of a charmed baryon.
@ CharmedMeson
Decay of an open-charm meson.

◆ hasLightHadronOrigin()

bool TruthClassificationTool::hasLightHadronOrigin ( int origin) const
private

a helper to check if the origin is a light hadron

Definition at line 822 of file TruthClassificationTool.cxx.

822 {
823 static const std::set<int> light_source({
831 });
832 return light_source.contains(origin);
833}
@ LightBaryon
Decay of a light (u, d only) baryon.
@ StrangeMeson
Decay of a meson containing s quark (e.g. kaon).
@ StrangeBaryon
Decay of a strange baryon.
@ LightMeson
Decay of a light (u, d only) meson.
@ KaonDecay
Muon from K -> mu nu in flight.
@ PiZero
Photon from a pi0 decay.
@ PionDecay
Muon from pi -> mu nu in flight.

◆ initialize()

virtual StatusCode asg::AsgTool::initialize ( void )
inlinevirtualinherited

Dummy implementation of the initialisation function.

It's here to allow the dual-use tools to skip defining an initialisation function. Since many are doing so...

Reimplemented in asg::DataHandleTestTool, asg::EventStoreTestTool, asg::UnitTestTool1, asg::UnitTestTool1A, asg::UnitTestTool2, asg::UnitTestTool3, AsgDeadHVCellRemovalTool, AsgElectronChargeIDSelectorTool, AsgElectronIsEMSelector, AsgElectronLikelihoodTool, AsgElectronSelectorTool, AsgForwardElectronCalibrationTool, AsgForwardElectronIsEMSelector, AsgForwardElectronLikelihoodTool, AsgForwardElectronSelectorTool, AsgHelloTool, AsgPhotonIsEMSelector, AthAsgExUnittestTool, AthONNX::JSSMLTool, AthOnnx::OnnxRuntimeInferenceTool, AthOnnx::OnnxRuntimeSessionToolCPU, AthOnnx::OnnxRuntimeSessionToolCUDA, BaseFakeBkgTool, BDTVertexWeightCalculator, BJetCorrectionTool, BJT::qgTagger, BJT::ScaleFactors, BookkeeperDumperTool, BookkeeperTool, BoostedJetTaggerTool, BTaggingEfficiencyTool, BTaggingEigenVectorRecompositionTool, BTaggingLargeREfficiencyJsonTool, BTaggingLargeRSelectionJsonTool, BTaggingSelectionTool, BTaggingTruthTaggingTool, CaloClusterConstituentsOrigin, CenterOfMassShapesTool, ChargedHadronSubtractionTool, ClusterAtEMScaleTool, ClusterAtMLScaleTool, ClusterMatching::CaloClusterMatchingTool, ConstitTimeCutTool, ConstituentSubtractorTool, CopyTruthJetParticles, CopyTruthParticles, CorrectPFOTool, CP::ApplyE2YFakeRate, CP::ApplyFakeFactor, CP::AsgFlagSelectionTool, CP::AsgMaskSelectionTool, CP::AsgMassSelectionTool, CP::AsgNumDecorationSelectionTool< T >, CP::AsgNumDecorationSelectionTool< int >, CP::AsgNumDecorationSelectionTool< uint8_t >, CP::AsgPtEtaSelectionTool, CP::AsymptMatrixTool, CP::BaseFakeBkgTool, CP::BaseLinearFakeBkgTool, CP::CalcPartonHistory, CP::EgammaIsGoodOQSelectionTool, CP::ElectronLRTOverlapRemovalTool, CP::FFJetSmearingTool, CP::FJvtEfficiencyTool, CP::FJvtSelectionTool, CP::IsolationCloseByCorrectionTool, CP::IsolationCorrectionTool, CP::IsolationHelper, CP::IsolationLowPtPLVTool, CP::IsolationSelectionTool, CP::JetTileCorrectionTool, CP::JvtEfficiencyTool, CP::JvtEfficiencyToolBase, CP::JvtSelectionTool, CP::JvtSelectionToolBase, CP::LhoodMM_tools, CP::MuonLRTOverlapRemovalTool, CP::MuonSelectionTool, CP::MVATrackVertexAssociationTool, CP::NNJvtEfficiencyTool, CP::NNJvtSelectionTool, CP::PhotonPointingTool, CP::PhotonVertexSelectionTool, CP::PileupReweightingTool, CP::TrackVertexAssociationTool, D3PD::D3PDMCTruthClassifier, Diagram, DiTauMassTools::MissingMassTool, dRMatchingTool, ECUtils::EventCleaningTool, EfficiencyResponseHistos, EGammaAmbiguityTool, egammaMVACalibTool, egammaTransformerCalibTool, EL::UnitTestTool, ElectronPhotonVariableCorrectionBase, ElectronPhotonVariableCorrectionTool, ElectronPhotonVariableNFCorrectionTool, EnergyCorrelatorGeneralizedRatiosTool, EnergyCorrelatorGeneralizedTool, EnergyCorrelatorRatiosTool, EnergyCorrelatorTool, EnhancedBiasWeighter, EtaJESCalibStep, EventDensityTool, EventShapeCopier, ExtendTrackToLayerTool, FlavorTagDiscriminants::DL2Tool, FlavorTagDiscriminants::TrackClassifier, FlavorTagDiscriminants::VRJetOverlapDecoratorTool, FlavorTagInference::GNNTool, FlavorTagInference::MultifoldGNNTool, FSR::FsrPhotonTool, ftag::ev::FTagEigenRecompositionTool, ftag::FTagScaleFactorTool, FtagLargeRJetTruthLabelTool, Generic4VecCorrectionStep, GoodRunsListSelectionTool, GSCCalibStep, HI::HIEventSelectionTool, HI::HIEventSelectionToolRun3, HI::HIPileupTool, HI::HIVertexSelectionTool, HIClusterSubtraction, HIEfficiencyResponseHistos, HIEventShapeFillerTool, HIEventShapeJetIteration, HIEventShapeMapTool, HIEventShapeSummaryTool, HiggsTruthCategoryTool, HIJetClusterIndexAssociationTool, HIJetClusterSubtractorTool, HIJetConstituentModifierTool, HIJetConstituentSubtractionTool, HIJetDRAssociationTool, HIJetMaxOverMeanTool, HIJetSignificanceTool, HIJetUEMonitoring, HistoDefinitionTool, HistoGroupBase, HistosForJetSelection, HIUEModulatorTool, IDTPM2::GenericTrackSelector, IDTPM2::ParticleSelector, IDTPM2::TrackSelector, IDTPM2::TruthTrackSelector, IDTPM::DeltaRMatchingToolBase< T, R >, IDTPM::DeltaRMatchingToolBase< xAOD::TrackParticle >, IDTPM::DeltaRMatchingToolBase< xAOD::TrackParticle, xAOD::TruthParticle >, IDTPM::DeltaRMatchingToolBase< xAOD::TruthParticle, xAOD::TrackParticle >, IDTPM::EFTrackMatchingTool, IDTPM::JsonPlotsDefReadTool, IDTPM::OfflineTrackQualitySelectionTool, IDTPM::RoiSelectionTool, IDTPM::StableDeltaRMatchingTool< T, R >, IDTPM::StableDeltaRMatchingTool< xAOD::TrackParticle, xAOD::TrackParticle >, IDTPM::StableDeltaRMatchingTool< xAOD::TrackParticle, xAOD::TruthParticle >, IDTPM::StableDeltaRMatchingTool< xAOD::TruthParticle, xAOD::TrackParticle >, IDTPM::TrackAnalysisInfoWriteTool, IDTPM::TrackObjectSelectionTool, IDTPM::TrackQualitySelectionTool, IDTPM::TrackRoiSelectionTool, IDTPM::TrackTruthMatchingTool, IDTPM::TruthQualitySelectionTool, IDTPM::TruthTrackMatchingTool, IDTPM::VertexQualitySelectionTool, IDTPM::VertexRoiSelectionTool, IHIEventShapeMapTool, InDet::InclusiveTrackFilterTool, InDet::InDetHardScatterSelectionTool, InDet::InDetSecVtxTrackSelectionTool, InDet::InDetTrackBiasingTool, InDet::InDetTrackSelectionTool, InDet::InDetTrackSmearingTool, InDet::InDetTrackSystematicsTool, InDet::InDetTrackTruthFilterTool, InDet::InDetTrackTruthOriginTool, InDet::InDetUsedInFitTrackDecoratorTool, InDet::JetTrackFilterTool, InDet::TrackFilterTool, InDetPVNNSelection::PVNNTool, InDetSecVtxTruthMatchTool, InDetVertexTruthMatchTool, InSituCalibStep, InSituJMSCalibStep, JetAttributeHisto, JetAttributeRatioSelector, JetAttributeSelector, JetBadChanCorrTool, JetBalancePFlowJvtTool, JetCalibrationTool, JetCalibTool, JetCaloCellQualityTool, JetCaloEnergies, JetCaloQualityTool, JetCaloQualityToolFE, JetCleaningTool, JetClusterer, JetClustererByVertex, JetClusterMomentsTool, JetConstitFourMomTool, JetConstituentFrac, JetConstituentModSequence, JetContainerHistoFiller, JetCopier, JetDNNCalibStep, JetDRTrackAssocTool, JetECPSFractionTool, JetEMScaleMomTool, JetEventSelector, JetForwardJvtTool, JetForwardJvtToolBDT, JetForwardPFlowJvtTool, JetFromPseudojet, JetGrooming::JetGroomer, JetGrooming::JetTrimming, JetGrooming::RecSoftDrop, JetGrooming::SoftDrop, JetGroomMRatio, JetHelper::HistoInput1D, JetHelper::HistoInput2D, JetHelper::HistoInput3D, JetHelper::VarTool, JetHistoBase, JetIRCSafeLabelTool, JetIsolationTool, JetLArHVTool, JetNumConstitTool, JetOriginCorrectionTool, JetParticleAssociation, JetPileupLabelingTool, JetPileupTag::JetVertexNNTagger, JetPseudojetRetriever, JetPtAssociationTool, JetQGTaggerVariableTool, JetQuarkChargeLabelingTool, JetResponseTool, JetSelectorAttribute, JetSelectorAttributeRunII, JetSubStructureMomentToolsBase, JetTrackMomentsTool, JetTrackSumMomentsTool, JetTruthLabelingTool, JetTruthParticleSelectorTool, JetUncertaintiesTool, JetUsedInFitTrackDecoratorTool, JetVertexFractionTool, JetVertexTaggerTool, JetVoronoiDiagramHelpers::Diagram, JetVoronoiMomentsTool, JetWidthTool, JMSCalibStep, JSSTaggerBase, JSSTaggerUtils, JSSWTopTaggerANN, JSSWTopTaggerDNN, KTSplittingScaleTool, LeadingJetsRelations, LundNetTagger, LVL1::L1CaloCells2TriggerTowers, LVL1::L1CaloFcal23Cells2RxMappingTool, LVL1::L1CaloLArTowerEnergy, LVL1::L1CaloMonitoringCaloTool, LVL1::L1CaloOfflineTriggerTowerTools, LVL1::L1CaloTTIdTools, LVL1::L1CaloxAODOfflineTriggerTowerTools, LVL1::TrigT1CaloMonErrorTool, LVL1::TrigT1CaloMonErrorToolV1, LVL1BS::PpmByteStreamReadV1V2Tool, LVL1BS::TrigT1CaloDataAccessV2, MBTSTimeFilterTool, MCTruthClassifier, met::METAssociationTool, met::METAssociator, met::METBuilderTool, met::METCaloRegionsTool, met::METEgammaAssociator, met::METElectronAssociator, met::METJetAssocTool, met::METJetTool, met::METMuonAssociator, met::METPhotonAssociator, met::METRecoTool, met::METRefinerTool, met::METRegionsTool, met::METSoftAssociator, met::METSoftTermsTool, met::METTauAssociator, met::METTrackFilterTool, met::METTruthAssociator, met::METTruthTool, MissingCellListTool, MvaTESEvaluator, MvaTESVariableDecorator, NSubjettinessRatiosTool, NSubjettinessTool, PanTau::PanTauProcessor, PanTau::Tool_DecayModeDeterminator, PanTau::Tool_DetailsArranger, PanTau::Tool_FeatureExtractor, PanTau::Tool_InformationStore, PanTau::Tool_InputConverter, PanTau::Tool_ModeDiscriminator, PanTau::Tool_TauConstituentGetter, PanTau::Tool_TauConstituentSelector, ParticleJetDeltaRLabelTool, ParticleJetGhostLabelTool, ParticleScaleFactorTool, PDFWeight, PhotonIDBDT::AsgPhotonBDTSelector, PhotonIDBDT::PhotonBDTCalculator, PhotonIDBDT::PhotonSingleBDTCalculator, Pileup1DResidualCalibStep, PileupCalibStep, PMGTools::PMGCrossSectionTool, PMGTools::PMGDecayProductsSelectionTool, PMGTools::PMGHFProductionFractionTool, PMGTools::PMGSherpa22VJetsWeightTool, PMGTools::PMGSherpaVjetsSysTool, PMGTools::PMGTruthWeightTool, PuppiWeightTool, QwTool, Ringer::AsgRingerSelectorTool, SimpleMuonTriggerScaleFactors, SmearingCalibStep, SmoothedTopTagger, SmoothedWZTagger, SoftKillerWeightTool, ST::SUSYObjDef_xAOD, TauAODMuonRemovalTool, TauCalibrateLC, TauCombinedTES, TauDecayModeNNClassifier, TauElectronVetoVariables, TauEleOverlapChecker, TauGNNEvaluator, TauJetRNNEvaluator, TauPi0CreateROI, TauPi0ScoreCalculator, TauRecToolBase, tauRecTools::TauTrackRNNClassifier, tauRecTools::TrackRNN, TauShotFinder, TausRUsEvaluator, TauTrackCaloExtrapolator, TauTrackFinder, TauVertexedClusterDecorator, TauVertexFinder, TauVertexVariables, TauWPDecorator, TrackTruthSelectionTool, TrackVertexAssociationTool, Trig::DRScoringTool, Trig::EgammaDRScoringTool, Trig::IParticleRetrievalTool, Trig::JetManagerTool, Trig::MatchFromCompositeTool, Trig::MatchingTool, Trig::R3IParticleRetrievalTool, Trig::R3MatchingTool, Trig::StaticBunchCrossingTool, Trig::TrigConfBunchCrossingTool, Trig::TrigDecisionTool, Trig::TrigDecisionToolLite, Trig::TrigEgammaEmulationBaseHypoTool, Trig::TrigEgammaEmulationChain, Trig::TrigEgammaEmulationFastCaloHypoTool, Trig::TrigEgammaEmulationPrecisionElectronHypoTool, Trig::TrigEgammaEmulationPrecisionPhotonHypoTool, Trig::TrigEgammaEmulationToolMT, Trig::TrigMuonMatching, Trig::TypedScoringTool, Trig::xAODBunchCrossingTool, TrigConf::xAODConfigTool, TrigEgammaMatchingToolMT, TrigFastCalibWithRings, TrigGlobalEfficiencyCorrectionTool, Validator, VoronoiWeightTool, WeightsAgregator, WeightToolBase, xAOD::BPhysBlindingTool, xAOD::BPhysTrackVertexMapTool, xAOD::CaloIsolationTool, xAOD::TrackIsolationTool, xAODMaker::TriggerMenuMetaDataTool, xAODMaker::TruthMetaDataTool, xAODtoHepMCTool, ZDC::LISAnalysisTool, ZDC::RPDAnalysisTool, ZDC::RpdSubtractCentroidTool, ZDC::ZdcAnalysisTool, ZDC::ZdcLEDAnalysisTool, ZDC::ZdcRecTool, ZDC::ZdcTrigValidTool, ZdcByteStreamReadV1V2Tool, ZdcDataAccessV2, ZdcRecChannelToolLucrod, ZdcRecChannelToolV2, and ZMassConstraint::ConstraintFit.

Definition at line 133 of file AsgTool.h.

133{ return StatusCode::SUCCESS; }

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< AlgTool > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ isChargeFlipElectron()

bool TruthClassificationTool::isChargeFlipElectron ( const xAOD::IParticle & electron,
bool isTruthParticle,
const xAOD::TruthParticle * truthParticle ) const
private

a helper to check if an electron has an incorrectly reconstructed charge

Definition at line 721 of file TruthClassificationTool.cxx.

724{
725
726
727 int type = isTruthParticle ? m_classifierParticleType(electron) : m_truthType(electron);
728 int origin = isTruthParticle ? m_classifierParticleOrigin(electron) : m_truthOrigin(electron);
729 int pdgId = isTruthParticle && truthParticle ? truthParticle->pdgId() : m_truthPdgId(electron);
730 if (m_useTruthParticleDecorations && !isTruthParticle && truthParticle != nullptr)
731 {
732 type = m_classifierParticleType(*truthParticle);
733 origin = m_classifierParticleOrigin(*truthParticle);
734 }
735
736 int firstMotherType = m_firstMotherTruthType(electron);
737 int firstMotherOrigin = m_firstMotherTruthOrigin(electron);
738 int firstMotherPdgId = m_firstMotherPdgId(electron);
739
740 // not consider FSR photons from electrons (the photon has no charge)
741 if (origin == MCTruthPartClassifier::FSRPhot && type == MCTruthPartClassifier::NonIsoPhoton && std::abs(pdgId) == 11)
742 {
743 return false;
744 }
746 && firstMotherType == MCTruthPartClassifier::NonIsoPhoton && firstMotherOrigin == MCTruthPartClassifier::FSRPhot
747 && std::abs(pdgId) == 11)
748 {
749 return false;
750 }
751
752 // bkg electrons with no additional info to help us classify them FSR -- not in the charge flip category
754 && firstMotherType == MCTruthPartClassifier::BkgElectron && firstMotherOrigin == MCTruthPartClassifier::PhotonConv
755 && std::abs(pdgId) == 11)
756 {
757 return false;
758 }
759
760 if (isTruthParticle)
761 {
762 if (truthParticle && truthParticle->charge() != 0)
763 {
764 return (firstMotherPdgId * truthParticle->charge()) > 0;
765 }
766 }
767 else
768 {
769 const xAOD::Electron &xAODElectron = *static_cast<const xAOD::Electron *> (&electron);
770 if (xAODElectron.charge() != 0)
771 {
772 return (firstMotherPdgId * xAODElectron.charge()) > 0;
773 }
774 }
775
776 return (firstMotherPdgId * (-pdgId)) > 0;
777}
float charge() const
Obtain the charge of the object.
double charge() const
Physical charge.

◆ isChargeFlipMuon()

bool TruthClassificationTool::isChargeFlipMuon ( const xAOD::IParticle & muon,
bool isTruthParticle,
const xAOD::TruthParticle * truthParticle ) const
private

a helper to check if a muon has an incorrectly reconstructed charge

Definition at line 780 of file TruthClassificationTool.cxx.

783{
784 if (isTruthParticle)
785 {
786 return false;
787 }
788
789 if (truthParticle != nullptr && xAOD::P4Helpers::isInDeltaR(*truthParticle, muon, 0.025))
790 {
791 const xAOD::Muon &xAODMuon = *static_cast<const xAOD::Muon *> (&muon);
792 return (truthParticle->charge() * xAODMuon.charge()) < 0;
793 }
794
795 ANA_MSG_DEBUG("Cannot find associated truth-particle... assuming muon has correct charge");
796 return false;
797}
#define ANA_MSG_DEBUG(xmsg,...)
Macro printing debug messages.
float charge() const
bool isInDeltaR(const xAOD::IParticle &p1, const xAOD::IParticle &p2, double dR, bool useRapidity=true)
Check if 2 xAOD::IParticle are in a cone.

◆ isPromptElectron()

bool TruthClassificationTool::isPromptElectron ( const xAOD::IParticle & electron,
bool isTruthParticle,
const xAOD::TruthParticle * truthParticle ) const
private

a helper to check if an electron is prompt

Definition at line 673 of file TruthClassificationTool.cxx.

676{
677
678
679 int type = isTruthParticle ? m_classifierParticleType(electron) : m_truthType(electron);
680 int origin = isTruthParticle ? m_classifierParticleOrigin(electron) : m_truthOrigin(electron);
681 if (m_useTruthParticleDecorations && !isTruthParticle && truthParticle != nullptr)
682 {
683 type = m_classifierParticleType(*truthParticle);
684 origin = m_classifierParticleOrigin(*truthParticle);
685 }
686
687 // Electron is IsoElectron - return true
689 {
690 return true;
691 }
692
693 int pdgId = isTruthParticle ? truthParticle->pdgId() : m_truthPdgId(electron);
694 int firstMotherType = m_firstMotherTruthType(electron);
695 int firstMotherOrigin = m_firstMotherTruthOrigin(electron);
696
697 // Adding these cases from ElectronEfficiencyHelpers
698 if (firstMotherType == MCTruthPartClassifier::IsoElectron && std::abs(m_firstMotherPdgId(electron)) == 11)
699 {
700 return true;
701 }
702
703 // FSR photons from electrons
704 if (origin == MCTruthPartClassifier::FSRPhot && type == MCTruthPartClassifier::NonIsoPhoton && std::abs(pdgId) == 11)
705 {
706 return true;
707 }
708
710 && firstMotherType == MCTruthPartClassifier::NonIsoPhoton && firstMotherOrigin == MCTruthPartClassifier::FSRPhot
711 && std::abs(pdgId) == 11)
712 {
713 return true;
714 }
715
716 // If we reach here then it is not a prompt electron
717 return false;
718}

◆ msg()

MsgStream & AthCommonMsg< AlgTool >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24 {
25 return this->msgStream();
26 }

◆ msg_level_name()

const std::string & asg::AsgTool::msg_level_name ( ) const
inherited

A deprecated function for getting the message level's name.

Instead of using this, weirdly named function, user code should get the string name of the current minimum message level (in case they really need it...), with:

MSG::name( msg().level() )

This function's name doesn't follow the ATLAS coding rules, and as such will be removed in the not too distant future.

Returns
The string name of the current minimum message level that's printed

Definition at line 101 of file AsgTool.cxx.

101 {
102
103 return MSG::name( msg().level() );
104 }
MsgStream & msg() const
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.
Definition MsgLevel.cxx:19

◆ msgLvl()

bool AthCommonMsg< AlgTool >::msgLvl ( const MSG::Level lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30 {
31 return this->msgLevel(lvl);
32 }

◆ outputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< AlgTool > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ print()

void asg::AsgTool::print ( ) const
virtualinherited

Print the state of the tool.

Implements asg::IAsgTool.

Reimplemented in AsgHelloTool, HI::HIPileupTool, JetFromPseudojet, JetPileupLabelingTool, JetPseudojetRetriever, JetSubStructureMomentToolsBase, JetTruthLabelingTool, and KtDeltaRTool.

Definition at line 131 of file AsgTool.cxx.

131 {
132
133 ATH_MSG_INFO( "AsgTool " << name() << " @ " << this );
134 return;
135 }
#define ATH_MSG_INFO(x,...)

◆ renounce()

std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > AthCommonDataStore< AthCommonMsg< AlgTool > >::renounce ( T & h)
inlineprotectedinherited

Definition at line 368 of file AthCommonDataStore.h.

369 {
370 h.renounce();
372 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 352 of file AthCommonDataStore.h.

352 {
354 }

◆ splitPromptPhotonConversion()

void TruthClassificationTool::splitPromptPhotonConversion ( const xAOD::IParticle & electron,
Truth::Type & classification ) const
private

split a PromptPhotonConversion electron into material or internal conversion (left unchanged if this cannot be decided)

Definition at line 624 of file TruthClassificationTool.cxx.

626{
627 // Only called for electrons already classified as PromptPhotonConversion,
628 // so the 'firstEgMother' decorations are known to be available.
629 const xAOD::TruthParticle *truthParticle = dynamic_cast<const xAOD::TruthParticle *> (&electron);
630 const bool isTruthParticle = truthParticle != nullptr;
631 if (!isTruthParticle)
632 {
633 truthParticle = xAOD::TruthHelpers::getTruthParticle(electron);
634 }
635
636 int type = isTruthParticle ? m_classifierParticleType(electron) : m_truthType(electron);
637 int origin = isTruthParticle ? m_classifierParticleOrigin(electron) : m_truthOrigin(electron);
638 if (m_useTruthParticleDecorations && !isTruthParticle && truthParticle != nullptr)
639 {
640 type = m_classifierParticleType(*truthParticle);
641 origin = m_classifierParticleOrigin(*truthParticle);
642 }
643
644 const int firstMotherType = m_firstMotherTruthType(electron);
645 const int firstMotherOrigin = m_firstMotherTruthOrigin(electron);
646
647 // Internal conversion (gamma* -> e+ e-): the first non-Geant mother is itself
648 // a generator-level electron from a photon conversion, i.e. the pair was
649 // produced by the generator rather than in the detector material.
651 && firstMotherType == MCTruthPartClassifier::BkgElectron && firstMotherOrigin == MCTruthPartClassifier::PhotonConv)
652 {
653 classification = Truth::Type::InternalConversion;
654 return;
655 }
656
657 // Material conversion: a Geant4 electron (from a conversion or another
658 // electromagnetic process in the material) whose first non-Geant mother is
659 // a real generator-level photon.
662 && (firstMotherType == MCTruthPartClassifier::UnknownPhoton || firstMotherType == MCTruthPartClassifier::IsoPhoton
663 || firstMotherType == MCTruthPartClassifier::NonIsoPhoton || firstMotherType == MCTruthPartClassifier::BkgPhoton))
664 {
665 classification = Truth::Type::MaterialConversion;
666 return;
667 }
668
669 // Otherwise (e.g. the reconstructed electron is matched to a photon, or the
670 // mother is not identified) keep the generic PromptPhotonConversion class.
671}

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
overridevirtualinherited

Perform system initialization for an algorithm.

We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.

Reimplemented in asg::AsgMetadataTool, AthCheckedComponent< AthAlgTool >, and AthCheckedComponent<::AthAlgTool >.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::updateVHKA ( Gaudi::Details::PropertyBase & )
inlineinherited

Definition at line 298 of file AthCommonDataStore.h.

298 {
299 for (auto &a : m_vhka) {
301 for (auto k : keys) {
302 k->setOwner(this);
303 }
304 }
305 }
std::vector< SG::VarHandleKeyArray * > m_vhka

Member Data Documentation

◆ m_classifierParticleOrigin

const SG::ConstAccessor<unsigned int> TruthClassificationTool::m_classifierParticleOrigin {"classifierParticleOrigin"}
private

Definition at line 63 of file TruthClassificationTool.h.

63{"classifierParticleOrigin"};

◆ m_classifierParticleType

const SG::ConstAccessor<unsigned int> TruthClassificationTool::m_classifierParticleType {"classifierParticleType"}
private

Definition at line 62 of file TruthClassificationTool.h.

62{"classifierParticleType"};

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default).

Definition at line 381 of file AthCommonDataStore.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default).

Definition at line 378 of file AthCommonDataStore.h.

◆ m_fallbackDR

const SG::ConstAccessor<float> TruthClassificationTool::m_fallbackDR {"TruthClassifierFallback_dR"}
private

Definition at line 75 of file TruthClassificationTool.h.

75{"TruthClassifierFallback_dR"};

◆ m_fallbackTruthClassification

const SG::ConstAccessor<int> TruthClassificationTool::m_fallbackTruthClassification {"TruthClassifierFallback_truthClassification"}
private

Definition at line 74 of file TruthClassificationTool.h.

74{"TruthClassifierFallback_truthClassification"};

◆ m_fallbackTruthOrigin

const SG::ConstAccessor<int> TruthClassificationTool::m_fallbackTruthOrigin {"TruthClassifierFallback_truthOrigin"}
private

Definition at line 73 of file TruthClassificationTool.h.

73{"TruthClassifierFallback_truthOrigin"};

◆ m_fallbackTruthType

const SG::ConstAccessor<int> TruthClassificationTool::m_fallbackTruthType {"TruthClassifierFallback_truthType"}
private

Definition at line 72 of file TruthClassificationTool.h.

72{"TruthClassifierFallback_truthType"};

◆ m_firstMotherPdgId

const SG::ConstAccessor<int> TruthClassificationTool::m_firstMotherPdgId {"firstEgMotherPdgId"}
private

Definition at line 67 of file TruthClassificationTool.h.

67{"firstEgMotherPdgId"};

◆ m_firstMotherTruthClassification

const SG::ConstAccessor<unsigned int> TruthClassificationTool::m_firstMotherTruthClassification {"firstEgMotherTruthClassification"}
private

Definition at line 66 of file TruthClassificationTool.h.

66{"firstEgMotherTruthClassification"};

◆ m_firstMotherTruthOrigin

const SG::ConstAccessor<int> TruthClassificationTool::m_firstMotherTruthOrigin {"firstEgMotherTruthOrigin"}
private

Definition at line 65 of file TruthClassificationTool.h.

65{"firstEgMotherTruthOrigin"};

◆ m_firstMotherTruthType

const SG::ConstAccessor<int> TruthClassificationTool::m_firstMotherTruthType {"firstEgMotherTruthType"}
private

Definition at line 64 of file TruthClassificationTool.h.

64{"firstEgMotherTruthType"};

◆ m_lastMotherPdgId

const SG::ConstAccessor<int> TruthClassificationTool::m_lastMotherPdgId {"lastEgMotherPdgId"}
private

Definition at line 71 of file TruthClassificationTool.h.

71{"lastEgMotherPdgId"};

◆ m_lastMotherTruthClassification

const SG::ConstAccessor<unsigned int> TruthClassificationTool::m_lastMotherTruthClassification {"lastEgMotherTruthClassification"}
private

Definition at line 70 of file TruthClassificationTool.h.

70{"lastEgMotherTruthClassification"};

◆ m_lastMotherTruthOrigin

const SG::ConstAccessor<int> TruthClassificationTool::m_lastMotherTruthOrigin {"lastEgMotherTruthOrigin"}
private

Definition at line 69 of file TruthClassificationTool.h.

69{"lastEgMotherTruthOrigin"};

◆ m_lastMotherTruthType

const SG::ConstAccessor<int> TruthClassificationTool::m_lastMotherTruthType {"lastEgMotherTruthType"}
private

Definition at line 68 of file TruthClassificationTool.h.

68{"lastEgMotherTruthType"};

◆ m_separateChargeFlipElectrons

bool TruthClassificationTool::m_separateChargeFlipElectrons = false
private

separately store charge-flip electrons/muons

Definition at line 48 of file TruthClassificationTool.h.

◆ m_separateChargeFlipMuons

bool TruthClassificationTool::m_separateChargeFlipMuons = false
private

Definition at line 49 of file TruthClassificationTool.h.

◆ m_separateConversionTypes

bool TruthClassificationTool::m_separateConversionTypes = false
private

split electron photon conversions into material and internal conversions

Definition at line 52 of file TruthClassificationTool.h.

◆ m_truthClassification

const SG::ConstAccessor<unsigned int> TruthClassificationTool::m_truthClassification {"truthClassification"}
private

Definition at line 60 of file TruthClassificationTool.h.

60{"truthClassification"};

◆ m_truthOrigin

const SG::ConstAccessor<int> TruthClassificationTool::m_truthOrigin {"truthOrigin"}
private

Definition at line 59 of file TruthClassificationTool.h.

59{"truthOrigin"};

◆ m_truthPdgId

const SG::ConstAccessor<int> TruthClassificationTool::m_truthPdgId {"truthPdgId"}
private

Definition at line 61 of file TruthClassificationTool.h.

61{"truthPdgId"};

◆ m_truthType

const SG::ConstAccessor<int> TruthClassificationTool::m_truthType {"truthType"}
private

Definition at line 58 of file TruthClassificationTool.h.

58{"truthType"};

◆ m_useTruthParticleDecorations

bool TruthClassificationTool::m_useTruthParticleDecorations {false}
private

use truth particle decorations

Definition at line 55 of file TruthClassificationTool.h.

55{false};

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< AlgTool > >::m_varHandleArraysDeclared
privateinherited

Definition at line 387 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
privateinherited

Definition at line 386 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files: