ATLAS Offline Software
NeutralPFOClusterMLCorrectionTool.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 NeutralPFOClusterMLCorrectionTool_H
6 #define NeutralPFOClusterMLCorrectionTool_H
7 
16 
18 
20 #include "xAODPFlow/FlowElement.h"
22 #include "AthLinks/ElementLink.h"
25 
26 class NeutralPFOClusterMLCorrectionTool final : public extends<AthAlgTool, IPFOContainerCorrectionTool>
27 {
28 public:
29  NeutralPFOClusterMLCorrectionTool(const std::string &type, const std::string &name, const IInterface *parent);
31 
32  virtual StatusCode initialize() override;
33  virtual void correctContainer(xAOD::FlowElementContainer& pfos) const override;
34 
35 private:
36  // Property to configure the ML energy decoration key
37  Gaudi::Property<std::string> m_clusterMLCorrectedEnergyKey{this, "ClusterMLCorrectedEnergyDecorationKey", "clusterE_ML",
38  "Name of the decoration storing the ML-corrected cluster energy"};
39 
41  const xAOD::CaloCluster* getLinkedCluster(const xAOD::FlowElement &pfo) const;
42 };
43 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
FlowElementContainer.h
NeutralPFOClusterMLCorrectionTool::~NeutralPFOClusterMLCorrectionTool
virtual ~NeutralPFOClusterMLCorrectionTool()=default
NeutralPFOClusterMLCorrectionTool::m_clusterMLCorrectedEnergyKey
Gaudi::Property< std::string > m_clusterMLCorrectedEnergyKey
Definition: NeutralPFOClusterMLCorrectionTool.h:37
CaloClusterListBadChannel.cls
cls
Definition: CaloClusterListBadChannel.py:8
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42
xAOD::CaloCluster_v1
Description of a calorimeter cluster.
Definition: CaloCluster_v1.h:62
FlowElement.h
CaloCluster.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
IPFOContainerCorrectionTool.h
DataVector
Derived DataVector<T>.
Definition: DataVector.h:795
columnar::final
CM final
Definition: ColumnAccessor.h:106
NeutralPFOClusterMLCorrectionTool::initialize
virtual StatusCode initialize() override
Definition: NeutralPFOClusterMLCorrectionTool.cxx:10
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
NeutralPFOClusterMLCorrectionTool::scaleEnergyToAlternativeSignalState
void scaleEnergyToAlternativeSignalState(xAOD::FlowElement &pfo, const xAOD::CaloCluster &cls) const
Definition: NeutralPFOClusterMLCorrectionTool.cxx:32
NeutralPFOClusterMLCorrectionTool::getLinkedCluster
const xAOD::CaloCluster * getLinkedCluster(const xAOD::FlowElement &pfo) const
Definition: NeutralPFOClusterMLCorrectionTool.cxx:58
NeutralPFOClusterMLCorrectionTool::correctContainer
virtual void correctContainer(xAOD::FlowElementContainer &pfos) const override
Definition: NeutralPFOClusterMLCorrectionTool.cxx:15
NeutralPFOClusterMLCorrectionTool::NeutralPFOClusterMLCorrectionTool
NeutralPFOClusterMLCorrectionTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: NeutralPFOClusterMLCorrectionTool.cxx:7
NeutralPFOClusterMLCorrectionTool
Definition: NeutralPFOClusterMLCorrectionTool.h:27
xAOD::FlowElement_v1
A detector object made of other lower level object(s)
Definition: FlowElement_v1.h:25