|
|
Go to the documentation of this file.
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];
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_iterator end() const
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
EcalUncalibRecHitWorkerAnalFit()
EcalUncalibratedRecHit makeRecHit(const C &dataFrame, const double *pedestals, const double *gainRatios, const EcalWeightSet::EcalWeightMatrix **weights, const EcalWeightSet::EcalChi2WeightMatrix **chi2Matrix) override
Compute parameters.
void set(const edm::EventSetup &es) override
edm::ESGetToken< EcalPedestals, EcalPedestalsRcd > pedestalsToken_
edm::ParameterSetDescription getAlgoDescription() override
edm::ESHandle< EcalPedestals > pedHandle
const_iterator find(uint32_t rawId) const
#define DEFINE_EDM_PLUGIN(factory, type, name)
float gain12Over6() const
edm::ESHandle< EcalGainRatios > pRatio
EcalPedestalsMap::const_iterator EcalPedestalsMapIterator
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
EcalUncalibRecHitRecAnalFitAlgo< EEDataFrame > algoEE_
Log< level::Error, false > LogError
bool run(const edm::Event &evt, const EcalDigiCollection::const_iterator &digi, EcalUncalibratedRecHitCollection &result) override
edm::ESGetToken< EcalGainRatios, EcalGainRatiosRcd > ratiosToken_
std::vector< Item >::const_iterator const_iterator
EcalUncalibRecHitRecAnalFitAlgo< EBDataFrame > algoEB_