ATLAS Offline Software
TruthParticlePrinterAlg.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2 #ifndef XAODTRUTHCNV_TRUTHPARTICLEPRINTERALG_H
3 #define XAODTRUTHCNV_TRUTHPARTICLEPRINTERALG_H
4 
5 // Framework include(s).
8 
9 // EDM include(s).
11 
12 namespace xAODReader {
13 
20 
21  public:
24 
26  virtual StatusCode initialize() override;
28  virtual StatusCode execute(const EventContext& ctx) const override;
29 
30  private:
33  this, "Container", "TruthParticles", "Truth particle container"};
34 
35 }; // class TruthParticlePrinterAlg
36 
37 } // namespace xAODReader
38 
39 #endif // XAODTRUTHCNV_TRUTHPARTICLEPRINTERALG_H
xAODReader::TruthParticlePrinterAlg::m_key
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_key
The key of the truth particle container to print.
Definition: TruthParticlePrinterAlg.h:32
TruthParticleContainer.h
SG::ReadHandleKey< xAOD::TruthParticleContainer >
xAODReader::TruthParticlePrinterAlg
Algorithm printing xAOD::TruthParticle in some simple way.
Definition: TruthParticlePrinterAlg.h:19
xAODReader::TruthParticlePrinterAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Function executing the algorithm.
Definition: TruthParticlePrinterAlg.cxx:28
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
columnar::final
CM final
Definition: ColumnAccessor.h:106
EL::AnaReentrantAlgorithm::AnaReentrantAlgorithm
AnaReentrantAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Definition: AnaReentrantAlgorithm.cxx:29
EL::AnaReentrantAlgorithm
the base class for EventLoop reentrant algorithms
Definition: AnaReentrantAlgorithm.h:51
xAODReader::TruthParticlePrinterAlg::initialize
virtual StatusCode initialize() override
Function initialising the algorithm.
Definition: TruthParticlePrinterAlg.cxx:19
AnaReentrantAlgorithm.h
xAODReader
Definition: BTaggingReader.cxx:21