|
ATLAS Offline Software
|
Go to the documentation of this file.
68 the_aeta = std::abs (adj_eta);
70 the_aeta = std::abs (eta);
72 const float etamax =
m_etamax (myctx);
73 if (the_aeta >= etamax)
return;
76 if (the_aeta < eta_start_crack)
78 else if (the_aeta > eta_end_crack)
88 unsigned int shape[] = {2};
90 interp_barriers[0] = eta_start_crack;
91 interp_barriers[1] = eta_end_crack;
94 int ibin =
static_cast<int> (the_aeta / etamax *
correction.size());
97 for (
int i=2;
i<4;
i++)
119 for (
int sampling=0; sampling<4; ++sampling)
120 total0 += cluster->
eSample (samps[si][sampling]);
121 e_offset = cluster->
e() - total0;
124 cluster->setEnergy (samps[si][0], cluster->
eSample (samps[si][0]) *
pars[0]);
125 cluster->setEnergy (samps[si][3], cluster->
eSample (samps[si][3]) *
pars[1]);
127 double total = e_offset;
128 for (
int sampling=0; sampling<4; ++sampling)
129 total += cluster->
eSample (samps[si][sampling]);
double eSample(sampling_type sampling) const
Retrieve energy in a given sampling.
Scalar eta() const
pseudorapidity method
Constant< float > m_etamax
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
Constant< float > m_eta_end_crack
Principal data class for CaloCell clusters.
Constant< float > m_eta_start_crack
virtual void setE(double e)
Set energy.
Constant< CxxUtils::Array< 2 > > m_correction
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.
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< bool > m_preserve_offset
Constant< bool > m_use_raw_eta