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 
31  : public AthAlgTool
32  , public IAugmentationTool
33 {
34 public:
35  PhotonVertexSelectionWrapper(const std::string& t,
36  const std::string& n,
37  const IInterface* p);
38 
39  StatusCode initialize() override final;
40  virtual StatusCode addBranches() const override final;
41 
42 private:
44  ToolHandle<CP::IPhotonPointingTool> m_photonPointingTool{
45  this,
46  "PhotonPointingTool",
47  "",
48  "Handle to the photon pointing tool"
49  };
50 
52  std::string m_decPrefix;
53 
56  this,
57  "PhotonContainer",
58  "Photons",
59  "SG key of input photon container"
60  };
61 
64  this,
65  "VertexContainer",
66  "PrimaryVertices",
67  "SG key of input vertex container"
68  };
69 
70  // Write decoration handle keys
71  // these are not really configurable
74  "eta",
75  "",
76  "" };
78  "phi",
79  "",
80  "" };
82  "sumPt",
83  "",
84  "" };
86  "sumPt2",
87  "",
88  "" };
89 };
90 }
91 
92 #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:33
DerivationFramework::PhotonVertexSelectionWrapper::PhotonVertexSelectionWrapper
PhotonVertexSelectionWrapper(const std::string &t, const std::string &n, const IInterface *p)
Definition: PhotonVertexSelectionWrapper.cxx:11
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
IAugmentationTool.h
DerivationFramework::PhotonVertexSelectionWrapper::m_vertexContainer
SG::ReadHandleKey< xAOD::VertexContainer > m_vertexContainer
Input primary vertex container.
Definition: PhotonVertexSelectionWrapper.h:63
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::IAugmentationTool
Definition: IAugmentationTool.h:24
DerivationFramework::PhotonVertexSelectionWrapper::m_vtxPt
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_vtxPt
Definition: PhotonVertexSelectionWrapper.h:72
DerivationFramework::PhotonVertexSelectionWrapper::m_photonPointingTool
ToolHandle< CP::IPhotonPointingTool > m_photonPointingTool
PhotonPointingTool.
Definition: PhotonVertexSelectionWrapper.h:44
beamspotman.n
n
Definition: beamspotman.py:731
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:52
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
DerivationFramework::PhotonVertexSelectionWrapper::m_vtxSumPt2
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_vtxSumPt2
Definition: PhotonVertexSelectionWrapper.h:85
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:81
DerivationFramework::PhotonVertexSelectionWrapper::m_vtxPhi
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_vtxPhi
Definition: PhotonVertexSelectionWrapper.h:77
DerivationFramework::PhotonVertexSelectionWrapper::m_photonContainer
SG::ReadHandleKey< xAOD::PhotonContainer > m_photonContainer
Input photon container.
Definition: PhotonVertexSelectionWrapper.h:55
DerivationFramework::PhotonVertexSelectionWrapper::initialize
StatusCode initialize() override final
Definition: PhotonVertexSelectionWrapper.cxx:23
VertexContainer.h
DerivationFramework::PhotonVertexSelectionWrapper::m_vtxEta
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_vtxEta
Definition: PhotonVertexSelectionWrapper.h:73
IPhotonPointingTool.h
DerivationFramework::PhotonVertexSelectionWrapper::addBranches
virtual StatusCode addBranches() const override final
Pass the thinning service
Definition: PhotonVertexSelectionWrapper.cxx:53
ReadHandle.h
Handle class for reading from StoreGate.
AthAlgTool
Definition: AthAlgTool.h:26
PhotonContainer.h