ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
Acts
ActsTruth
src
TrackParticleTruthDecorationAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef ACTSTRK_TRACKPARTICLETRUTHDECORATIONALG_H
6
#define ACTSTRK_TRACKPARTICLETRUTHDECORATIONALG_H 1
7
8
#undef NDEBUG
9
// Base Class
10
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
11
12
// Gaudi includes
13
#include "Gaudi/Property.h"
14
15
// Handle Keys
16
#include "
StoreGate/ReadHandleKey.h
"
17
#include "
StoreGate/WriteDecorHandleKeyArray.h
"
18
19
#include "
TrackTruthMatchingBaseAlg.h
"
20
#include "
ActsEvent/TrackToTruthParticleAssociation.h
"
21
#include "
xAODTracking/TrackParticleContainer.h
"
22
#include "
MCTruthClassifier/IMCTruthClassifier.h
"
23
24
namespace
ActsTrk
25
{
26
class
TrackParticleTruthDecorationAlg
:
public
TrackTruthMatchingBaseAlg
27
{
28
public
:
29
using
TrackTruthMatchingBaseAlg::TrackTruthMatchingBaseAlg;
30
31
virtual
StatusCode
initialize
()
override
;
32
virtual
StatusCode
execute
(
const
EventContext &ctx)
const override
;
33
34
private
:
36
SG::ReadHandleKeyArray<TrackToTruthParticleAssociation>
m_trackToTruth
37
{
this
,
"TrackToTruthAssociationMaps"
,{},
38
"Association maps from tracks to generator particles for all Acts tracks linked from the given track particle."
};
39
40
SG::ReadHandleKey<xAOD::TrackParticleContainer>
m_trkParticleName
41
{
this
,
"TrackParticleContainerName"
,
"InDetTrackParticles"
,
""
};
42
45
SG::ReadHandleKey<xAOD::TruthParticleContainer>
m_derivateTruthKey
{
this
,
"DerivateTruthKey"
,
""
};
46
47
enum
FloatDecorations
{
kMatchingProbability
,
kHitPurity
,
kHitEfficiency
,
kNFloatDecorators
};
48
SG::WriteDecorHandleKeyArray<xAOD::TrackParticleContainer>
m_floatDecor
{
this
,
"FloatDecorators"
, {}};
49
50
enum
IntDecorations
{
kTruthType
,
kTruthOrigin
,
kNIntDecorators
};
51
SG::WriteDecorHandleKeyArray<xAOD::TrackParticleContainer>
m_intDecor
{
this
,
"IntDecorators"
, {}};
52
SG::WriteDecorHandleKey<xAOD::TrackParticleContainer>
m_truthClassDecor
53
{
this
,
"TruthClassification"
,
m_trkParticleName
,
"truthClassification"
};
54
55
ToolHandle<IMCTruthClassifier>
m_truthClassifier
56
{
this
,
"MCTruthClassifier"
,
"MCTruthClassifier/MCTruthClassifier"
};
57
58
SG::WriteDecorHandleKey<xAOD::TrackParticleContainer>
m_linkDecor
59
{
this
,
"LinkDecoration"
,
m_trkParticleName
,
"truthParticleLink"
};
60
61
};
62
63
}
// namespace
64
65
#endif
AthReentrantAlgorithm.h
TrackParticleContainer.h
IMCTruthClassifier.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteDecorHandleKeyArray.h
TrackToTruthParticleAssociation.h
TrackTruthMatchingBaseAlg.h
ActsTrk::TrackParticleTruthDecorationAlg
Definition
TrackParticleTruthDecorationAlg.h:27
ActsTrk::TrackParticleTruthDecorationAlg::m_floatDecor
SG::WriteDecorHandleKeyArray< xAOD::TrackParticleContainer > m_floatDecor
Definition
TrackParticleTruthDecorationAlg.h:48
ActsTrk::TrackParticleTruthDecorationAlg::m_derivateTruthKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_derivateTruthKey
Muon tracks are matched to the truth particle container insert a bypass to bend the link to the desir...
Definition
TrackParticleTruthDecorationAlg.h:45
ActsTrk::TrackParticleTruthDecorationAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
TrackParticleTruthDecorationAlg.cxx:47
ActsTrk::TrackParticleTruthDecorationAlg::m_trackToTruth
SG::ReadHandleKeyArray< TrackToTruthParticleAssociation > m_trackToTruth
Hit-based truth matching from the Acts::Track -> truth particle.
Definition
TrackParticleTruthDecorationAlg.h:37
ActsTrk::TrackParticleTruthDecorationAlg::m_trkParticleName
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trkParticleName
Definition
TrackParticleTruthDecorationAlg.h:41
ActsTrk::TrackParticleTruthDecorationAlg::m_truthClassDecor
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_truthClassDecor
Definition
TrackParticleTruthDecorationAlg.h:53
ActsTrk::TrackParticleTruthDecorationAlg::IntDecorations
IntDecorations
Definition
TrackParticleTruthDecorationAlg.h:50
ActsTrk::TrackParticleTruthDecorationAlg::kNIntDecorators
@ kNIntDecorators
Definition
TrackParticleTruthDecorationAlg.h:50
ActsTrk::TrackParticleTruthDecorationAlg::kTruthOrigin
@ kTruthOrigin
Definition
TrackParticleTruthDecorationAlg.h:50
ActsTrk::TrackParticleTruthDecorationAlg::kTruthType
@ kTruthType
Definition
TrackParticleTruthDecorationAlg.h:50
ActsTrk::TrackParticleTruthDecorationAlg::m_intDecor
SG::WriteDecorHandleKeyArray< xAOD::TrackParticleContainer > m_intDecor
Definition
TrackParticleTruthDecorationAlg.h:51
ActsTrk::TrackParticleTruthDecorationAlg::initialize
virtual StatusCode initialize() override
Definition
TrackParticleTruthDecorationAlg.cxx:25
ActsTrk::TrackParticleTruthDecorationAlg::m_linkDecor
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_linkDecor
Definition
TrackParticleTruthDecorationAlg.h:59
ActsTrk::TrackParticleTruthDecorationAlg::FloatDecorations
FloatDecorations
Definition
TrackParticleTruthDecorationAlg.h:47
ActsTrk::TrackParticleTruthDecorationAlg::kHitPurity
@ kHitPurity
Definition
TrackParticleTruthDecorationAlg.h:47
ActsTrk::TrackParticleTruthDecorationAlg::kNFloatDecorators
@ kNFloatDecorators
Definition
TrackParticleTruthDecorationAlg.h:47
ActsTrk::TrackParticleTruthDecorationAlg::kMatchingProbability
@ kMatchingProbability
Definition
TrackParticleTruthDecorationAlg.h:47
ActsTrk::TrackParticleTruthDecorationAlg::kHitEfficiency
@ kHitEfficiency
Definition
TrackParticleTruthDecorationAlg.h:47
ActsTrk::TrackParticleTruthDecorationAlg::m_truthClassifier
ToolHandle< IMCTruthClassifier > m_truthClassifier
Definition
TrackParticleTruthDecorationAlg.h:56
ActsTrk::TrackTruthMatchingBaseAlg
Definition
TrackTruthMatchingBaseAlg.h:44
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
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition
MdtCalibInput.h:31
SG::WriteDecorHandleKeyArray
DecorHandleKeyArray< WriteDecorHandle< T, S >, WriteDecorHandleKey< T >, Gaudi::DataHandle::Writer > WriteDecorHandleKeyArray
Definition
StoreGate/StoreGate/WriteDecorHandleKeyArray.h:35
SG::ReadHandleKeyArray
HandleKeyArray< ReadHandle< T >, ReadHandleKey< T >, Gaudi::DataHandle::Reader > ReadHandleKeyArray
Definition
StoreGate/StoreGate/ReadHandleKeyArray.h:32
Generated on
for ATLAS Offline Software by
1.17.0