ATLAS Offline Software
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 
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 
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 
50  this,
51  "PhotonContainer",
52  "Photons",
53  "SG key of input photon container"
54  };
55 
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
68  "eta",
70  "" };
72  "phi",
74  "" };
76  "sumPt",
78  "" };
80  "sumPt2",
82  "" };
83  };
84 }
85 
86 #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
IAugmentationTool.h
DerivationFramework::PhotonVertexSelectionWrapper::m_vertexContainer
SG::ReadHandleKey< xAOD::VertexContainer > m_vertexContainer
Input primary vertex container.
Definition: PhotonVertexSelectionWrapper.h:57
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:66
DerivationFramework::PhotonVertexSelectionWrapper::m_photonPointingTool
ToolHandle< CP::IPhotonPointingTool > m_photonPointingTool
PhotonPointingTool.
Definition: PhotonVertexSelectionWrapper.h:41
DerivationFramework::PhotonVertexSelectionWrapper::addBranches
virtual StatusCode addBranches(const EventContext &ctx) const override final
Definition: PhotonVertexSelectionWrapper.cxx:33
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
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
DerivationFramework::PhotonVertexSelectionWrapper::m_vtxSumPt2
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_vtxSumPt2
Definition: PhotonVertexSelectionWrapper.h:79
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:75
DerivationFramework::PhotonVertexSelectionWrapper::m_vtxPhi
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_vtxPhi
Definition: PhotonVertexSelectionWrapper.h:71
DerivationFramework::PhotonVertexSelectionWrapper::m_photonContainer
SG::ReadHandleKey< xAOD::PhotonContainer > m_photonContainer
Input photon container.
Definition: PhotonVertexSelectionWrapper.h:49
DerivationFramework::PhotonVertexSelectionWrapper::initialize
virtual StatusCode initialize() override final
Definition: PhotonVertexSelectionWrapper.cxx:12
VertexContainer.h
DerivationFramework::PhotonVertexSelectionWrapper::m_vtxEta
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_vtxEta
Definition: PhotonVertexSelectionWrapper.h:67
IPhotonPointingTool.h
ReadHandle.h
Handle class for reading from StoreGate.
PhotonContainer.h