47 LogDebug(
"EcalUncalibRecHitDebug") <<
"fetching gainRatios....";
49 LogDebug(
"EcalUncalibRecHitDebug") <<
"done." ;
52 LogDebug(
"EcalUncalibRecHitDebug") <<
"fetching pedestals....";
54 LogDebug(
"EcalUncalibRecHitDebug") <<
"done." ;
77 pedIter = pedMap.find(
detid );
78 if( pedIter != pedMap.end() ) {
81 edm::LogError(
"EcalUncalibRecHitWorkerAnalFit") <<
"error!! could not find pedestals for channel: ";
87 edm::LogError(
"EcalUncalibRecHitWorkerAnalFit") <<
"\n no uncalib rechit will be made for this digi!";
91 pedVec[0] = aped.mean_x12;
92 pedVec[1] = aped.mean_x6;
93 pedVec[2] = aped.mean_x1;
98 gainIter = gainMap.find(
detid );
99 if( gainIter != gainMap.end() ) {
102 edm::LogError(
"EcalUncalibRecHitWorkerAnalFit") <<
"error!! could not find gain ratios for channel: ";
108 edm::LogError(
"EcalUncalibRecHitWorkerAnalFit") <<
"\n no uncalib rechit will be made for this digi!";
111 double gainRatios[3];
113 gainRatios[1] = aGain.gain12Over6();
114 gainRatios[2] = aGain.gain6Over1()*aGain.gain12Over6();
120 LogDebug(
"EcalUncalibRecHitInfo") <<
"EcalUncalibRecHitWorkerAnalFit: processed EBDataFrame with id: "
122 <<
"\n" <<
"uncalib rechit amplitude: " << aHit.
amplitude();
128 LogDebug(
"EcalUncalibRecHitInfo") <<
"EcalUncalibRecHitWorkerAnalFit: processed EEDataFrame with id: "
130 <<
"uncalib rechit amplitude: " << aHit.
amplitude();
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.
EcalUncalibRecHitWorkerAnalFit(const edm::ParameterSet &ps, edm::ConsumesCollector &c)
std::vector< Item >::const_iterator const_iterator
void set(const edm::EventSetup &es)
edm::ESHandle< EcalGainRatios > pRatio
#define DEFINE_EDM_PLUGIN(factory, type, name)