50 LogDebug(
"EcalUncalibRecHitDebug") <<
"fetching gainRatios....";
52 LogDebug(
"EcalUncalibRecHitDebug") <<
"done." ;
55 LogDebug(
"EcalUncalibRecHitDebug") <<
"fetching pedestals....";
57 LogDebug(
"EcalUncalibRecHitDebug") <<
"done." ;
80 pedIter = pedMap.find(
detid );
81 if( pedIter != pedMap.end() ) {
84 edm::LogError(
"EcalUncalibRecHitWorkerAnalFit") <<
"error!! could not find pedestals for channel: ";
90 edm::LogError(
"EcalUncalibRecHitWorkerAnalFit") <<
"\n no uncalib rechit will be made for this digi!";
94 pedVec[0] = aped.mean_x12;
95 pedVec[1] = aped.mean_x6;
96 pedVec[2] = aped.mean_x1;
101 gainIter = gainMap.find(
detid );
102 if( gainIter != gainMap.end() ) {
105 edm::LogError(
"EcalUncalibRecHitWorkerAnalFit") <<
"error!! could not find gain ratios for channel: ";
111 edm::LogError(
"EcalUncalibRecHitWorkerAnalFit") <<
"\n no uncalib rechit will be made for this digi!";
114 double gainRatios[3];
116 gainRatios[1] = aGain.gain12Over6();
117 gainRatios[2] = aGain.gain6Over1()*aGain.gain12Over6();
123 LogDebug(
"EcalUncalibRecHitInfo") <<
"EcalUncalibRecHitWorkerAnalFit: processed EBDataFrame with id: "
125 <<
"\n" <<
"uncalib rechit amplitude: " << aHit.
amplitude();
131 LogDebug(
"EcalUncalibRecHitInfo") <<
"EcalUncalibRecHitWorkerAnalFit: processed EEDataFrame with id: "
133 <<
"uncalib rechit amplitude: " << aHit.
amplitude();
EcalUncalibRecHitWorkerAnalFit(const edm::ParameterSet &ps)
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
void push_back(T const &t)
edm::ESHandle< EcalPedestals > pedHandle
EcalPedestalsMap::const_iterator EcalPedestalsMapIterator
bool run(const edm::Event &evt, const EcalDigiCollection::const_iterator &digi, EcalUncalibratedRecHitCollection &result)
EcalUncalibRecHitRecAnalFitAlgo< EBDataFrame > algoEB_
EcalUncalibRecHitRecAnalFitAlgo< EEDataFrame > algoEE_
virtual EcalUncalibratedRecHit makeRecHit(const C &dataFrame, const double *pedestals, const double *gainRatios, const EcalWeightSet::EcalWeightMatrix **weights, const EcalWeightSet::EcalChi2WeightMatrix **chi2Matrix)
Compute parameters.
std::vector< Item >::const_iterator const_iterator
void set(const edm::EventSetup &es)
edm::ESHandle< EcalGainRatios > pRatio
#define DEFINE_EDM_PLUGIN(factory, type, name)