51 LogDebug(
"EcalUncalibRecHitDebug") <<
"fetching gainRatios....";
53 LogDebug(
"EcalUncalibRecHitDebug") <<
"done." ;
56 LogDebug(
"EcalUncalibRecHitDebug") <<
"fetching pedestals....";
58 LogDebug(
"EcalUncalibRecHitDebug") <<
"done." ;
81 pedIter = pedMap.find(
detid );
82 if( pedIter != pedMap.end() ) {
85 edm::LogError(
"EcalUncalibRecHitWorkerAnalFit") <<
"error!! could not find pedestals for channel: ";
91 edm::LogError(
"EcalUncalibRecHitWorkerAnalFit") <<
"\n no uncalib rechit will be made for this digi!";
95 pedVec[0] = aped.mean_x12;
96 pedVec[1] = aped.mean_x6;
97 pedVec[2] = aped.mean_x1;
102 gainIter = gainMap.find(
detid );
103 if( gainIter != gainMap.end() ) {
106 edm::LogError(
"EcalUncalibRecHitWorkerAnalFit") <<
"error!! could not find gain ratios for channel: ";
112 edm::LogError(
"EcalUncalibRecHitWorkerAnalFit") <<
"\n no uncalib rechit will be made for this digi!";
115 double gainRatios[3];
117 gainRatios[1] = aGain.gain12Over6();
118 gainRatios[2] = aGain.gain6Over1()*aGain.gain12Over6();
124 LogDebug(
"EcalUncalibRecHitInfo") <<
"EcalUncalibRecHitWorkerAnalFit: processed EBDataFrame with id: "
126 <<
"\n" <<
"uncalib rechit amplitude: " << aHit.
amplitude();
132 LogDebug(
"EcalUncalibRecHitInfo") <<
"EcalUncalibRecHitWorkerAnalFit: processed EEDataFrame with id: "
134 <<
"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
EcalUncalibRecHitWorkerAnalFit()
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)
edm::ParameterSetDescription getAlgoDescription()