ATLAS Offline Software
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
TruthParticleLevelAnalysisAlgorithms
TruthParticleLevelAnalysisAlgorithms
ParticleLevelChargeDecoratorAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
7
#ifndef TRUTH__PARTICLELEVEL_CHARGEDECORATOR__ALG_H
8
#define TRUTH__PARTICLELEVEL_CHARGEDECORATOR__ALG_H
9
10
// Algorithm includes
11
#include <
AnaAlgorithm/AnaReentrantAlgorithm.h
>
12
#include <
AsgDataHandles/ReadHandle.h
>
13
#include <
AsgDataHandles/ReadHandleKey.h
>
14
#include <
AsgTools/PropertyWrapper.h
>
15
16
// Framework includes
17
#include <
xAODTruth/TruthParticleContainer.h
>
18
19
namespace
CP
{
20
class
ParticleLevelChargeDecoratorAlg
:
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
};
30
31
}
// namespace CP
32
33
#endif
AnaReentrantAlgorithm.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
ReadHandle.h
Handle class for reading from StoreGate.
TruthParticleContainer.h
PropertyWrapper.h
CP::ParticleLevelChargeDecoratorAlg
Definition
ParticleLevelChargeDecoratorAlg.h:20
CP::ParticleLevelChargeDecoratorAlg::initialize
virtual StatusCode initialize() final
Definition
ParticleLevelChargeDecoratorAlg.cxx:11
CP::ParticleLevelChargeDecoratorAlg::m_particlesKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_particlesKey
Definition
ParticleLevelChargeDecoratorAlg.h:27
CP::ParticleLevelChargeDecoratorAlg::execute
virtual StatusCode execute(const EventContext &ctx) const final
Definition
ParticleLevelChargeDecoratorAlg.cxx:18
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
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
Generated on
for ATLAS Offline Software by
1.14.0