ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
TruthParticleLevelAnalysisAlgorithms
TruthParticleLevelAnalysisAlgorithms
ParticleLevelPtEtaPhiDecoratorAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
7
#ifndef TRUTH_PARTICLELEVEL_PTETAPHIDECORATOR_ALG_H
8
#define TRUTH_PARTICLELEVEL_PTETAPHIDECORATOR_ALG_H
9
10
// Algorithm includes
11
#include <
AnaAlgorithm/AnaReentrantAlgorithm.h
>
12
#include <
AsgDataHandles/ReadHandleKey.h
>
13
#include <
AsgDataHandles/WriteDecorHandleKey.h
>
14
#include <
AsgTools/PropertyWrapper.h
>
15
16
// Framework includes
17
#include <
xAODTruth/TruthParticleContainer.h
>
18
19
namespace
CP
{
20
class
ParticleLevelPtEtaPhiDecoratorAlg
:
public
EL::AnaReentrantAlgorithm
{
21
public
:
22
using
EL::AnaReentrantAlgorithm::AnaReentrantAlgorithm
;
23
virtual
StatusCode
initialize
()
final
;
24
virtual
StatusCode
execute
(
const
EventContext &ctx)
const
final
;
25
26
private
:
27
SG::ReadHandleKey<xAOD::TruthParticleContainer>
m_particlesKey
{
28
this
,
"particles"
,
""
,
"the name of the input truth particles container"
};
29
SG::WriteDecorHandleKey<xAOD::TruthParticleContainer>
m_decPtKey
{
30
this
,
"ptDecoration"
,
m_particlesKey
,
"pt"
,
"the pt decoration"
};
31
SG::WriteDecorHandleKey<xAOD::TruthParticleContainer>
m_decEtaKey
{
32
this
,
"etaDecoration"
,
m_particlesKey
,
"eta"
,
"the eta decoration"
};
33
SG::WriteDecorHandleKey<xAOD::TruthParticleContainer>
m_decPhiKey
{
34
this
,
"phiDecoration"
,
m_particlesKey
,
"phi"
,
"the phi decoration"
};
35
};
36
37
}
// namespace CP
38
39
#endif
AnaReentrantAlgorithm.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteDecorHandleKey.h
TruthParticleContainer.h
PropertyWrapper.h
CP::ParticleLevelPtEtaPhiDecoratorAlg
Definition
ParticleLevelPtEtaPhiDecoratorAlg.h:20
CP::ParticleLevelPtEtaPhiDecoratorAlg::m_particlesKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_particlesKey
Definition
ParticleLevelPtEtaPhiDecoratorAlg.h:27
CP::ParticleLevelPtEtaPhiDecoratorAlg::m_decPhiKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_decPhiKey
Definition
ParticleLevelPtEtaPhiDecoratorAlg.h:33
CP::ParticleLevelPtEtaPhiDecoratorAlg::execute
virtual StatusCode execute(const EventContext &ctx) const final
Definition
ParticleLevelPtEtaPhiDecoratorAlg.cxx:24
CP::ParticleLevelPtEtaPhiDecoratorAlg::m_decPtKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_decPtKey
Definition
ParticleLevelPtEtaPhiDecoratorAlg.h:29
CP::ParticleLevelPtEtaPhiDecoratorAlg::initialize
virtual StatusCode initialize() final
Definition
ParticleLevelPtEtaPhiDecoratorAlg.cxx:14
CP::ParticleLevelPtEtaPhiDecoratorAlg::m_decEtaKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_decEtaKey
Definition
ParticleLevelPtEtaPhiDecoratorAlg.h:31
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
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
Generated on
for ATLAS Offline Software by
1.17.0