ATLAS Offline Software
Loading...
Searching...
No Matches
PhotonPointingTool.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#ifndef PhotonVertexSelection_PhotonPointingTool_h
6#define PhotonVertexSelection_PhotonPointingTool_h
7
8// Framework includes
10
11// Local includes
13
14// EDM includes
16
17// Data handles
21
22// Forward declarations
23class TH1F;
24
25namespace CP {
26
36
39
40 private:
43
45 this,
46 "EventInfo",
47 "EventInfo",
48 "SG key of xAOD::EventInfo"
49 };
50
51 //Write decoration handle keys
56
57
58 private:
60 float getCorrectedZ(float zPointing, float etas2) const;
61 bool m_isMC{};
63 std::string m_zvertexDecorName;
64 std::string m_errzDecorName;
67 std::string m_ContainerName;
68
69 public:
70 PhotonPointingTool(const std::string &name);
71 virtual ~PhotonPointingTool();
72
75
77 virtual StatusCode initialize();
78
80
83
85 StatusCode updatePointingAuxdata(const xAOD::EgammaContainer &egammas) const ;
86
88 std::pair<float, float> getCaloPointing(const xAOD::Egamma *egamma) const ;
89
91 std::pair<float, float> getConvPointing(const xAOD::Photon *photon) const ;
93
94 }; // class PhotonPointingTool
95
96} // namespace CP
97
98
99#endif // PhotonVertexSelection_PhotonPointingTool_H
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Property holding a SG store/key/clid from which a ReadHandle is made.
Handle class for adding a decoration to an object.
float getCorrectedZ(float zPointing, float etas2) const
std::pair< float, float > getCaloPointing(const xAOD::Egamma *egamma) const
Return calo pointing variables.
SG::WriteDecorHandleKey< xAOD::EgammaContainer > m_errz
SG::WriteDecorHandleKey< xAOD::EgammaContainer > m_HPV_zvertex
PhotonPointingTool(const std::string &name)
StatusCode updatePointingAuxdata(const xAOD::EgammaContainer &egammas) const
Add calo and conversion (HPV) pointing variables.
TH1F * m_zCorrection
Create a proper constructor for Athena.
SG::WriteDecorHandleKey< xAOD::EgammaContainer > m_zvertex
virtual StatusCode initialize()
Function initialising the tool.
SG::ReadHandleKey< xAOD::EventInfo > m_evtInfo
SG::WriteDecorHandleKey< xAOD::EgammaContainer > m_HPV_errz
std::pair< float, float > getConvPointing(const xAOD::Photon *photon) const
Return conversion (HPV) pointing variables.
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Base class for dual-use tools that provide file metadata access.
elec/gamma data class.
Definition egamma.h:58
Select isolated Photons, Electrons and Muons.
TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
Egamma_v1 Egamma
Definition of the current "egamma version".
Definition Egamma.h:17
Photon_v1 Photon
Definition of the current "egamma version".
EgammaContainer_v1 EgammaContainer
Definition of the current "egamma container version".