ATLAS Offline Software
CaloClusterEnergyMLCalibDecorAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef CALOREC_CALOCLUSTERENERGYMLCALIBDECORALG_H
5 #define CALOREC_CALOCLUSTERENERGYMLCALIBDECORALG_H
6 
8 #include "GaudiKernel/ToolHandle.h"
15 // #include "TFile.h"
16 // #include "TTree.h"
17 
26 {
27 public:
28  CaloClusterEnergyMLCalibDecorAlg(const std::string &name, ISvcLocator *pSvcLocator);
29  ~CaloClusterEnergyMLCalibDecorAlg() override = default;
30 
31  StatusCode initialize() override;
32  StatusCode execute(const EventContext &ctx) const override;
33  StatusCode finalize() override;
34 
35 private:
36  ToolHandle<ICaloClusterMLCalibToolLite> m_calibTool{
37  this, "CaloClusterMLCalibToolLite", "CaloClusterMLCalibToolLite"};
38 
39  SG::WriteDecorHandleKey<xAOD::CaloClusterContainer> m_clusterMLCalibDecorKey{this, "ClusterMLCalibratedEnergyKeyName", "CaloCalTopoClusters.clusterE_ML", "Name of the ML calib energy decoration"};
40  SG::WriteDecorHandleKey<xAOD::CaloClusterContainer> m_clusterMLCalibUncDecorKey{this, "ClusterMLCalibratedEnergyUncKeyName", "CaloCalTopoClusters.clusterE_ML_unc", "Name of the ML calib energy uncertainty decoration"};
41  SG::ReadHandleKey<xAOD::EventInfo> m_eventInfoKey{this, "EventInfoContainer", "EventInfo", "Input EventInfo container"};
42  SG::ReadHandleKey<xAOD::VertexContainer> m_verticesKey{this, "VertexContainer", "PrimaryVertices", "Input vertex container"};
43 };
44 
45 #endif // CALOREC_CALOCLUSTERENERGYMLCALIBDECORALG_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
CaloClusterEnergyMLCalibDecorAlg::m_calibTool
ToolHandle< ICaloClusterMLCalibToolLite > m_calibTool
Definition: CaloClusterEnergyMLCalibDecorAlg.h:36
CaloClusterEnergyMLCalibDecorAlg
An algorithm to apply ML-based energy calibration to calorimeter clusters.
Definition: CaloClusterEnergyMLCalibDecorAlg.h:26
CaloClusterEnergyMLCalibDecorAlg::execute
StatusCode execute(const EventContext &ctx) const override
Definition: CaloClusterEnergyMLCalibDecorAlg.cxx:33
CaloClusterEnergyMLCalibDecorAlg::finalize
StatusCode finalize() override
Definition: CaloClusterEnergyMLCalibDecorAlg.cxx:27
CaloClusterEnergyMLCalibDecorAlg::CaloClusterEnergyMLCalibDecorAlg
CaloClusterEnergyMLCalibDecorAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: CaloClusterEnergyMLCalibDecorAlg.cxx:9
CaloClusterEnergyMLCalibDecorAlg::m_clusterMLCalibDecorKey
SG::WriteDecorHandleKey< xAOD::CaloClusterContainer > m_clusterMLCalibDecorKey
Definition: CaloClusterEnergyMLCalibDecorAlg.h:39
SG::ReadHandleKey< xAOD::EventInfo >
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:74
CaloClusterEnergyMLCalibDecorAlg::initialize
StatusCode initialize() override
Definition: CaloClusterEnergyMLCalibDecorAlg.cxx:14
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CaloClusterEnergyMLCalibDecorAlg::~CaloClusterEnergyMLCalibDecorAlg
~CaloClusterEnergyMLCalibDecorAlg() override=default
CaloClusterEnergyMLCalibDecorAlg::m_verticesKey
SG::ReadHandleKey< xAOD::VertexContainer > m_verticesKey
Definition: CaloClusterEnergyMLCalibDecorAlg.h:42
CaloClusterEnergyMLCalibDecorAlg::m_clusterMLCalibUncDecorKey
SG::WriteDecorHandleKey< xAOD::CaloClusterContainer > m_clusterMLCalibUncDecorKey
Definition: CaloClusterEnergyMLCalibDecorAlg.h:40
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
EventInfo.h
VertexContainer.h
ICaloClusterMLCalibToolLite.h
CaloClusterContainer.h
CaloClusterEnergyMLCalibDecorAlg::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Definition: CaloClusterEnergyMLCalibDecorAlg.h:41