1 #ifndef RecoLocalCalo_EcalRecAlgos_EcalUncalibRecHitMaxSampleAlgo_HH 2 #define RecoLocalCalo_EcalRecAlgos_EcalUncalibRecHitMaxSampleAlgo_HH 19 const double* pedestals,
20 const double* gainRatios,
33 const double* pedestals,
34 const double* gainRatios,
43 for (int16_t iSample = 0; iSample < C::MAXSAMPLES; iSample++) {
44 gainId_ = dataFrame.sample(iSample).gainId();
52 sampleAdc_ = dataFrame.sample(iSample).adc();
57 sampleAdc_ = 200 + (dataFrame.sample(iSample).adc() - 200) * 2;
59 sampleAdc_ = 200 + (dataFrame.sample(iSample).adc() - 200) * 12;
63 if (sampleAdc_ > amplitude_) {
64 amplitude_ = sampleAdc_;
68 if (sampleAdc_ < pedestal_)
69 pedestal_ = sampleAdc_;
74 static_cast<double>(amplitude_ - pedestal_),
75 static_cast<double>(pedestal_),
76 static_cast<double>(jitter_ - 5),
math::Matrix< 10, 10 >::type EcalChi2WeightMatrix
math::Matrix< 3, 10 >::type EcalWeightMatrix
~EcalUncalibRecHitMaxSampleAlgo() override
EcalUncalibratedRecHit makeRecHit(const C &dataFrame, const double *pedestals, const double *gainRatios, const EcalWeightSet::EcalWeightMatrix **weights, const EcalWeightSet::EcalChi2WeightMatrix **chi2Matrix) override
compute rechits