42 LogDebug(
"EcalUncalibRecHitDebug") <<
"fetching gainRatios....";
44 LogDebug(
"EcalUncalibRecHitDebug") <<
"done.";
47 LogDebug(
"EcalUncalibRecHitDebug") <<
"fetching pedestals....";
49 LogDebug(
"EcalUncalibRecHitDebug") <<
"done.";
66 DetId detid(itdg->id());
70 pedIter = pedMap.find(detid);
71 if (pedIter != pedMap.end()) {
74 edm::LogError(
"EcalUncalibRecHitWorkerAnalFit") <<
"error!! could not find pedestals for channel: ";
80 edm::LogError(
"EcalUncalibRecHitWorkerAnalFit") <<
"\n no uncalib rechit will be made for this digi!";
84 pedVec[0] = aped.mean_x12;
85 pedVec[1] = aped.mean_x6;
86 pedVec[2] = aped.mean_x1;
90 gainIter = gainMap.find(detid);
91 if (gainIter != gainMap.end()) {
94 edm::LogError(
"EcalUncalibRecHitWorkerAnalFit") <<
"error!! could not find gain ratios for channel: ";
100 edm::LogError(
"EcalUncalibRecHitWorkerAnalFit") <<
"\n no uncalib rechit will be made for this digi!";
103 double gainRatios[3];
105 gainRatios[1] = aGain.gain12Over6();
106 gainRatios[2] = aGain.gain6Over1() * aGain.gain12Over6();
112 LogDebug(
"EcalUncalibRecHitInfo") <<
"EcalUncalibRecHitWorkerAnalFit: processed EBDataFrame with id: "
114 <<
"uncalib rechit amplitude: " << aHit.
amplitude();
120 LogDebug(
"EcalUncalibRecHitInfo") <<
"EcalUncalibRecHitWorkerAnalFit: processed EEDataFrame with id: "
122 <<
"uncalib rechit amplitude: " << aHit.
amplitude();
145 "EcalUncalibRecHitWorkerAnalFit");
const edm::EventSetup & c
void push_back(T const &t)
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
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)
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const