ATLAS Offline Software
PhysicsAnalysis
Algorithms
TruthParticleLevelAnalysisAlgorithms
TruthParticleLevelAnalysisAlgorithms
ParticleLevelChargeDecoratorAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 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/AnaAlgorithm.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::AnaAlgorithm
{
21
public
:
22
using
EL::AnaAlgorithm::AnaAlgorithm
;
23
virtual
StatusCode
initialize
()
final
;
24
virtual
StatusCode
execute
()
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
TruthParticleContainer.h
SG::ReadHandleKey< xAOD::TruthParticleContainer >
CP
Select isolated Photons, Electrons and Muons.
Definition:
Control/xAODRootAccess/xAODRootAccess/TEvent.h:48
EL::AnaAlgorithm::AnaAlgorithm
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Definition:
AnaAlgorithm.cxx:40
CP::ParticleLevelChargeDecoratorAlg::execute
virtual StatusCode execute() final
Definition:
ParticleLevelChargeDecoratorAlg.cxx:18
CP::ParticleLevelChargeDecoratorAlg
Definition:
ParticleLevelChargeDecoratorAlg.h:20
AnaAlgorithm.h
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition:
AnaAlgorithm.h:73
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.
Generated on Sun Dec 22 2024 21:16:03 for ATLAS Offline Software by
1.8.18