ATLAS Offline Software
PhotonVertexSelectionWrapper.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 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 
12 
13 #include "GaudiKernel/ToolHandle.h"
15 
16 #include "StoreGate/ReadHandle.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  PhotonVertexSelectionWrapper(const std::string& t,
34  const std::string& n,
35  const IInterface* p);
36 
37  StatusCode initialize() override final;
38  virtual StatusCode addBranches() const override final;
39 
40 private:
42  ToolHandle<CP::IPhotonPointingTool> m_photonPointingTool{
43  this,
44  "PhotonPointingTool",
45  "",
46  "Handle to the photon pointing tool"
47  };
48 
50  std::string m_decPrefix;
51 
54  this,
55  "PhotonContainer",
56  "Photons",
57  "SG key of input photon container"
58  };
59 
62  this,
63  "VertexContainer",
64  "PrimaryVertices",
65  "SG key of input vertex container"
66  };
67 
68  // Write decoration handle keys
69  // these are not really configurable
72  "eta",
73  "",
74  "" };
76  "phi",
77  "",
78  "" };
80  "sumPt",
81  "",
82  "" };
84  "sumPt2",
85  "",
86  "" };
87 };
88 }
89 
90 #endif // DERIVATIONFRAMEWORK_PHOTONVERTEXSELECTIONWRAPPER_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition: StoreGate/StoreGate/WriteDecorHandleKey.h:89
DerivationFramework::PhotonVertexSelectionWrapper
Definition: PhotonVertexSelectionWrapper.h:31
DerivationFramework::PhotonVertexSelectionWrapper::PhotonVertexSelectionWrapper
PhotonVertexSelectionWrapper(const std::string &t, const std::string &n, const IInterface *p)
Definition: PhotonVertexSelectionWrapper.cxx:11
IAugmentationTool.h
DerivationFramework::PhotonVertexSelectionWrapper::m_vertexContainer
SG::ReadHandleKey< xAOD::VertexContainer > m_vertexContainer
Input primary vertex container.
Definition: PhotonVertexSelectionWrapper.h:61
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
DerivationFramework::PhotonVertexSelectionWrapper::m_vtxPt
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_vtxPt
Definition: PhotonVertexSelectionWrapper.h:70
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:209
DerivationFramework::PhotonVertexSelectionWrapper::m_photonPointingTool
ToolHandle< CP::IPhotonPointingTool > m_photonPointingTool
PhotonPointingTool.
Definition: PhotonVertexSelectionWrapper.h:42
beamspotman.n
n
Definition: beamspotman.py:729
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
WriteDecorHandle.h
Handle class for adding a decoration to an object.
DerivationFramework::PhotonVertexSelectionWrapper::m_decPrefix
std::string m_decPrefix
Prefix for the decorations.
Definition: PhotonVertexSelectionWrapper.h:50
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
DerivationFramework::PhotonVertexSelectionWrapper::m_vtxSumPt2
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_vtxSumPt2
Definition: PhotonVertexSelectionWrapper.h:83
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
DerivationFramework::PhotonVertexSelectionWrapper::m_vtxSumPt
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_vtxSumPt
Definition: PhotonVertexSelectionWrapper.h:79
DerivationFramework::PhotonVertexSelectionWrapper::m_vtxPhi
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_vtxPhi
Definition: PhotonVertexSelectionWrapper.h:75
DerivationFramework::PhotonVertexSelectionWrapper::m_photonContainer
SG::ReadHandleKey< xAOD::PhotonContainer > m_photonContainer
Input photon container.
Definition: PhotonVertexSelectionWrapper.h:53
DerivationFramework::PhotonVertexSelectionWrapper::initialize
StatusCode initialize() override final
Definition: PhotonVertexSelectionWrapper.cxx:22
VertexContainer.h
DerivationFramework::PhotonVertexSelectionWrapper::m_vtxEta
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_vtxEta
Definition: PhotonVertexSelectionWrapper.h:71
IPhotonPointingTool.h
DerivationFramework::PhotonVertexSelectionWrapper::addBranches
virtual StatusCode addBranches() const override final
Definition: PhotonVertexSelectionWrapper.cxx:52
ReadHandle.h
Handle class for reading from StoreGate.
PhotonContainer.h