ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetValidation
InDetPhysValMonitoring
src
TruthParticleIndexDecoratorAlg.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 TRUTHPARTICLEINDEXDECORATORALG_H
6
#define TRUTHPARTICLEINDEXDECORATORALG_H
7
8
// STL includes
9
#include <string>
10
#include "
xAODTruth/TruthParticleContainer.h
"
11
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
12
#include "
StoreGate/WriteDecorHandleKey.h
"
13
#include "
StoreGate/ReadHandleKey.h
"
14
15
// class to decorate xAOD::TruthParticles with additional information required by validation
16
class
TruthParticleIndexDecoratorAlg
:
public
AthReentrantAlgorithm
{
17
public
:
18
TruthParticleIndexDecoratorAlg
(
const
std::string& name, ISvcLocator* pSvcLocator);
19
virtual
StatusCode
initialize
();
20
virtual
StatusCode
execute
(
const
EventContext &ctx)
const
;
21
22
private
:
23
25
SG::ReadHandleKey<xAOD::TruthParticleContainer>
m_truthParticleName
26
{
this
,
"TruthParticleContainerName"
,
"TruthParticles"
,
""
};
27
28
SG::WriteDecorHandleKey<xAOD::TruthParticleContainer>
m_indexDecor
29
{
this
,
"TruthParticleIndexDecoration"
,
m_truthParticleName
,
"origTruthIndex"
,
"decoration name for the original truth particle index."
};
30
};
31
#endif
AthReentrantAlgorithm.h
TruthParticleContainer.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.
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
TruthParticleIndexDecoratorAlg::m_truthParticleName
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthParticleName
TruthParticle container's name needed to create decorators.
Definition
TruthParticleIndexDecoratorAlg.h:26
TruthParticleIndexDecoratorAlg::initialize
virtual StatusCode initialize()
Definition
TruthParticleIndexDecoratorAlg.cxx:14
TruthParticleIndexDecoratorAlg::TruthParticleIndexDecoratorAlg
TruthParticleIndexDecoratorAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
TruthParticleIndexDecoratorAlg.cxx:8
TruthParticleIndexDecoratorAlg::m_indexDecor
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_indexDecor
Definition
TruthParticleIndexDecoratorAlg.h:29
TruthParticleIndexDecoratorAlg::execute
virtual StatusCode execute(const EventContext &ctx) const
Definition
TruthParticleIndexDecoratorAlg.cxx:26
Generated on
for ATLAS Offline Software by
1.17.0