ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkAlgorithms
TrkTruthAlgs
src
TrackParticleTruthAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TRKTRUTHALGS_TRACKPARTICLETRUTHALG_H
6
#define TRKTRUTHALGS_TRACKPARTICLETRUTHALG_H
7
8
9
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
10
#include "
xAODTracking/TrackParticleContainer.h
"
11
#include "
TrkTruthData/TrackTruthCollection.h
"
12
#include "
GeneratorObjects/xAODTruthParticleLink.h
"
13
#include "
StoreGate/ReadHandleKey.h
"
14
#include "
StoreGate/WriteDecorHandleKey.h
"
15
#include "
MCTruthClassifier/IMCTruthClassifier.h
"
16
17
class
TrackParticleTruthAlg
:
public
AthReentrantAlgorithm
{
18
public
:
19
using
AthReentrantAlgorithm::AthReentrantAlgorithm;
20
21
virtual
StatusCode
initialize
()
override
;
22
virtual
StatusCode
execute
(
const
EventContext& ctx)
const override
;
23
24
private
:
25
26
SG::ReadHandleKey<xAOD::TrackParticleContainer>
m_trkKey
{
this
,
"TrackParticleName"
,
"InDetTrackParticles"
,
27
"TrackParticle input name"
};
28
29
SG::WriteDecorHandleKey<xAOD::TrackParticleContainer>
m_particlesLinkKey
30
{
this
,
"ParticleLinkKey"
,
m_trkKey
,
"truthParticleLink"
};
31
SG::WriteDecorHandleKey<xAOD::TrackParticleContainer>
m_particlesTypeKey
32
{
this
,
"ParticleTypeKey"
,
m_trkKey
,
"truthType"
};
33
SG::WriteDecorHandleKey<xAOD::TrackParticleContainer>
m_particlesOriginKey
34
{
this
,
"ParticleOriginKey"
,
m_trkKey
,
"truthOrigin"
};
35
SG::WriteDecorHandleKey<xAOD::TrackParticleContainer>
m_particlesClassificationKey
36
{
this
,
"ParticleClassificationKey"
,
m_trkKey
,
"truthClassification"
};
37
38
SG::ReadHandleKey<xAODTruthParticleLinkVector>
m_truthParticleLinkVecKey
39
{
this
,
"xAODTruthLinkVector"
,
"xAODTruthLinks"
,
40
"link vector to map HepMC onto xAOD truth"
};
41
SG::ReadHandleKey<TrackTruthCollection>
m_truthTracksKey
42
{
this
,
"TrackTruthName"
,
"TrackTruthCollection"
,
43
"Track(Particle)TruthCollection input name"
};
44
45
ToolHandle<IMCTruthClassifier>
m_truthClassifier
{
this
,
"MCTruthClassifier"
,
46
"MCTruthClassifier/MCTruthClassifier"
};
47
};
48
49
#endif
/*TRKTRUTHALGS_TRACKPARTICLETRUTHALG_H*/
AthReentrantAlgorithm.h
TrackParticleContainer.h
IMCTruthClassifier.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
TrackTruthCollection.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition
StoreGate/StoreGate/WriteDecorHandleKey.h:90
TrackParticleTruthAlg
Definition
TrackParticleTruthAlg.h:17
TrackParticleTruthAlg::m_particlesOriginKey
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_particlesOriginKey
Definition
TrackParticleTruthAlg.h:34
TrackParticleTruthAlg::m_particlesTypeKey
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_particlesTypeKey
Definition
TrackParticleTruthAlg.h:32
TrackParticleTruthAlg::m_trkKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trkKey
Definition
TrackParticleTruthAlg.h:26
TrackParticleTruthAlg::initialize
virtual StatusCode initialize() override
Definition
TrackParticleTruthAlg.cxx:15
TrackParticleTruthAlg::m_truthClassifier
ToolHandle< IMCTruthClassifier > m_truthClassifier
Definition
TrackParticleTruthAlg.h:45
TrackParticleTruthAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
TrackParticleTruthAlg.cxx:30
TrackParticleTruthAlg::m_truthTracksKey
SG::ReadHandleKey< TrackTruthCollection > m_truthTracksKey
Definition
TrackParticleTruthAlg.h:42
TrackParticleTruthAlg::m_particlesClassificationKey
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_particlesClassificationKey
Definition
TrackParticleTruthAlg.h:36
TrackParticleTruthAlg::m_particlesLinkKey
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_particlesLinkKey
Decorations for input TrackParticleContainer.
Definition
TrackParticleTruthAlg.h:30
TrackParticleTruthAlg::m_truthParticleLinkVecKey
SG::ReadHandleKey< xAODTruthParticleLinkVector > m_truthParticleLinkVecKey
Definition
TrackParticleTruthAlg.h:39
xAODTruthParticleLink.h
Generated on
for ATLAS Offline Software by
1.17.0