|
ATLAS Offline Software
|
Go to the documentation of this file.
19 #include "CLHEP/Units/PhysicalConstants.h"
43 unsigned int n_samples = energies.
size();
45 unsigned int shape[] = {n_samples, 4};
49 for(
unsigned int i=0;
i<n_samples;
i++)
51 pol2Parm[
i][0] = energies[
i];
52 for(
unsigned int j=0;j<3;j++)
60 for(
unsigned int k=0;
k<3;
k++)
63 coefs[
k] = pol2Parm[0][
k+1];
64 else if(
energy > energies[n_samples-1])
65 coefs[
k] = pol2Parm[n_samples-1][
k+1];
71 float phi2 = cluster->
phiBE(2);
73 float mod = coefs[0]+coefs[1]*phi2+coefs[2]*phi2*phi2;
double phiBE(int sampling) const
EMB/EMEC combined barycenter .
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< CxxUtils::Array< 2 > > m_correction
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
Definition of CaloDetDescrManager.
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.
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.
virtual double e() const
Retrieve energy independent of signal state.
Context object for retrieving ToolConstant values.
Polynomial interpolation in a table.
Constant< CxxUtils::Array< 1 > > m_energies