|
ATLAS Offline Software
|
Go to the documentation of this file.
11 #ifndef CALOCLUSTERCORRECTIONCOMMON_H
12 #define CALOCLUSTERCORRECTIONCOMMON_H
17 #include "GaudiKernel/EventContext.h"
47 const std::string&
name,
162 {
this,
"region",
"Calorimeter region" };
169 #endif // not CALOCLUSTERCORRECTIONCOMMON_H
const CaloClusterCorr::DDHelper & ddhelper(const CaloDetDescrManager *dd_man) const
Retrieve the detector description helper, creating it if needed.
Scalar phi() const
phi method
Scalar eta() const
pseudorapidity method
Cached pointer with atomic update.
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
virtual void makeCorrection(const Context &myctx, xAOD::CaloCluster *cluster) const override
Perform the correction.
CxxUtils::CachedUniquePtr< const CaloClusterCorr::DDHelper > m_ddhelper
Helper for detector description lookup.
Helper, used to calculate the values of the energy interpolation table.
Description of a calorimeter cluster.
CaloClusterCorrectionCommon(const std::string &type, const std::string &name, const IInterface *parent)
Inherit constructor.
Cached unique_ptr with atomic update.
Read-only multidimensional array.
virtual void makeTheCorrection(const Context &myctx, xAOD::CaloCluster *cluster, const CaloDetDescrElement *elt, float eta, float adj_eta, float phi, float adj_phi, CaloSampling::CaloSample samp) const =0
Virtual function for the correction-specific code.
static float energy_interpolation(float energy, const TableBuilder &builder, const CaloRec::Array< 1 > &energies, int energy_degree)
Many of the corrections use the same method for doing the final interpolation in energy.
This class provides the client interface for accessing the detector description information common to...
virtual float calculate(int energy_ndx, bool &good) const =0
Calculate the correction for tabulated energy energy_ndx.
Context object for retrieving ToolConstant values.
virtual ~CaloClusterCorrectionCommon()
Destructor.
Code common to cluster corrections.
Constant< int > m_region
Calibration constant: The calorimeter region for which this correction is intended.