64 LogDebug(
"EcalUncalibRecHitDebug") <<
"fetching gainRatios....";
66 LogDebug(
"EcalUncalibRecHitDebug") <<
"done.";
69 LogDebug(
"EcalUncalibRecHitDebug") <<
"fetching pedestals....";
71 LogDebug(
"EcalUncalibRecHitDebug") <<
"done.";
88 DetId detid(itdg->id());
92 pedIter = pedMap.
find(detid);
93 if (pedIter != pedMap.
end()) {
96 edm::LogError(
"EcalUncalibRecHitWorkerAnalFit") <<
"error!! could not find pedestals for channel: ";
102 edm::LogError(
"EcalUncalibRecHitWorkerAnalFit") <<
"\n no uncalib rechit will be made for this digi!";
106 pedVec[0] = aped.mean_x12;
107 pedVec[1] = aped.mean_x6;
108 pedVec[2] = aped.mean_x1;
112 gainIter = gainMap.
find(detid);
113 if (gainIter != gainMap.
end()) {
116 edm::LogError(
"EcalUncalibRecHitWorkerAnalFit") <<
"error!! could not find gain ratios for channel: ";
122 edm::LogError(
"EcalUncalibRecHitWorkerAnalFit") <<
"\n no uncalib rechit will be made for this digi!";
125 double gainRatios[3];
134 LogDebug(
"EcalUncalibRecHitInfo") <<
"EcalUncalibRecHitWorkerAnalFit: processed EBDataFrame with id: " 136 <<
"uncalib rechit amplitude: " << aHit.
amplitude();
142 LogDebug(
"EcalUncalibRecHitInfo") <<
"EcalUncalibRecHitWorkerAnalFit: processed EEDataFrame with id: " 144 <<
"uncalib rechit amplitude: " << aHit.
amplitude();
167 "EcalUncalibRecHitWorkerAnalFit");
Log< level::Error, false > LogError
edm::ESHandle< EcalPedestals > pedHandle
EcalUncalibRecHitWorkerAnalFit()
void set(const edm::EventSetup &es) override
edm::ESGetToken< EcalGainRatios, EcalGainRatiosRcd > ratiosToken_
edm::ESGetToken< EcalPedestals, EcalPedestalsRcd > pedestalsToken_
EcalPedestalsMap::const_iterator EcalPedestalsMapIterator
EcalUncalibRecHitRecAnalFitAlgo< EBDataFrame > algoEB_
bool run(const edm::Event &evt, const EcalDigiCollection::const_iterator &digi, EcalUncalibratedRecHitCollection &result) override
EcalUncalibRecHitRecAnalFitAlgo< EEDataFrame > algoEE_
edm::ParameterSetDescription getAlgoDescription() override
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
const_iterator find(uint32_t rawId) const
float gain12Over6() const
std::vector< Item >::const_iterator const_iterator
EcalUncalibratedRecHit makeRecHit(const C &dataFrame, const double *pedestals, const double *gainRatios, const EcalWeightSet::EcalWeightMatrix **weights, const EcalWeightSet::EcalChi2WeightMatrix **chi2Matrix) override
Compute parameters.
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
edm::ESHandle< EcalGainRatios > pRatio
#define DEFINE_EDM_PLUGIN(factory, type, name)
const_iterator end() const