ATLAS Offline Software
Loading...
Searching...
No Matches
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).
11
12// EDM include(s).
14
15// System include(s).
16#include <string>
17#include <vector>
18
19namespace xAODMaker {
20
28
29 public:
32
34 virtual StatusCode initialize() override;
36 virtual StatusCode execute(const EventContext& ctx) const override;
37
38 private:
41 this, "InputContainer", "InputFileTruthParticles",
42 "Input TruthParticles container"};
43
46 this, "OutputContainer", "TruthParticles",
47 "Output TruthParticles container"};
48
51
53 Gaudi::Property<std::vector<std::string>> m_particleLinks{
54 this, "ParticleLinks", {}, "Names of the truth particle links to fix"};
55
57 Gaudi::Property<std::vector<std::string>> m_vertexLinks{
58 this, "VertexLinks", {}, "Names of the truth vertex links to fix"};
59
61 Gaudi::Property<std::string> m_linkPrefixToRemove{
62 this, "LinkPrefixToRemove", "", "Prefix to remove from the link names"};
63
64}; // class TruthParticleFixerAlg
65
66} // namespace xAODMaker
67
68#endif // XAODTRUTHCNV_TRUTHPARTICLEFIXERALG_H
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
the base class for EventLoop reentrant algorithms
AnaReentrantAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
Algorithm fixing xAOD::TruthParticle objects in (old) DAOD files.
Gaudi::Property< std::vector< std::string > > m_particleLinks
Names of the truth particle links to fix.
Gaudi::Property< std::string > m_linkPrefixToRemove
Prefix to remove from the link names.
virtual StatusCode initialize() override
Function initialising the algorithm.
SG::WriteHandleKey< xAOD::TruthParticleContainer > m_outputContainerKey
The keys for the output xAOD truth containers.
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_uidKey
virtual StatusCode execute(const EventContext &ctx) const override
Function executing the algorithm.
Gaudi::Property< std::vector< std::string > > m_vertexLinks
Names of the truth vertex links to fix.
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_inputContainerKey
The keys of the input xAOD truth containers.