ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetRecTools
InDetGNNHardScatterSelection
src
VertexDecoratorAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// Always protect against multiple includes!
6
#ifndef HSGNN_VERTEXDECORATORALG
7
#define HSGNN_VERTEXDECORATORALG
8
9
#include <utility>
10
#include <vector>
11
12
#include <
AthenaBaseComps/AthHistogramAlgorithm.h
>
13
14
#include <
xAODEventInfo/EventInfo.h
>
15
#include <
xAODTracking/VertexContainer.h
>
16
#include <
xAODEgamma/ElectronContainer.h
>
17
#include <
xAODEgamma/PhotonContainer.h
>
18
#include <
xAODJet/JetContainer.h
>
19
#include <
xAODMuon/MuonContainer.h
>
20
21
#include <
InDetTruthVertexValidation/IInDetVertexTruthMatchTool.h
>
22
#include <
InDetGNNHardScatterSelection/GNNTool.h
>
23
#include <
TrackVertexAssociationTool/TrackVertexAssociationTool.h
>
24
#include <
xAODParticleEvent/CompositeParticleContainer.h
>
25
36
37
namespace
InDetGNNHardScatterSelection
38
{
39
40
class
VertexDecoratorAlg
final :
public
AthHistogramAlgorithm
{
41
public
:
42
VertexDecoratorAlg
(
const
std::string& name, ISvcLocator *pSvcLocator);
43
44
StatusCode
initialize
()
override
;
45
StatusCode
execute
(
const
EventContext& ctx)
override
;
46
private
:
47
48
// Members for configurable properties
49
SG::ReadHandleKey<xAOD::VertexContainer>
m_vertexInKey
{
50
this
,
"vertexIn"
,
"PrimaryVertices"
,
"containerName to read"
};
51
SG::ReadHandleKey<xAOD::EventInfo>
m_eventInKey
{
52
this
,
"eventIn"
,
"EventInfo"
,
"containerName to read"
};
53
SG::ReadHandleKey<xAOD::ElectronContainer>
m_electronsInKey
{
54
this
,
"electronsIn"
,
"Electrons"
,
"containerName to read"
};
55
SG::ReadHandleKey<xAOD::MuonContainer>
m_muonsInKey
{
56
this
,
"muonsIn"
,
"Muons"
,
"containerName to read"
};
57
SG::ReadHandleKey<xAOD::JetContainer>
m_jetsInKey
{
58
this
,
"jetsIn"
,
"AntiKt4EMTopoJets"
,
"containerName to read"
};
59
SG::ReadHandleKey<xAOD::PhotonContainer>
m_photonsInKey
{
60
this
,
"photonsIn"
,
"Photons"
,
"containerName to read"
};
61
62
SG::WriteDecorHandleKey<xAOD::VertexContainer>
m_mDecor_ntrk
{
63
this
,
"decor_ntrkKey"
,
"ntrk"
,
""
};
64
SG::WriteDecorHandleKey<xAOD::VertexContainer>
m_mDecor_sumPt
{
65
this
,
"decor_sumPtKey"
,
"sumPt"
,
""
};
66
SG::WriteDecorHandleKey<xAOD::VertexContainer>
m_mDecor_chi2Over_ndf
{
67
this
,
"decor_chi2Over_ndfKey"
,
"chi2Over_ndf"
,
""
};
68
SG::WriteDecorHandleKey<xAOD::VertexContainer>
m_mDecor_z_asym
{
69
this
,
"decor_z_asymmetryKey"
,
"z_asymmetry"
,
""
};
70
SG::WriteDecorHandleKey<xAOD::VertexContainer>
m_mDecor_weighted_z_asym
{
71
this
,
"decor_weighted_z_asym"
,
"weighted_z_asymmetry"
,
""
};
72
SG::WriteDecorHandleKey<xAOD::VertexContainer>
m_mDecor_weighted_z_kurt
{
73
this
,
"decor_weighted_z_kurt"
,
"z_kurtosis"
,
""
};
74
SG::WriteDecorHandleKey<xAOD::VertexContainer>
m_mDecor_z_skew
{
75
this
,
"decor_z_skew"
,
"z_skewness"
,
""
};
76
SG::WriteDecorHandleKey<xAOD::VertexContainer>
m_mDecor_photon_deltaz
{
77
this
,
"decor_photon_deltaz"
,
"photon_deltaz"
,
""
};
78
SG::WriteDecorHandleKey<xAOD::VertexContainer>
m_mDecor_photon_deltaPhi
{
79
this
,
"decor_photon_deltaPhi"
,
"photon_deltaPhi"
,
""
};
80
SG::WriteDecorHandleKey<xAOD::VertexContainer>
m_mDecor_actualInterPerXing
{
81
this
,
"decor_actualInterPerXing"
,
"actualIntPerXing"
,
""
};
82
83
SG::WriteDecorHandleKey<xAOD::VertexContainer>
m_photonLinksKey
{
84
this
,
"photonLinks"
,
""
,
""
};
85
SG::WriteDecorHandleKey<xAOD::VertexContainer>
m_jetLinksKey
{
86
this
,
"jetLinks"
,
""
,
""
};
87
SG::WriteDecorHandleKey<xAOD::VertexContainer>
m_electronLinksKey
{
88
this
,
"electronLinks"
,
""
,
""
};
89
SG::WriteDecorHandleKey<xAOD::VertexContainer>
m_muonLinksKey
{
90
this
,
"muonLinks"
,
""
,
""
};
91
92
SG::WriteDecorHandleKey<xAOD::VertexContainer>
m_mDecor_gnnScore
{
93
this
,
"GNNScoreKey"
,
"HSGN2_phsvertex"
,
"Score from HSGNN"
};
94
95
SG::WriteDecorHandleKey<xAOD::VertexContainer>
m_mDecor_nElectrons
{
96
this
,
"decor_nElectrons"
,
"nElectrons"
,
""
};
97
SG::WriteDecorHandleKey<xAOD::VertexContainer>
m_mDecor_nMuons
{
98
this
,
"decor_nMuons"
,
"nMuons"
,
""
};
99
SG::WriteDecorHandleKey<xAOD::VertexContainer>
m_mDecor_nJets
{
100
this
,
"decor_nJets"
,
"nJets"
,
""
};
101
SG::WriteDecorHandleKey<xAOD::VertexContainer>
m_mDecor_nPhotons
{
102
this
,
"decor_nPhotons"
,
"nPhotons"
,
""
};
103
104
SG::WriteHandleKey<xAOD::CompositeParticleContainer>
m_multiPhotonsOutKey
{
105
this
,
"multiPhotonsOut"
,
"MultiPhotons"
,
"Output container for multi-photon node"
};
106
SG::WriteDecorHandleKey<xAOD::VertexContainer>
m_multiPhotonLinksKey
{
107
this
,
"multiPhotonLinks"
,
"multiPhotonLinks"
,
"Per-vertex link(s) to multi-photon node"
};
108
109
110
SG::ReadDecorHandleKey<xAOD::VertexContainer>
m_deltaZKey
{
111
this
,
"deltaZKey"
,
""
,
""
};
112
SG::ReadDecorHandleKey<xAOD::VertexContainer>
m_deltaPhiKey
{
113
this
,
"deltaPhiKey"
,
""
,
""
};
114
115
// additional ReadHandles for the Photons to declare dependencies
116
// to the scheduler
117
SG::ReadDecorHandleKey<xAOD::PhotonContainer>
m_caloPointingZKey
{
118
this
,
"caloPointingZKey"
,
""
,
""
};
119
SG::ReadDecorHandleKey<xAOD::PhotonContainer>
m_zCommonKey
{
120
this
,
"zCommonKey"
,
""
,
""
};
121
SG::ReadDecorHandleKey<xAOD::PhotonContainer>
m_zCommonErrorKey
{
122
this
,
"zCommonErrorKey"
,
""
,
""
};
123
124
// Internal members
125
ToolHandle<CP::TrackVertexAssociationTool>
m_trkVtxAssociationTool
{
126
this
,
"TrackVertexAssociationTool"
,
127
"CP::TrackVertexAssociationTool/TrackVertexAssociationTool"
,
128
"Track vertex association tool to use"
};
129
130
ToolHandle<GNNTool>
m_gnnTool
{
131
this
,
"gnnTool"
,
132
"InDetGNNHardScatterSelection/GNNTool"
,
133
"GNN tool to use"
};
134
135
};
136
}
// namespace InDetGNNHardScatterSelection
137
138
#endif
AthHistogramAlgorithm.h
ElectronContainer.h
PhotonContainer.h
MuonContainer.h
CompositeParticleContainer.h
IInDetVertexTruthMatchTool.h
GNNTool.h
TrackVertexAssociationTool.h
JetContainer.h
VertexContainer.h
AthHistogramAlgorithm::AthHistogramAlgorithm
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition
AthHistogramAlgorithm.cxx:31
InDetGNNHardScatterSelection::VertexDecoratorAlg::m_mDecor_gnnScore
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_mDecor_gnnScore
Definition
VertexDecoratorAlg.h:92
InDetGNNHardScatterSelection::VertexDecoratorAlg::m_mDecor_photon_deltaPhi
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_mDecor_photon_deltaPhi
Definition
VertexDecoratorAlg.h:78
InDetGNNHardScatterSelection::VertexDecoratorAlg::m_gnnTool
ToolHandle< GNNTool > m_gnnTool
Definition
VertexDecoratorAlg.h:130
InDetGNNHardScatterSelection::VertexDecoratorAlg::m_mDecor_z_skew
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_mDecor_z_skew
Definition
VertexDecoratorAlg.h:74
InDetGNNHardScatterSelection::VertexDecoratorAlg::m_muonLinksKey
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_muonLinksKey
Definition
VertexDecoratorAlg.h:89
InDetGNNHardScatterSelection::VertexDecoratorAlg::m_mDecor_sumPt
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_mDecor_sumPt
Definition
VertexDecoratorAlg.h:64
InDetGNNHardScatterSelection::VertexDecoratorAlg::m_multiPhotonsOutKey
SG::WriteHandleKey< xAOD::CompositeParticleContainer > m_multiPhotonsOutKey
Definition
VertexDecoratorAlg.h:104
InDetGNNHardScatterSelection::VertexDecoratorAlg::m_mDecor_nJets
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_mDecor_nJets
Definition
VertexDecoratorAlg.h:99
InDetGNNHardScatterSelection::VertexDecoratorAlg::m_mDecor_chi2Over_ndf
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_mDecor_chi2Over_ndf
Definition
VertexDecoratorAlg.h:66
InDetGNNHardScatterSelection::VertexDecoratorAlg::m_deltaZKey
SG::ReadDecorHandleKey< xAOD::VertexContainer > m_deltaZKey
Definition
VertexDecoratorAlg.h:110
InDetGNNHardScatterSelection::VertexDecoratorAlg::m_photonLinksKey
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_photonLinksKey
Definition
VertexDecoratorAlg.h:83
InDetGNNHardScatterSelection::VertexDecoratorAlg::m_muonsInKey
SG::ReadHandleKey< xAOD::MuonContainer > m_muonsInKey
Definition
VertexDecoratorAlg.h:55
InDetGNNHardScatterSelection::VertexDecoratorAlg::m_mDecor_weighted_z_asym
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_mDecor_weighted_z_asym
Definition
VertexDecoratorAlg.h:70
InDetGNNHardScatterSelection::VertexDecoratorAlg::m_zCommonKey
SG::ReadDecorHandleKey< xAOD::PhotonContainer > m_zCommonKey
Definition
VertexDecoratorAlg.h:119
InDetGNNHardScatterSelection::VertexDecoratorAlg::m_electronLinksKey
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_electronLinksKey
Definition
VertexDecoratorAlg.h:87
InDetGNNHardScatterSelection::VertexDecoratorAlg::m_eventInKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInKey
Definition
VertexDecoratorAlg.h:51
InDetGNNHardScatterSelection::VertexDecoratorAlg::m_mDecor_ntrk
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_mDecor_ntrk
Definition
VertexDecoratorAlg.h:62
InDetGNNHardScatterSelection::VertexDecoratorAlg::m_mDecor_nElectrons
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_mDecor_nElectrons
Definition
VertexDecoratorAlg.h:95
InDetGNNHardScatterSelection::VertexDecoratorAlg::m_mDecor_actualInterPerXing
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_mDecor_actualInterPerXing
Definition
VertexDecoratorAlg.h:80
InDetGNNHardScatterSelection::VertexDecoratorAlg::initialize
StatusCode initialize() override
Definition
VertexDecoratorAlg.cxx:25
InDetGNNHardScatterSelection::VertexDecoratorAlg::m_trkVtxAssociationTool
ToolHandle< CP::TrackVertexAssociationTool > m_trkVtxAssociationTool
Definition
VertexDecoratorAlg.h:125
InDetGNNHardScatterSelection::VertexDecoratorAlg::m_deltaPhiKey
SG::ReadDecorHandleKey< xAOD::VertexContainer > m_deltaPhiKey
Definition
VertexDecoratorAlg.h:112
InDetGNNHardScatterSelection::VertexDecoratorAlg::m_mDecor_weighted_z_kurt
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_mDecor_weighted_z_kurt
Definition
VertexDecoratorAlg.h:72
InDetGNNHardScatterSelection::VertexDecoratorAlg::execute
StatusCode execute(const EventContext &ctx) override
Execute method.
Definition
VertexDecoratorAlg.cxx:104
InDetGNNHardScatterSelection::VertexDecoratorAlg::m_zCommonErrorKey
SG::ReadDecorHandleKey< xAOD::PhotonContainer > m_zCommonErrorKey
Definition
VertexDecoratorAlg.h:121
InDetGNNHardScatterSelection::VertexDecoratorAlg::m_mDecor_photon_deltaz
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_mDecor_photon_deltaz
Definition
VertexDecoratorAlg.h:76
InDetGNNHardScatterSelection::VertexDecoratorAlg::m_mDecor_nPhotons
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_mDecor_nPhotons
Definition
VertexDecoratorAlg.h:101
InDetGNNHardScatterSelection::VertexDecoratorAlg::m_caloPointingZKey
SG::ReadDecorHandleKey< xAOD::PhotonContainer > m_caloPointingZKey
Definition
VertexDecoratorAlg.h:117
InDetGNNHardScatterSelection::VertexDecoratorAlg::m_multiPhotonLinksKey
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_multiPhotonLinksKey
Definition
VertexDecoratorAlg.h:106
InDetGNNHardScatterSelection::VertexDecoratorAlg::m_mDecor_z_asym
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_mDecor_z_asym
Definition
VertexDecoratorAlg.h:68
InDetGNNHardScatterSelection::VertexDecoratorAlg::m_mDecor_nMuons
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_mDecor_nMuons
Definition
VertexDecoratorAlg.h:97
InDetGNNHardScatterSelection::VertexDecoratorAlg::m_vertexInKey
SG::ReadHandleKey< xAOD::VertexContainer > m_vertexInKey
Definition
VertexDecoratorAlg.h:49
InDetGNNHardScatterSelection::VertexDecoratorAlg::m_photonsInKey
SG::ReadHandleKey< xAOD::PhotonContainer > m_photonsInKey
Definition
VertexDecoratorAlg.h:59
InDetGNNHardScatterSelection::VertexDecoratorAlg::m_jetLinksKey
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_jetLinksKey
Definition
VertexDecoratorAlg.h:85
InDetGNNHardScatterSelection::VertexDecoratorAlg::m_electronsInKey
SG::ReadHandleKey< xAOD::ElectronContainer > m_electronsInKey
Definition
VertexDecoratorAlg.h:53
InDetGNNHardScatterSelection::VertexDecoratorAlg::m_jetsInKey
SG::ReadHandleKey< xAOD::JetContainer > m_jetsInKey
Definition
VertexDecoratorAlg.h:57
InDetGNNHardScatterSelection::VertexDecoratorAlg::VertexDecoratorAlg
VertexDecoratorAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
VertexDecoratorAlg.cxx:19
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
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
InDetGNNHardScatterSelection
Definition
InnerDetector/InDetRecTools/InDetGNNHardScatterSelection/InDetGNNHardScatterSelection/ConstituentsLoader.h:22
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0