ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
DerivationFramework
DerivationFrameworkEGamma
DerivationFrameworkEGamma
BkgElectronClassification.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef DERIVATIONFRAMEWORK_BKGELECTRONCLASSIFICATION_H
6
#define DERIVATIONFRAMEWORK_BKGELECTRONCLASSIFICATION_H
7
8
#include "
AthenaBaseComps/AthAlgTool.h
"
9
#include "
DerivationFrameworkInterfaces/IAugmentationTool.h
"
10
//
11
#include "GaudiKernel/ToolHandle.h"
12
#include "
MCTruthClassifier/IMCTruthClassifier.h
"
14
#include "
StoreGate/ReadHandle.h
"
15
#include "
StoreGate/ReadHandleKey.h
"
16
#include "
StoreGate/WriteDecorHandle.h
"
17
#include "
StoreGate/WriteHandleKey.h
"
18
#include "
xAODEgamma/ElectronContainer.h
"
19
#include "
xAODTruth/TruthParticleContainer.h
"
20
21
namespace
DerivationFramework
{
22
23
class
BkgElectronClassification
:
public
extends<AthAlgTool, IAugmentationTool>
24
{
25
public
:
26
27
using
base_class::base_class;
28
29
virtual
StatusCode
initialize
()
override
final
;
30
virtual
StatusCode
addBranches
(
const
EventContext& ctx)
const
override
final
;
31
32
private
:
34
ToolHandle<IMCTruthClassifier>
m_mcTruthClassifier
{
35
this
,
36
"MCTruthClassifierTool"
,
37
""
,
38
"Handle to the MCTruthClassifier"
39
};
40
42
SG::ReadHandleKey<xAOD::ElectronContainer>
m_electronContainer
{
43
this
,
44
"ElectronContainerName"
,
45
"Electrons"
,
46
"Input Electrons"
47
};
48
SG::ReadDecorHandleKey<xAOD::ElectronContainer>
49
m_electronTruthParticleLink
{
this
,
"electronTruthParticleLink"
,
50
m_electronContainer
,
"truthParticleLink"
,
""
};
// Decoration applied in egammaTruthAssociationAlg
51
53
SG::ReadHandleKey<xAOD::TruthParticleContainer>
m_truthContainer
{
54
this
,
55
"TruthParticleContainerName"
,
56
"TruthParticles"
,
57
"Input Truth Particles"
58
};
59
60
// Write decoration handle keys
61
SG::WriteDecorHandleKey<xAOD::ElectronContainer>
62
m_truthPdgId
{
this
,
"DoNotSet_truthPdgId"
,
m_electronContainer
,
"truthPdgId"
,
""
};
63
SG::WriteDecorHandleKey<xAOD::ElectronContainer>
64
m_firstEgMotherTruthType
{
this
,
"firstEgMotherTruthType"
,
m_electronContainer
,
"firstEgMotherTruthType"
,
""
};
65
SG::WriteDecorHandleKey<xAOD::ElectronContainer>
66
m_firstEgMotherTruthOrigin
{
this
,
"firstEgMotherTruthOrigin"
,
m_electronContainer
,
"firstEgMotherTruthOrigin"
,
""
};
67
SG::WriteDecorHandleKey<xAOD::ElectronContainer>
68
m_firstEgMotherTruthClassification
{
this
,
"firstEgMotherTruthClassification"
,
69
m_electronContainer
,
"firstEgMotherTruthClassification"
,
""
};
70
SG::WriteDecorHandleKey<xAOD::ElectronContainer>
71
m_firstEgMotherTruthParticleLink
{
this
,
72
"firstEgMotherTruthParticleLink"
,
73
m_electronContainer
,
"firstEgMotherTruthParticleLink"
,
74
""
};
75
SG::WriteDecorHandleKey<xAOD::ElectronContainer>
76
m_firstEgMotherPdgId
{
this
,
"firstEgMotherPdgId"
,
m_electronContainer
,
"firstEgMotherPdgId"
,
""
};
77
SG::WriteDecorHandleKey<xAOD::ElectronContainer>
78
m_lastEgMotherTruthType
{
this
,
"lastEgMotherTruthType"
,
m_electronContainer
,
"lastEgMotherTruthType"
,
""
};
79
SG::WriteDecorHandleKey<xAOD::ElectronContainer>
80
m_lastEgMotherTruthOrigin
{
this
,
"lastEgMotherTruthOrigin"
,
m_electronContainer
,
"lastEgMotherTruthOrigin"
,
""
};
81
SG::WriteDecorHandleKey<xAOD::ElectronContainer>
82
m_lastEgMotherTruthClassification
{
this
,
"lastEgMotherTruthClassification"
,
83
m_electronContainer
,
"lastEgMotherTruthClassification"
,
""
};
84
SG::WriteDecorHandleKey<xAOD::ElectronContainer>
85
m_lastEgMotherTruthParticleLink
{
this
,
86
"lastEgMotherTruthParticleLink"
,
87
m_electronContainer
,
"lastEgMotherTruthParticleLink"
,
88
""
};
89
SG::WriteDecorHandleKey<xAOD::ElectronContainer>
90
m_lastEgMotherPdgId
{
this
,
"lastEgMotherPdgId"
,
m_electronContainer
,
"lastEgMotherPdgId"
,
""
};
91
};
92
}
93
94
#endif
// DERIVATIONFRAMEWORK_BKGELECTRONCLASSIFICATION_H
AthAlgTool.h
ElectronContainer.h
TruthParticleContainer.h
IAugmentationTool.h
IMCTruthClassifier.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
ReadHandle.h
Handle class for reading from StoreGate.
WriteDecorHandle.h
Handle class for adding a decoration to an object.
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
DerivationFramework::BkgElectronClassification
Definition
BkgElectronClassification.h:24
DerivationFramework::BkgElectronClassification::m_lastEgMotherTruthOrigin
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_lastEgMotherTruthOrigin
Definition
BkgElectronClassification.h:80
DerivationFramework::BkgElectronClassification::m_electronContainer
SG::ReadHandleKey< xAOD::ElectronContainer > m_electronContainer
input electron container
Definition
BkgElectronClassification.h:42
DerivationFramework::BkgElectronClassification::m_truthPdgId
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_truthPdgId
Definition
BkgElectronClassification.h:62
DerivationFramework::BkgElectronClassification::m_lastEgMotherTruthParticleLink
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_lastEgMotherTruthParticleLink
Definition
BkgElectronClassification.h:85
DerivationFramework::BkgElectronClassification::addBranches
virtual StatusCode addBranches(const EventContext &ctx) const override final
Definition
BkgElectronClassification.cxx:47
DerivationFramework::BkgElectronClassification::m_truthContainer
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthContainer
Input truth particle container.
Definition
BkgElectronClassification.h:53
DerivationFramework::BkgElectronClassification::m_lastEgMotherTruthClassification
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_lastEgMotherTruthClassification
Definition
BkgElectronClassification.h:82
DerivationFramework::BkgElectronClassification::m_firstEgMotherPdgId
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_firstEgMotherPdgId
Definition
BkgElectronClassification.h:76
DerivationFramework::BkgElectronClassification::m_firstEgMotherTruthType
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_firstEgMotherTruthType
Definition
BkgElectronClassification.h:64
DerivationFramework::BkgElectronClassification::m_firstEgMotherTruthOrigin
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_firstEgMotherTruthOrigin
Definition
BkgElectronClassification.h:66
DerivationFramework::BkgElectronClassification::m_firstEgMotherTruthParticleLink
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_firstEgMotherTruthParticleLink
Definition
BkgElectronClassification.h:71
DerivationFramework::BkgElectronClassification::m_lastEgMotherTruthType
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_lastEgMotherTruthType
Definition
BkgElectronClassification.h:78
DerivationFramework::BkgElectronClassification::m_lastEgMotherPdgId
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_lastEgMotherPdgId
Definition
BkgElectronClassification.h:90
DerivationFramework::BkgElectronClassification::m_electronTruthParticleLink
SG::ReadDecorHandleKey< xAOD::ElectronContainer > m_electronTruthParticleLink
Definition
BkgElectronClassification.h:49
DerivationFramework::BkgElectronClassification::m_mcTruthClassifier
ToolHandle< IMCTruthClassifier > m_mcTruthClassifier
MCTruthClassifier.
Definition
BkgElectronClassification.h:34
DerivationFramework::BkgElectronClassification::initialize
virtual StatusCode initialize() override final
Definition
BkgElectronClassification.cxx:17
DerivationFramework::BkgElectronClassification::m_firstEgMotherTruthClassification
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_firstEgMotherTruthClassification
Definition
BkgElectronClassification.h:68
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
DerivationFramework
THE reconstruction tool.
Definition
CascadeTools.h:16
Generated on
for ATLAS Offline Software by
1.17.0