ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
TruthParticleLevelAnalysisAlgorithms
TruthParticleLevelAnalysisAlgorithms
ParticleLevelIsolationAlg.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_ISOLATION__ALG_H
8
#define TRUTH__PARTICLELEVEL_ISOLATION__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 <
MCTruthClassifier/IMCTruthClassifier.h
>
18
#include <
xAODTruth/TruthParticleContainer.h
>
19
20
namespace
CP
{
21
class
ParticleLevelIsolationAlg
:
public
EL::AnaReentrantAlgorithm
{
22
public
:
23
using
EL::AnaReentrantAlgorithm::AnaReentrantAlgorithm
;
24
virtual
StatusCode
initialize
()
final
;
25
virtual
StatusCode
execute
(
const
EventContext &ctx)
const
final
;
26
27
private
:
28
SG::ReadHandleKey<xAOD::TruthParticleContainer>
m_particlesKey
{
29
this
,
"particles"
,
""
,
"the name of the input truth particles container"
};
30
Gaudi::Property<std::string>
m_isolated
{
31
this
,
"isolation"
,
""
,
"decoration for isolated truth particles"
};
32
Gaudi::Property<std::string>
m_notTauOrigin
{
33
this
,
"notTauOrigin"
,
""
,
34
"decoration for truth particles not coming from a tau-decay"
};
35
Gaudi::Property<std::string>
m_checkTypeName
{
36
this
,
"checkType"
,
""
,
37
"the MCTruthPartClassifier::ParticleType string to check against"
};
38
Gaudi::Property<std::string>
m_isolationVariable
{
39
this
,
"isoVar"
,
""
,
40
"variable to use in isolation cuts of the form 'var/pT < cut'"
};
41
Gaudi::Property<float>
m_isolationCut
{
42
this
,
"isoCut"
, -1,
43
"threshold to use in isolation cuts of the form 'var/pT < cut'"
};
44
MCTruthPartClassifier::ParticleType
m_checkType
{};
45
std::unique_ptr<const SG::Decorator<char>>
m_dec_isolated
{};
46
std::unique_ptr<const SG::Decorator<char>>
m_dec_notTauOrigin
{};
47
std::unique_ptr<const SG::ConstAccessor<float>>
m_acc_isoVar
{};
48
};
49
50
}
// namespace CP
51
52
#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
IMCTruthClassifier.h
PropertyWrapper.h
CP::ParticleLevelIsolationAlg
Definition
ParticleLevelIsolationAlg.h:21
CP::ParticleLevelIsolationAlg::m_acc_isoVar
std::unique_ptr< const SG::ConstAccessor< float > > m_acc_isoVar
Definition
ParticleLevelIsolationAlg.h:47
CP::ParticleLevelIsolationAlg::m_particlesKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_particlesKey
Definition
ParticleLevelIsolationAlg.h:28
CP::ParticleLevelIsolationAlg::m_checkType
MCTruthPartClassifier::ParticleType m_checkType
Definition
ParticleLevelIsolationAlg.h:44
CP::ParticleLevelIsolationAlg::m_dec_notTauOrigin
std::unique_ptr< const SG::Decorator< char > > m_dec_notTauOrigin
Definition
ParticleLevelIsolationAlg.h:46
CP::ParticleLevelIsolationAlg::m_isolationCut
Gaudi::Property< float > m_isolationCut
Definition
ParticleLevelIsolationAlg.h:41
CP::ParticleLevelIsolationAlg::m_notTauOrigin
Gaudi::Property< std::string > m_notTauOrigin
Definition
ParticleLevelIsolationAlg.h:32
CP::ParticleLevelIsolationAlg::m_dec_isolated
std::unique_ptr< const SG::Decorator< char > > m_dec_isolated
Definition
ParticleLevelIsolationAlg.h:45
CP::ParticleLevelIsolationAlg::initialize
virtual StatusCode initialize() final
Definition
ParticleLevelIsolationAlg.cxx:11
CP::ParticleLevelIsolationAlg::execute
virtual StatusCode execute(const EventContext &ctx) const final
Definition
ParticleLevelIsolationAlg.cxx:46
CP::ParticleLevelIsolationAlg::m_isolated
Gaudi::Property< std::string > m_isolated
Definition
ParticleLevelIsolationAlg.h:30
CP::ParticleLevelIsolationAlg::m_checkTypeName
Gaudi::Property< std::string > m_checkTypeName
Definition
ParticleLevelIsolationAlg.h:35
CP::ParticleLevelIsolationAlg::m_isolationVariable
Gaudi::Property< std::string > m_isolationVariable
Definition
ParticleLevelIsolationAlg.h:38
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
MCTruthPartClassifier::ParticleType
ParticleType
Definition
TruthClasses.h:10
Generated on
for ATLAS Offline Software by
1.17.0