ATLAS Offline Software
Loading...
Searching...
No Matches
CaloClusterMLCalibAlgLite.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 CALOREC_CALOCLUSTMLCALIBALG_H
6#define CALOREC_CALOCLUSTMLCALIBALG_H
7
9#include "GaudiKernel/ToolHandle.h"
16
23
25public:
26 CaloClusterMLCalibAlgLite(const std::string& name, ISvcLocator* pSvcLocator);
27 ~CaloClusterMLCalibAlgLite() override = default;
28
29 StatusCode initialize() override;
30 StatusCode execute(const EventContext& ctx) const override;
31 StatusCode finalize() override;
32
33private:
34
35 ToolHandle<ICaloClusterMLCalibToolLite> m_calibTool{
36 this, "CaloClusterMLCalibToolLite", "CaloClusterMLCalibToolLite"
37 };
38
39
40 SG::ReadHandleKey<xAOD::EventInfo> m_eventInfoKey{this, "EventInfoContainer", "EventInfo", "Input EventInfo container"};
41 SG::ReadHandleKey<xAOD::VertexContainer> m_verticesKey{this, "VertexContainer", "PrimaryVertices", "Input vertex container"};
42 SG::ReadHandleKey<xAOD::CaloClusterContainer> m_clusterContainerKey { this, "ClusterContainer" , "CaloCalTopoClusters", "Cluster container key" };
43
44 SG::WriteDecorHandleKey<xAOD::CaloClusterContainer> m_clusterMLCalibEnergyDecorKey{this,"ClusterMLCalibratedEnergyKeyName","","ML calibrated cluster energy decoration"};
45 SG::WriteDecorHandleKey<xAOD::CaloClusterContainer> m_clusterMLCalibEnergyUncDecorKey{this,"ClusterMLCalibratedEnergyUncKeyName","","ML calibrated cluster energy uncertainty decoration"};
46
47 Gaudi::Property<std::vector<float>> m_rapidityRange { this, "RapidityRange", { -2.5, 2.5}, "rapidity range of validity of the ML-based calibration" };
48 // Minimum cluster energy in MeV above which ML calibration will be applied.
49 Gaudi::Property<double> m_minClusterEnergy { this, "MinClusterEnergy", 300.0, "Minimum cluster energy (MeV) to apply ML calibration" };
50};
51
52#endif // CALOREC_CALOCLUSTERMLCALIBALG_H
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
An algorithm that can be simultaneously executed in multiple threads.
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
CaloClusterMLCalibAlgLite(const std::string &name, ISvcLocator *pSvcLocator)
SG::WriteDecorHandleKey< xAOD::CaloClusterContainer > m_clusterMLCalibEnergyUncDecorKey
Gaudi::Property< double > m_minClusterEnergy
SG::WriteDecorHandleKey< xAOD::CaloClusterContainer > m_clusterMLCalibEnergyDecorKey
SG::ReadHandleKey< xAOD::VertexContainer > m_verticesKey
Gaudi::Property< std::vector< float > > m_rapidityRange
StatusCode execute(const EventContext &ctx) const override
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_clusterContainerKey
ToolHandle< ICaloClusterMLCalibToolLite > m_calibTool
~CaloClusterMLCalibAlgLite() override=default
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.