ATLAS Offline Software
Loading...
Searching...
No Matches
ClusterAtMLScaleTool.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 JETRECTOOLS_CLUSTERATMLSCALETOOL_H
6#define JETRECTOOLS_CLUSTERATMLSCALETOOL_H
7
15
16
21#include "AsgTools/AsgTool.h"
22#include <string>
24
25
28
29 public:
30
31 ClusterAtMLScaleTool(const std::string& name);
33
34 // Check that the configuration is reasonable
35 virtual StatusCode initialize() override;
36
37 private:
38 // Property to configure the ML energy decoration key
39
41 this,
42 "ClusterMLCorrectedEnergyDecorationKey",
43 "CaloCalTopoClusters.clusterE_ML",
44 "Decoration storing ML-corrected cluster energy"
45 };
46
47 // Property to configure the ML energy decoration type
48 Gaudi::Property<std::string> m_clusterMLCorrectedEnergyDecorationType{
49 this,
50 "ClusterMLCorrectedEnergyDecorationType",
51 "double",
52 "Type of the ML-corrected cluster energy decoration"
53 };
54
55 // Implement the correction
56 virtual StatusCode process_impl(xAOD::IParticleContainer* cont) const override;
58
59
60 template <typename T>
61 StatusCode setClustersToMLScaleImpl(
63 const EventContext& ctx) const;
64
65};
66
67
68#endif
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
StatusCode setClustersToMLScale(xAOD::CaloClusterContainer &cont) const
SG::ReadDecorHandleKey< xAOD::CaloClusterContainer > m_clusterMLCorrectedEnergyKey
Gaudi::Property< std::string > m_clusterMLCorrectedEnergyDecorationType
ClusterAtMLScaleTool(const std::string &name)
virtual StatusCode process_impl(xAOD::IParticleContainer *cont) const override
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
StatusCode setClustersToMLScaleImpl(xAOD::CaloClusterContainer &cont, const EventContext &ctx) const
JetConstituentModifierBase(const std::string &name)
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
CaloClusterContainer_v1 CaloClusterContainer
Define the latest version of the calorimeter cluster container.
DataVector< IParticle > IParticleContainer
Simple convenience declaration of IParticleContainer.