37#ifndef CALOCLUSTERCORRECTION_CALOSWETAMOD_V2_H
38#define CALOCLUSTERCORRECTION_CALOSWETAMOD_V2_H
122 :
public TableBuilder
130 virtual float calculate (
int energy_ndx,
bool& good)
const;
142 {
this,
"correction",
"Tabulated arrays of function parameters." };
147 {
this,
"rfac",
"Correction factors for crude containment correction used internally for the energy interpolation." };
152 {
this,
"rfac_degree",
"Interpolation degree for crude containment correction used internally for the energy interpolation." };
157 {
this,
"energies",
"Table of energies at which the correction was tabulated." };
161 {
this,
"energy_degree",
"Degree of the polynomial interpolation in energy." };
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
Simple multidimensional arrays.
CaloClusterCorrectionCommon(const std::string &type, const std::string &name, const IInterface *parent)
Inherit constructor.
This class groups all DetDescr information related to a CaloCell.
const CxxUtils::Array< 2 > m_correction
Correction parameters.
Builder(const CxxUtils::Array< 2 > &corr, float etamod)
Constructor.
virtual float calculate(int energy_ndx, bool &good) const
Calculate the correction for tabulated energy ENERGY_NDX.
float m_etamod
The eta offset within the cell.
CaloClusterCorrectionCommon(const std::string &type, const std::string &name, const IInterface *parent)
Inherit constructor.
Constant< CxxUtils::Array< 2 > > m_rfac
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 override
Virtual function for the correction-specific code.
Constant< int > m_energy_degree
Calibration constant: degree of the polynomial interpolation in energy.
Constant< CxxUtils::Array< 1 > > m_energies
Calibration constant: table of energies at which the correction was tabulated.
Constant< int > m_rfac_degree
Constant< CxxUtils::Array< 2 > > m_correction
Calibration constant: tabulated arrays of function parameters.
Read-only multidimensional array.
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.