ATLAS Offline Software
Loading...
Searching...
No Matches
CaloLCOutOfClusterTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef CALOUTILS_CALOLCOUTOFCLUSTERTOOL_H
6#define CALOUTILS_CALOLCOUTOFCLUSTERTOOL_H
20
25#include "GaudiKernel/EventContext.h"
26
27class CaloLCOutOfClusterTool : public extends<AthAlgTool, IClusterCellWeightTool>
28{
29 public:
30
31 using base_class::base_class;
33
34 virtual StatusCode weight(xAOD::CaloCluster* theCluster, const EventContext& ctx) const override;
35 virtual StatusCode initialize() override;
36
37 private:
38
41 SG::ReadCondHandleKey<CaloLocalHadCoeff> m_key{this, "CorrectionKey", "OOCCorrection"};
42
49 Gaudi::Property<bool> m_useEmProbability{this, "UseEmProbability", false};
50
57 Gaudi::Property<bool> m_useHadProbability{this, "UseHadProbability", false};
58
66 Gaudi::Property<std::vector<std::string>> m_invalidSamplingNames{this
67 , "InvalidSamplings"
68 , {"PreSamplerB", "PreSamplerE", "TileGap3"}
69 };
70
76 std::set<int> m_invalidSamplings;
77
80 Gaudi::Property<bool> m_interpolate{this, "Interpolate", false};
81
84 Gaudi::Property<bool> m_updateSamplingVars{this, "UpdateSamplingVars", false};
85
88 Gaudi::Property<std::vector<std::string>> m_interpolateDimensionNames{this
89 , "InterpolateDimensionNames"
90 , {"DIMO_ENER", "DIMO_ETA", "DIMO_LAMBDA"}
91 };
92
95 std::vector<int> m_interpolateDimensions;
96
97};
98
99#endif
100
101
calculates out-of-cluster corrections based on cluster quantities
Gaudi::Property< std::vector< std::string > > m_invalidSamplingNames
vector of names of the calorimeter samplings not to use when applying the out-of-cluster weights.
Gaudi::Property< bool > m_interpolate
interpolate correction coefficients
Gaudi::Property< bool > m_updateSamplingVars
update also sampling variables
std::vector< int > m_interpolateDimensions
actual set of dimension id's to interpolate
virtual StatusCode weight(xAOD::CaloCluster *theCluster, const EventContext &ctx) const override
Gaudi::Property< std::vector< std::string > > m_interpolateDimensionNames
vector of names of dimensions in look-up tables to interpolate
virtual StatusCode initialize() override
Gaudi::Property< bool > m_useHadProbability
look for em-probability moment and apply relative weight only
SG::ReadCondHandleKey< CaloLocalHadCoeff > m_key
name of the key for out-of-cluster weights
virtual ~CaloLCOutOfClusterTool()
Gaudi::Property< bool > m_useEmProbability
look for em-probability moment and apply relative weight only
std::set< int > m_invalidSamplings
actual set of samplings to be ignored for out-of-cluster weights
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.