ATLAS Offline Software
Loading...
Searching...
No Matches
TruthVertexFixerAlg.h
Go to the documentation of this file.
1// Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2#ifndef XAODTRUTHCNV_TRUTHVERTEXFIXERALG_H
3#define XAODTRUTHCNV_TRUTHVERTEXFIXERALG_H
4
5// Framework include(s).
10
11// EDM include(s).
13
14// System include(s).
15#include <string>
16#include <vector>
17
18namespace 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", "InputFileTruthVertices",
41 "Input TruthVertices container"};
42
45 this, "OutputContainer", "TruthVertices",
46 "Output TruthVertices 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 TruthVertexFixerAlg
61
62} // namespace xAODMaker
63
64#endif // XAODTRUTHCNV_TRUTHVERTEXFIXERALG_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 from which a WriteHandle is made.
Algorithm fixing xAOD::TruthVertex objects in (old) DAOD files.
virtual StatusCode execute(const EventContext &ctx) const override
Function executing the algorithm.
virtual StatusCode initialize() override
Function initialising the algorithm.
Gaudi::Property< std::vector< std::string > > m_particleLinks
Names of the truth particle links to fix.
SG::ReadHandleKey< xAOD::TruthVertexContainer > m_inputContainerKey
The keys of the input xAOD truth containers.
SG::WriteHandleKey< xAOD::TruthVertexContainer > m_outputContainerKey
The keys for the output xAOD truth containers.
Gaudi::Property< std::string > m_linkPrefixToRemove
Prefix to remove from the link names.
Gaudi::Property< std::vector< std::string > > m_vertexLinks
Names of the truth vertex links to fix.