ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
xAOD
xAODTruthCnv
xAODTruthCnv
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).
6
#include "
AnaAlgorithm/AnaReentrantAlgorithm.h
"
7
#include "
AsgDataHandles/ReadHandleKey.h
"
8
#include "
AsgDataHandles/WriteHandleKey.h
"
9
#include "
AsgTools/PropertyWrapper.h
"
10
11
// EDM include(s).
12
#include "
xAODTruth/TruthVertexContainer.h
"
13
14
// System include(s).
15
#include <string>
16
#include <vector>
17
18
namespace
xAODMaker
{
19
26
class
TruthVertexFixerAlg
final :
public
EL::AnaReentrantAlgorithm
{
27
28
public
:
30
using
EL::AnaReentrantAlgorithm::AnaReentrantAlgorithm
;
31
33
virtual
StatusCode
initialize
()
override
;
35
virtual
StatusCode
execute
(
const
EventContext& ctx)
const override
;
36
37
private
:
39
SG::ReadHandleKey<xAOD::TruthVertexContainer>
m_inputContainerKey
{
40
this
,
"InputContainer"
,
"InputFileTruthVertices"
,
41
"Input TruthVertices container"
};
42
44
SG::WriteHandleKey<xAOD::TruthVertexContainer>
m_outputContainerKey
{
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
AnaReentrantAlgorithm.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
PropertyWrapper.h
TruthVertexContainer.h
EL::AnaReentrantAlgorithm
the base class for EventLoop reentrant algorithms
Definition
AnaReentrantAlgorithm.h:51
EL::AnaReentrantAlgorithm::AnaReentrantAlgorithm
AnaReentrantAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Definition
AnaReentrantAlgorithm.cxx:29
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
xAODMaker::TruthVertexFixerAlg
Algorithm fixing xAOD::TruthVertex objects in (old) DAOD files.
Definition
TruthVertexFixerAlg.h:26
xAODMaker::TruthVertexFixerAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Function executing the algorithm.
Definition
TruthVertexFixerAlg.cxx:32
xAODMaker::TruthVertexFixerAlg::initialize
virtual StatusCode initialize() override
Function initialising the algorithm.
Definition
TruthVertexFixerAlg.cxx:22
xAODMaker::TruthVertexFixerAlg::m_particleLinks
Gaudi::Property< std::vector< std::string > > m_particleLinks
Names of the truth particle links to fix.
Definition
TruthVertexFixerAlg.h:49
xAODMaker::TruthVertexFixerAlg::m_inputContainerKey
SG::ReadHandleKey< xAOD::TruthVertexContainer > m_inputContainerKey
The keys of the input xAOD truth containers.
Definition
TruthVertexFixerAlg.h:39
xAODMaker::TruthVertexFixerAlg::m_outputContainerKey
SG::WriteHandleKey< xAOD::TruthVertexContainer > m_outputContainerKey
The keys for the output xAOD truth containers.
Definition
TruthVertexFixerAlg.h:44
xAODMaker::TruthVertexFixerAlg::m_linkPrefixToRemove
Gaudi::Property< std::string > m_linkPrefixToRemove
Prefix to remove from the link names.
Definition
TruthVertexFixerAlg.h:57
xAODMaker::TruthVertexFixerAlg::m_vertexLinks
Gaudi::Property< std::vector< std::string > > m_vertexLinks
Names of the truth vertex links to fix.
Definition
TruthVertexFixerAlg.h:53
xAODMaker
Definition
StoreGateSvc.h:70
Generated on
for ATLAS Offline Software by
1.17.0