ATLAS Offline Software
TruthParticleIndexDecoratorAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 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>
14 
15 // class to decorate xAOD::TruthParticles with additional information required by validation
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 
26  {this, "TruthParticleContainerName", "TruthParticles", ""};
27 
29  {this, "TruthParticleIndexDecoration", "origTruthIndex", "decoration name for the original truth particle index."};
30 };
31 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition: StoreGate/StoreGate/WriteDecorHandleKey.h:89
TruthParticleIndexDecoratorAlg
Definition: TruthParticleIndexDecoratorAlg.h:16
TruthParticleContainer.h
SG::ReadHandleKey< xAOD::TruthParticleContainer >
TruthParticleIndexDecoratorAlg::execute
virtual StatusCode execute(const EventContext &ctx) const
Definition: TruthParticleIndexDecoratorAlg.cxx:27
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
TruthParticleIndexDecoratorAlg::m_truthParticleName
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthParticleName
TruthParticle container's name needed to create decorators.
Definition: TruthParticleIndexDecoratorAlg.h:26
TruthParticleIndexDecoratorAlg::TruthParticleIndexDecoratorAlg
TruthParticleIndexDecoratorAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: TruthParticleIndexDecoratorAlg.cxx:8
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
TruthParticleIndexDecoratorAlg::m_indexDecor
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_indexDecor
Definition: TruthParticleIndexDecoratorAlg.h:29
TruthParticleIndexDecoratorAlg::initialize
virtual StatusCode initialize()
Definition: TruthParticleIndexDecoratorAlg.cxx:14