43 if (!barrelRecHitsHandle.
isValid()) {
44 LogDebug(
"") <<
"EcalREcHitMiscalib: Error! can't get product!" << std::endl;
50 if (!endcapRecHitsHandle.
isValid()) {
51 LogDebug(
"") <<
"EcalREcHitMiscalib: Error! can't get product!" << std::endl;
57 auto RecalibEBRecHitCollection = std::make_unique<EBRecHitCollection>();
58 auto RecalibEERecHitCollection = std::make_unique<EERecHitCollection>();
74 icalconst = (*icalit);
78 edm::LogError(
"EcalRecHitRecalib") <<
"No intercalib const found for xtal " <<
EBDetId(itb->id())
79 <<
"! something wrong with EcalIntercalibConstants in your DB? ";
85 EcalRecHit aHit(itb->id(), itb->energy() * icalconst, itb->time());
87 RecalibEBRecHitCollection->push_back(aHit);
100 icalconst = (*icalit);
103 edm::LogError(
"EcalRecHitRecalib") <<
"No intercalib const found for xtal " <<
EEDetId(ite->id())
104 <<
"! something wrong with EcalIntercalibConstants in your DB? ";
111 EcalRecHit aHit(ite->id(), ite->energy() * icalconst, ite->time());
113 RecalibEERecHitCollection->push_back(aHit);