ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
DerivationFramework
DerivationFrameworkEGamma
DerivationFrameworkEGamma
PhotonVertexSelectionWrapper.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_PHOTONVERTEXSELECTIONWRAPPER_H
6
#define DERIVATIONFRAMEWORK_PHOTONVERTEXSELECTIONWRAPPER_H
7
8
#include <string>
9
10
#include "
AthenaBaseComps/AthAlgTool.h
"
11
#include "
DerivationFrameworkInterfaces/IAugmentationTool.h
"
12
13
#include "GaudiKernel/ToolHandle.h"
14
#include "
PhotonVertexSelection/IPhotonPointingTool.h
"
15
16
#include "
StoreGate/ReadHandle.h
"
17
#include "
StoreGate/ReadHandleKey.h
"
18
#include "
StoreGate/WriteDecorHandle.h
"
19
#include "
StoreGate/WriteHandleKey.h
"
20
#include "
xAODEgamma/PhotonContainer.h
"
21
#include "
xAODTracking/VertexContainer.h
"
22
23
// namespace CP
24
//{
25
// class IPhotonPointingTool;
26
//}
27
28
namespace
DerivationFramework
{
29
30
class
PhotonVertexSelectionWrapper
:
public
extends<AthAlgTool, IAugmentationTool>
31
{
32
public
:
33
34
using
base_class::base_class;
35
36
virtual
StatusCode
initialize
()
override
final
;
37
virtual
StatusCode
addBranches
(
const
EventContext& ctx)
const
override
final
;
38
39
private
:
41
ToolHandle<CP::IPhotonPointingTool>
m_photonPointingTool
{
42
this
,
43
"PhotonPointingTool"
,
44
""
,
45
"Handle to the photon pointing tool"
46
};
47
49
SG::ReadHandleKey<xAOD::PhotonContainer>
m_photonContainer
{
50
this
,
51
"PhotonContainer"
,
52
"Photons"
,
53
"SG key of input photon container"
54
};
55
57
SG::ReadHandleKey<xAOD::VertexContainer>
m_vertexContainer
{
58
this
,
59
"VertexContainer"
,
60
"PrimaryVertices"
,
61
"SG key of input vertex container"
62
};
63
64
// Write decoration handle keys
65
// these are not really configurable
66
SG::WriteDecorHandleKey<xAOD::VertexContainer>
m_vtxPt
{
this
,
"pt"
,
m_vertexContainer
,
""
,
""
};
67
SG::WriteDecorHandleKey<xAOD::VertexContainer>
m_vtxEta
{
this
,
68
"eta"
,
69
m_vertexContainer
,
""
,
70
""
};
71
SG::WriteDecorHandleKey<xAOD::VertexContainer>
m_vtxPhi
{
this
,
72
"phi"
,
73
m_vertexContainer
,
""
,
74
""
};
75
SG::WriteDecorHandleKey<xAOD::VertexContainer>
m_vtxSumPt
{
this
,
76
"sumPt"
,
77
m_vertexContainer
,
""
,
78
""
};
79
SG::WriteDecorHandleKey<xAOD::VertexContainer>
m_vtxSumPt2
{
this
,
80
"sumPt2"
,
81
m_vertexContainer
,
""
,
82
""
};
83
};
84
}
85
86
#endif
// DERIVATIONFRAMEWORK_PHOTONVERTEXSELECTIONWRAPPER_H
AthAlgTool.h
PhotonContainer.h
IAugmentationTool.h
IPhotonPointingTool.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.
VertexContainer.h
DerivationFramework::PhotonVertexSelectionWrapper
Definition
PhotonVertexSelectionWrapper.h:31
DerivationFramework::PhotonVertexSelectionWrapper::m_vtxSumPt
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_vtxSumPt
Definition
PhotonVertexSelectionWrapper.h:75
DerivationFramework::PhotonVertexSelectionWrapper::m_vtxPhi
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_vtxPhi
Definition
PhotonVertexSelectionWrapper.h:71
DerivationFramework::PhotonVertexSelectionWrapper::m_photonPointingTool
ToolHandle< CP::IPhotonPointingTool > m_photonPointingTool
PhotonPointingTool.
Definition
PhotonVertexSelectionWrapper.h:41
DerivationFramework::PhotonVertexSelectionWrapper::m_vtxSumPt2
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_vtxSumPt2
Definition
PhotonVertexSelectionWrapper.h:79
DerivationFramework::PhotonVertexSelectionWrapper::m_photonContainer
SG::ReadHandleKey< xAOD::PhotonContainer > m_photonContainer
Input photon container.
Definition
PhotonVertexSelectionWrapper.h:49
DerivationFramework::PhotonVertexSelectionWrapper::m_vertexContainer
SG::ReadHandleKey< xAOD::VertexContainer > m_vertexContainer
Input primary vertex container.
Definition
PhotonVertexSelectionWrapper.h:57
DerivationFramework::PhotonVertexSelectionWrapper::m_vtxEta
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_vtxEta
Definition
PhotonVertexSelectionWrapper.h:67
DerivationFramework::PhotonVertexSelectionWrapper::initialize
virtual StatusCode initialize() override final
Definition
PhotonVertexSelectionWrapper.cxx:12
DerivationFramework::PhotonVertexSelectionWrapper::m_vtxPt
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_vtxPt
Definition
PhotonVertexSelectionWrapper.h:66
DerivationFramework::PhotonVertexSelectionWrapper::addBranches
virtual StatusCode addBranches(const EventContext &ctx) const override final
Definition
PhotonVertexSelectionWrapper.cxx:33
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