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/ReadDecorHandleKey.h
>
13
#include <
AsgDataHandles/ReadHandleKey.h
>
14
#include <
AsgDataHandles/WriteDecorHandleKey.h
>
15
#include <
AsgTools/PropertyWrapper.h
>
16
17
// Framework includes
18
#include <
MCTruthClassifier/IMCTruthClassifier.h
>
19
#include <
xAODTruth/TruthParticleContainer.h
>
20
21
namespace
CP
{
22
class
ParticleLevelIsolationAlg
:
public
EL::AnaReentrantAlgorithm
{
23
public
:
24
using
EL::AnaReentrantAlgorithm::AnaReentrantAlgorithm
;
25
virtual
StatusCode
initialize
()
final
;
26
virtual
StatusCode
execute
(
const
EventContext &ctx)
const
final
;
27
28
private
:
29
SG::ReadHandleKey<xAOD::TruthParticleContainer>
m_particlesKey
{
30
this
,
"particles"
,
""
,
"the name of the input truth particles container"
};
31
Gaudi::Property<std::string>
m_isolated
{
32
this
,
"isolation"
,
""
,
"decoration for isolated truth particles"
};
33
Gaudi::Property<std::string>
m_notTauOrigin
{
34
this
,
"notTauOrigin"
,
""
,
35
"decoration for truth particles not coming from a tau-decay"
};
36
Gaudi::Property<std::string>
m_checkTypeName
{
37
this
,
"checkType"
,
""
,
38
"the MCTruthPartClassifier::ParticleType string to check against"
};
39
Gaudi::Property<std::string>
m_isolationVariable
{
40
this
,
"isoVar"
,
""
,
41
"variable to use in isolation cuts of the form 'var/pT < cut'"
};
42
Gaudi::Property<float>
m_isolationCut
{
43
this
,
"isoCut"
, -1,
44
"threshold to use in isolation cuts of the form 'var/pT < cut'"
};
45
MCTruthPartClassifier::ParticleType
m_checkType
{};
46
SG::WriteDecorHandleKey<xAOD::TruthParticleContainer>
m_decIsolatedKey
{
47
this
,
"isolatedDecorKey"
,
""
,
"internal, do not set directly"
};
48
SG::WriteDecorHandleKey<xAOD::TruthParticleContainer>
m_decNotTauOriginKey
{
49
this
,
"notTauOriginDecorKey"
,
""
,
"internal, do not set directly"
};
50
SG::ReadDecorHandleKey<xAOD::TruthParticleContainer>
m_isoVarKey
{
51
this
,
"isoVarDecorKey"
,
""
,
"internal, do not set directly"
};
52
SG::ReadDecorHandleKey<xAOD::TruthParticleContainer>
m_classifierTypeKey
{
53
this
,
"classifierParticleTypeDecoration"
,
m_particlesKey
,
54
"classifierParticleType"
,
"the particle type classification decoration"
};
55
SG::ReadDecorHandleKey<xAOD::TruthParticleContainer>
m_classifierOriginKey
{
56
this
,
"classifierParticleOriginDecoration"
,
m_particlesKey
,
57
"classifierParticleOrigin"
,
"the particle origin classification decoration"
};
58
};
59
60
}
// namespace CP
61
62
#endif
AnaReentrantAlgorithm.h
ReadDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteDecorHandleKey.h
TruthParticleContainer.h
IMCTruthClassifier.h
PropertyWrapper.h
CP::ParticleLevelIsolationAlg
Definition
ParticleLevelIsolationAlg.h:22
CP::ParticleLevelIsolationAlg::m_particlesKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_particlesKey
Definition
ParticleLevelIsolationAlg.h:29
CP::ParticleLevelIsolationAlg::m_checkType
MCTruthPartClassifier::ParticleType m_checkType
Definition
ParticleLevelIsolationAlg.h:45
CP::ParticleLevelIsolationAlg::m_decNotTauOriginKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_decNotTauOriginKey
Definition
ParticleLevelIsolationAlg.h:48
CP::ParticleLevelIsolationAlg::m_classifierOriginKey
SG::ReadDecorHandleKey< xAOD::TruthParticleContainer > m_classifierOriginKey
Definition
ParticleLevelIsolationAlg.h:55
CP::ParticleLevelIsolationAlg::m_isolationCut
Gaudi::Property< float > m_isolationCut
Definition
ParticleLevelIsolationAlg.h:42
CP::ParticleLevelIsolationAlg::m_notTauOrigin
Gaudi::Property< std::string > m_notTauOrigin
Definition
ParticleLevelIsolationAlg.h:33
CP::ParticleLevelIsolationAlg::m_isoVarKey
SG::ReadDecorHandleKey< xAOD::TruthParticleContainer > m_isoVarKey
Definition
ParticleLevelIsolationAlg.h:50
CP::ParticleLevelIsolationAlg::m_decIsolatedKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_decIsolatedKey
Definition
ParticleLevelIsolationAlg.h:46
CP::ParticleLevelIsolationAlg::m_classifierTypeKey
SG::ReadDecorHandleKey< xAOD::TruthParticleContainer > m_classifierTypeKey
Definition
ParticleLevelIsolationAlg.h:52
CP::ParticleLevelIsolationAlg::initialize
virtual StatusCode initialize() final
Definition
ParticleLevelIsolationAlg.cxx:18
CP::ParticleLevelIsolationAlg::execute
virtual StatusCode execute(const EventContext &ctx) const final
Definition
ParticleLevelIsolationAlg.cxx:73
CP::ParticleLevelIsolationAlg::m_isolated
Gaudi::Property< std::string > m_isolated
Definition
ParticleLevelIsolationAlg.h:31
CP::ParticleLevelIsolationAlg::m_checkTypeName
Gaudi::Property< std::string > m_checkTypeName
Definition
ParticleLevelIsolationAlg.h:36
CP::ParticleLevelIsolationAlg::m_isolationVariable
Gaudi::Property< std::string > m_isolationVariable
Definition
ParticleLevelIsolationAlg.h:39
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::ReadDecorHandleKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Definition
StoreGate/StoreGate/ReadDecorHandleKey.h:86
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
MCTruthPartClassifier::ParticleType
ParticleType
Definition
TruthClasses.h:10
Generated on
for ATLAS Offline Software by
1.17.0