|
ATLAS Offline Software
|
Go to the documentation of this file.
82 the_aeta = std::abs (adj_eta);
84 the_aeta = std::abs (
eta);
93 unsigned int n_energies = energies.
size();
94 unsigned int shape[] = {n_energies, 2};
97 for (
unsigned int i=0;
i<n_energies;
i++) {
98 offstab[
i][0] = energies[
i];
106 float energy = cluster->
e() * offstab[n_energies/2][1];
110 if (
energy <= offstab[0][0])
111 corr = offstab[0][1];
112 else if (
energy >= offstab[n_energies-1][0])
113 corr = offstab[n_energies-1][1];
Constant< float > m_etamax
Calibration constant: maximum eta for which this correction is defined.
Scalar eta() const
pseudorapidity method
Constant< bool > m_use_raw_eta
Calibration constant: If true, tabulated values are in terms of raw (local) eta.
unsigned int size(unsigned int dim=0) const
Return the size of the array along one dimension.
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
virtual void setenergy(xAOD::CaloCluster *cluster, float energy) const
Constant< int > m_degree
Calibration constant: degree of the polynomial interpolation.
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
EM calorimeter containment correction.
Constant< int > m_energy_degree
Calibration constant: degree of the polynomial interpolation in energy.
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.
Principal data class for CaloCell clusters.
Constant< CxxUtils::Array< 1 > > m_energies
Calibration constant: table of energies at which the correction was tabulated.
float interpolate(const CaloRec::Array< 2 > &a, float x, unsigned int degree, unsigned int ycol=1, const CaloRec::Array< 1 > ®ions=CaloRec::Array< 1 >(), int n_points=-1, bool fixZero=false)
Polynomial interpolation in a table.
Constant< CxxUtils::Array< 2 > > m_correction
Calibration constant: tabulated arrays of function parameters.
virtual double e() const
Retrieve energy independent of signal state.
Context object for retrieving ToolConstant values.
Polynomial interpolation in a table.