1 #ifndef RecoLocalCalo_EcalRecAlgos_EcalUncalibRecHitMaxSampleAlgo_HH
2 #define RecoLocalCalo_EcalRecAlgos_EcalUncalibRecHitMaxSampleAlgo_HH
22 const double* gainRatios,
35 const double* gainRatios,
45 for(int16_t iSample = 0; iSample < C::MAXSAMPLES; iSample++) {
47 gainId_ = dataFrame.sample(iSample).gainId();
56 sampleAdc_ = dataFrame.sample(iSample).adc();
62 sampleAdc_ = 200 + (dataFrame.sample(iSample).adc() - 200) * 2 ;
65 sampleAdc_ = 200 + (dataFrame.sample(iSample).adc() - 200) * 12 ;
69 if( sampleAdc_ >amplitude_ ) {
70 amplitude_ = sampleAdc_;
74 if (sampleAdc_<pedestal_) pedestal_ = sampleAdc_;
79 return EcalUncalibratedRecHit( dataFrame.id(),
static_cast<double>(amplitude_-pedestal_) , static_cast<double>(pedestal_),
static_cast<double>(jitter_ - 5), chi2_, flags );
virtual EcalUncalibratedRecHit makeRecHit(const C &dataFrame, const double *pedestals, const double *gainRatios, const EcalWeightSet::EcalWeightMatrix **weights, const EcalWeightSet::EcalChi2WeightMatrix **chi2Matrix)
compute rechits
std::vector< Variable::Flags > flags
math::Matrix< 10, 10 >::type EcalChi2WeightMatrix
math::Matrix< 3, 10 >::type EcalWeightMatrix