51 LogDebug(
"EcalUncalibRecHitDebug") <<
"fetching gainRatios....";
53 LogDebug(
"EcalUncalibRecHitDebug") <<
"done." ;
56 LogDebug(
"EcalUncalibRecHitDebug") <<
"fetching pedestals....";
58 LogDebug(
"EcalUncalibRecHitDebug") <<
"done." ;
77 DetId detid( itdg->id() );
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!";
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];
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
float gain12Over6() const
void set(const edm::EventSetup &es)
edm::ESHandle< EcalGainRatios > pRatio
const_iterator find(uint32_t rawId) const
#define DEFINE_EDM_PLUGIN(factory, type, name)
const_iterator end() const
edm::ParameterSetDescription getAlgoDescription()