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 ESDetId & id() const
EcalRecHit reconstruct(const ESDataFrame &digi) const
const ESIntercalibConstants * mips_
void setFlag(int flag)
set the flags (from Flags or ESFlags)
const_iterator find(uint32_t rawId) const
const ESRecHitRatioCuts * ratioCuts_
int adc() const
get the ADC sample (singed 16 bits)
const ESSample & sample(int i) const
Cos< T >::type cos(const T &t)
const ESPedestals * peds_
const ESChannelStatus * channelStatus_
const ESAngleCorrectionFactors * ang_
std::vector< Item >::const_iterator const_iterator
double * EvalAmplitude(const ESDataFrame &digi, double ped) const
const self & getMap() const
uint16_t *__restrict__ uint16_t const *__restrict__ adc