ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
xAOD
xAODTruthCnv
xAODTruthCnv
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).
6
#include "
AnaAlgorithm/AnaReentrantAlgorithm.h
"
7
#include "
AsgDataHandles/ReadHandleKey.h
"
8
#include "
AsgDataHandles/WriteHandleKey.h
"
9
#include "
AsgDataHandles/WriteDecorHandleKey.h
"
10
#include "
AsgTools/PropertyWrapper.h
"
11
12
// EDM include(s).
13
#include "
xAODTruth/TruthParticleContainer.h
"
14
15
// System include(s).
16
#include <string>
17
#include <vector>
18
19
namespace
xAODMaker
{
20
27
class
TruthParticleFixerAlg
final :
public
EL::AnaReentrantAlgorithm
{
28
29
public
:
31
using
EL::AnaReentrantAlgorithm::AnaReentrantAlgorithm
;
32
34
virtual
StatusCode
initialize
()
override
;
36
virtual
StatusCode
execute
(
const
EventContext& ctx)
const override
;
37
38
private
:
40
SG::ReadHandleKey<xAOD::TruthParticleContainer>
m_inputContainerKey
{
41
this
,
"InputContainer"
,
"InputFileTruthParticles"
,
42
"Input TruthParticles container"
};
43
45
SG::WriteHandleKey<xAOD::TruthParticleContainer>
m_outputContainerKey
{
46
this
,
"OutputContainer"
,
"TruthParticles"
,
47
"Output TruthParticles container"
};
48
49
SG::WriteDecorHandleKey<xAOD::TruthParticleContainer>
m_uidKey
{
50
this
,
"UIDKey"
,
m_inputContainerKey
,
"uid"
};
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
AnaReentrantAlgorithm.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteDecorHandleKey.h
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
TruthParticleContainer.h
PropertyWrapper.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::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition
StoreGate/StoreGate/WriteDecorHandleKey.h:90
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
xAODMaker::TruthParticleFixerAlg
Algorithm fixing xAOD::TruthParticle objects in (old) DAOD files.
Definition
TruthParticleFixerAlg.h:27
xAODMaker::TruthParticleFixerAlg::m_particleLinks
Gaudi::Property< std::vector< std::string > > m_particleLinks
Names of the truth particle links to fix.
Definition
TruthParticleFixerAlg.h:53
xAODMaker::TruthParticleFixerAlg::m_linkPrefixToRemove
Gaudi::Property< std::string > m_linkPrefixToRemove
Prefix to remove from the link names.
Definition
TruthParticleFixerAlg.h:61
xAODMaker::TruthParticleFixerAlg::initialize
virtual StatusCode initialize() override
Function initialising the algorithm.
Definition
TruthParticleFixerAlg.cxx:24
xAODMaker::TruthParticleFixerAlg::m_outputContainerKey
SG::WriteHandleKey< xAOD::TruthParticleContainer > m_outputContainerKey
The keys for the output xAOD truth containers.
Definition
TruthParticleFixerAlg.h:45
xAODMaker::TruthParticleFixerAlg::m_uidKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_uidKey
Definition
TruthParticleFixerAlg.h:49
xAODMaker::TruthParticleFixerAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Function executing the algorithm.
Definition
TruthParticleFixerAlg.cxx:36
xAODMaker::TruthParticleFixerAlg::m_vertexLinks
Gaudi::Property< std::vector< std::string > > m_vertexLinks
Names of the truth vertex links to fix.
Definition
TruthParticleFixerAlg.h:57
xAODMaker::TruthParticleFixerAlg::m_inputContainerKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_inputContainerKey
The keys of the input xAOD truth containers.
Definition
TruthParticleFixerAlg.h:40
xAODMaker
Definition
StoreGateSvc.h:70
Generated on
for ATLAS Offline Software by
1.17.0