Go to the documentation of this file.
12 double* fitresults =
new double[3]{};
15 for (
int i = 0;
i < digi.
size();
i++)
21 if (
adc[1] < 0 ||
adc[2] < 0)
27 double r12 = (
adc[1] != 0) ?
adc[0] /
adc[1] : 99999;
28 double r23 = (
adc[2] != 0) ?
adc[1] /
adc[2] : 99999;
33 if (r23 < ratioCuts_->getR23Low())
44 double aaa =
log(A2 / A1) /
n;
45 double bbb =
w /
n * DeltaT;
46 double ccc =
exp(aaa + bbb);
49 double t0 = (2. - ccc) / (1. - ccc) * DeltaT - 5;
56 double AA1 = A1 / A_1;
62 if (
adc[1] > 2800 &&
adc[2] > 2800)
64 else if (
adc[1] > 2800)
66 else if (
adc[2] > 2800)
96 double mipCalib = (fabs(
cos(*it_ang)) != 0.) ? (*it_mip) / fabs(
cos(*it_ang)) : 0.;
99 LogDebug(
"ESRecHitAnalyticAlgo") <<
"ESRecHitAnalyticAlgo : reconstructed energy " <<
energy <<
" T0 " <<
t0;
103 if (it_status->getStatusCode() == 1) {
const ESIntercalibConstants * mips_
EcalRecHit reconstruct(const ESDataFrame &digi) const
int adc() const
get the ADC sample (singed 16 bits)
uint16_t *__restrict__ uint16_t const *__restrict__ adc
const_iterator find(uint32_t rawId) const
const ESSample & sample(int i) const
Cos< T >::type cos(const T &t)
std::vector< Item >::const_iterator const_iterator
const ESPedestals * peds_
const self & getMap() const
double * EvalAmplitude(const ESDataFrame &digi, double ped) const
const ESRecHitRatioCuts * ratioCuts_
Power< A, B >::type pow(const A &a, const B &b)
void setFlag(int flag)
set the flags (from Flags or ESFlags)
const ESChannelStatus * channelStatus_
const ESDetId & id() const
const ESAngleCorrectionFactors * ang_