ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
xAOD
xAODTruthCnv
src
RedoTruthLinksAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef XAODCREATORALGS_REDOTRUTHLINKSALG_H
6
#define XAODCREATORALGS_REDOTRUTHLINKSALG_H
7
8
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
9
10
11
#include "
GeneratorObjects/xAODTruthParticleLink.h
"
12
#include "
xAODTruth/TruthEventContainer.h
"
13
14
#include "
StoreGate/ReadHandleKey.h
"
15
#include "
StoreGate/WriteHandleKey.h
"
16
17
18
namespace
xAODMaker
{
19
28
class
RedoTruthLinksAlg
:
public
AthReentrantAlgorithm
{
29
public
:
30
32
using
AthReentrantAlgorithm::AthReentrantAlgorithm;
34
virtual
StatusCode
initialize
()
override
;
36
virtual
StatusCode
execute
(
const
EventContext& ctx)
const override
;
37
38
39
private
:
40
42
SG::WriteHandleKey<xAODTruthParticleLinkVector>
m_truthLinkContainerKey
{
43
this
,
"TruthLinks"
,
"xAODTruthLinks"
,
"Output xAODTruthLinks container"
};
44
45
// The key for the input xAOD truth containers
46
SG::ReadHandleKey<xAOD::TruthEventContainer>
m_linksOnlyTruthEventContainerKey
{
47
this
,
"linksOnlyTruthEventContainerName"
,
"TruthEvents"
,
"Input TruthEvents container"
};
48
49
};
// class RedoTruthLinksAlg
50
51
52
}
// namespace xAODMaker
53
54
#endif
// XAODCREATORALGS_REDOTRUTHLINKSALG_H
AthReentrantAlgorithm.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.
TruthEventContainer.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
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::RedoTruthLinksAlg
Algorithm creating xAOD truth from HepMC.
Definition
RedoTruthLinksAlg.h:28
xAODMaker::RedoTruthLinksAlg::m_truthLinkContainerKey
SG::WriteHandleKey< xAODTruthParticleLinkVector > m_truthLinkContainerKey
The key for the output xAOD truth containers.
Definition
RedoTruthLinksAlg.h:42
xAODMaker::RedoTruthLinksAlg::initialize
virtual StatusCode initialize() override
Function initialising the algorithm.
Definition
RedoTruthLinksAlg.cxx:20
xAODMaker::RedoTruthLinksAlg::m_linksOnlyTruthEventContainerKey
SG::ReadHandleKey< xAOD::TruthEventContainer > m_linksOnlyTruthEventContainerKey
Definition
RedoTruthLinksAlg.h:46
xAODMaker::RedoTruthLinksAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Function executing the algorithm.
Definition
RedoTruthLinksAlg.cxx:31
xAODMaker
Definition
StoreGateSvc.h:70
xAODTruthParticleLink.h
Generated on
for ATLAS Offline Software by
1.17.0