40 LogDebug(
"EcalUncalibRecHitDebug") <<
"fetching gainRatios....";
42 LogDebug(
"EcalUncalibRecHitDebug") <<
"done.";
45 LogDebug(
"EcalUncalibRecHitDebug") <<
"fetching pedestals....";
47 LogDebug(
"EcalUncalibRecHitDebug") <<
"done.";
64 DetId detid(itdg->id());
68 pedIter = pedMap.
find(detid);
69 if (pedIter != pedMap.
end()) {
72 edm::LogError(
"EcalUncalibRecHitWorkerAnalFit") <<
"error!! could not find pedestals for channel: ";
78 edm::LogError(
"EcalUncalibRecHitWorkerAnalFit") <<
"\n no uncalib rechit will be made for this digi!";
82 pedVec[0] = aped.mean_x12;
83 pedVec[1] = aped.mean_x6;
84 pedVec[2] = aped.mean_x1;
88 gainIter = gainMap.
find(detid);
89 if (gainIter != gainMap.
end()) {
92 edm::LogError(
"EcalUncalibRecHitWorkerAnalFit") <<
"error!! could not find gain ratios for channel: ";
98 edm::LogError(
"EcalUncalibRecHitWorkerAnalFit") <<
"\n no uncalib rechit will be made for this digi!";
101 double gainRatios[3];
110 LogDebug(
"EcalUncalibRecHitInfo") <<
"EcalUncalibRecHitWorkerAnalFit: processed EBDataFrame with id: " 112 <<
"uncalib rechit amplitude: " << aHit.
amplitude();
118 LogDebug(
"EcalUncalibRecHitInfo") <<
"EcalUncalibRecHitWorkerAnalFit: processed EEDataFrame with id: " 120 <<
"uncalib rechit amplitude: " << aHit.
amplitude();
143 "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