ATLAS Offline Software
DecoratePhotonPointingAlg.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_DECORATEPHOTONPOINTINGALG_H
6 #define PHOTONVERTEXSELECTION_DECORATEPHOTONPOINTINGALG_H
7 
11 #include <AsgTools/ToolHandle.h>
17 
26  public:
27  DecoratePhotonPointingAlg(const std::string& name,
28  ISvcLocator* svcLoc = nullptr);
29 
30  virtual StatusCode initialize() override;
31  StatusCode execute() override;
32 
33  private:
34 
35  //Write decoration handle keys
39 
40  Gaudi::Property<std::string> m_caloPointingZDecorName{this,"caloPointingZDecorName","caloPointingZ",""};
41  Gaudi::Property<std::string> m_zCommonDecorName{this,"zCommonDecorName","zCommon",""};
42  Gaudi::Property<std::string> m_zCommonErrorDecorName{this,"zCommonErrorDecorName","zCommonError",""};
43 
45  this, "PhotonContainerKey", "Photons", "The input Photons container (it can be also Electrons)"};
46 
48  this, "EventInfoKey", "EventInfo", "containerName to read"};
49 
50  ToolHandle<CP::IPhotonPointingTool> m_pointingTool{
51  this, "PhotonPointingTool",
52  "CP::PhotonPointingTool/PhotonPointingTool", ""};
53 
54  ToolHandle<CP::IPhotonVertexSelectionTool> m_photonVtxTool{
55  this, "PhotonVertexSelectionTool",
56  "CP::PhotonVertexSelectionTool/PhotonVertexSelectionTool",
57  "Photon vertex selection tool to use"};
58 };
59 
60 #endif // PHOTONVERTEXSELECTION_DECORATEPHOTONPOINTINGALG_H
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition: StoreGate/StoreGate/WriteDecorHandleKey.h:89
PropertyWrapper.h
DecoratePhotonPointingAlg
An algorithm to decorate photons (also electrons) with pointing variables.
Definition: DecoratePhotonPointingAlg.h:25
DecoratePhotonPointingAlg::m_zCommon
SG::WriteDecorHandleKey< xAOD::EgammaContainer > m_zCommon
Definition: DecoratePhotonPointingAlg.h:37
EgammaContainerFwd.h
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
AnaAlgorithm.h
DecoratePhotonPointingAlg::DecoratePhotonPointingAlg
DecoratePhotonPointingAlg(const std::string &name, ISvcLocator *svcLoc=nullptr)
Definition: DecoratePhotonPointingAlg.cxx:13
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition: AnaAlgorithm.h:73
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
DecoratePhotonPointingAlg::m_zCommonErrorDecorName
Gaudi::Property< std::string > m_zCommonErrorDecorName
Definition: DecoratePhotonPointingAlg.h:42
IPhotonVertexSelectionTool.h
DecoratePhotonPointingAlg::m_photonContainerKey
SG::ReadHandleKey< xAOD::EgammaContainer > m_photonContainerKey
Definition: DecoratePhotonPointingAlg.h:44
DecoratePhotonPointingAlg::m_caloPointingZ
SG::WriteDecorHandleKey< xAOD::EgammaContainer > m_caloPointingZ
Definition: DecoratePhotonPointingAlg.h:36
DecoratePhotonPointingAlg::initialize
virtual StatusCode initialize() override
Definition: DecoratePhotonPointingAlg.cxx:17
DecoratePhotonPointingAlg::m_pointingTool
ToolHandle< CP::IPhotonPointingTool > m_pointingTool
Definition: DecoratePhotonPointingAlg.h:50
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
DecoratePhotonPointingAlg::m_photonVtxTool
ToolHandle< CP::IPhotonVertexSelectionTool > m_photonVtxTool
Definition: DecoratePhotonPointingAlg.h:54
DecoratePhotonPointingAlg::execute
StatusCode execute() override
Definition: DecoratePhotonPointingAlg.cxx:37
EventInfo.h
DecoratePhotonPointingAlg::m_caloPointingZDecorName
Gaudi::Property< std::string > m_caloPointingZDecorName
Definition: DecoratePhotonPointingAlg.h:40
WriteDecorHandleKey.h
DecoratePhotonPointingAlg::m_zCommonError
SG::WriteDecorHandleKey< xAOD::EgammaContainer > m_zCommonError
Definition: DecoratePhotonPointingAlg.h:38
DecoratePhotonPointingAlg::m_zCommonDecorName
Gaudi::Property< std::string > m_zCommonDecorName
Definition: DecoratePhotonPointingAlg.h:41
IPhotonPointingTool.h
ToolHandle.h
DecoratePhotonPointingAlg::m_eventInKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInKey
Definition: DecoratePhotonPointingAlg.h:47