ATLAS Offline Software
TruthParticleFixerAlg.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2 #ifndef XAODTRUTHCNV_TRUTHPARTICLEFIXERALG_H
3 #define XAODTRUTHCNV_TRUTHPARTICLEFIXERALG_H
4 
5 // Framework include(s).
10 
11 // EDM include(s).
13 
14 // System include(s).
15 #include <string>
16 #include <vector>
17 
18 namespace xAODMaker {
19 
27 
28  public:
31 
33  virtual StatusCode initialize() override;
35  virtual StatusCode execute(const EventContext& ctx) const override;
36 
37  private:
40  this, "InputContainer", "InputFileTruthParticles",
41  "Input TruthParticles container"};
42 
45  this, "OutputContainer", "TruthParticles",
46  "Output TruthParticles container"};
47 
49  Gaudi::Property<std::vector<std::string>> m_particleLinks{
50  this, "ParticleLinks", {}, "Names of the truth particle links to fix"};
51 
53  Gaudi::Property<std::vector<std::string>> m_vertexLinks{
54  this, "VertexLinks", {}, "Names of the truth vertex links to fix"};
55 
57  Gaudi::Property<std::string> m_linkPrefixToRemove{
58  this, "LinkPrefixToRemove", "", "Prefix to remove from the link names"};
59 
60 }; // class TruthParticleFixerAlg
61 
62 } // namespace xAODMaker
63 
64 #endif // XAODTRUTHCNV_TRUTHPARTICLEFIXERALG_H
PropertyWrapper.h
xAODMaker::TruthParticleFixerAlg::m_particleLinks
Gaudi::Property< std::vector< std::string > > m_particleLinks
Names of the truth particle links to fix.
Definition: TruthParticleFixerAlg.h:49
xAODMaker::TruthParticleFixerAlg::initialize
virtual StatusCode initialize() override
Function initialising the algorithm.
Definition: TruthParticleFixerAlg.cxx:22
xAODMaker::TruthParticleFixerAlg::m_linkPrefixToRemove
Gaudi::Property< std::string > m_linkPrefixToRemove
Prefix to remove from the link names.
Definition: TruthParticleFixerAlg.h:57
TruthParticleContainer.h
SG::ReadHandleKey< xAOD::TruthParticleContainer >
xAODMaker
Definition: StoreGateSvc.h:70
SG::WriteHandleKey< xAOD::TruthParticleContainer >
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.
xAODMaker::TruthParticleFixerAlg
Algorithm fixing xAOD::TruthParticle objects in (old) DAOD files.
Definition: TruthParticleFixerAlg.h:26
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle 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
xAODMaker::TruthParticleFixerAlg::m_outputContainerKey
SG::WriteHandleKey< xAOD::TruthParticleContainer > m_outputContainerKey
The keys for the output xAOD truth containers.
Definition: TruthParticleFixerAlg.h:44
EL::AnaReentrantAlgorithm
the base class for EventLoop reentrant algorithms
Definition: AnaReentrantAlgorithm.h:51
AnaReentrantAlgorithm.h
xAODMaker::TruthParticleFixerAlg::m_inputContainerKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_inputContainerKey
The keys of the input xAOD truth containers.
Definition: TruthParticleFixerAlg.h:39
xAODMaker::TruthParticleFixerAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Function executing the algorithm.
Definition: TruthParticleFixerAlg.cxx:32
xAODMaker::TruthParticleFixerAlg::m_vertexLinks
Gaudi::Property< std::vector< std::string > > m_vertexLinks
Names of the truth vertex links to fix.
Definition: TruthParticleFixerAlg.h:53