ATLAS Offline Software
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
PropertyWrapper.h
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
TruthParticleContainer.h
SG::ReadHandleKey< xAOD::TruthParticleContainer >
CP
Select isolated Photons, Electrons and Muons.
Definition:
Control/xAODRootAccess/xAODRootAccess/TEvent.h:49
CP::ParticleLevelChargeDecoratorAlg
Definition:
ParticleLevelChargeDecoratorAlg.h:20
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
CP::ParticleLevelChargeDecoratorAlg::initialize
virtual StatusCode initialize() final
Definition:
ParticleLevelChargeDecoratorAlg.cxx:11
ReadHandle.h
Handle class for reading from StoreGate.
EL::AnaReentrantAlgorithm::AnaReentrantAlgorithm
AnaReentrantAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Definition:
AnaReentrantAlgorithm.cxx:29
EL::AnaReentrantAlgorithm
the base class for EventLoop reentrant algorithms
Definition:
AnaReentrantAlgorithm.h:51
AnaReentrantAlgorithm.h
Generated on Mon Sep 1 2025 21:16:44 for ATLAS Offline Software by
1.8.18