72 if (!HBHERecHitsHandle.
isValid()) {
73 LogDebug(
"") <<
"HcalREcHitRecalib: Error! can't get product!" << std::endl;
79 if (!HORecHitsHandle.
isValid()) {
80 LogDebug(
"") <<
"HcalREcHitRecalib: Error! can't get product!" << std::endl;
82 HORecHits = HORecHitsHandle.
product();
86 if (!HFRecHitsHandle.
isValid()) {
87 LogDebug(
"") <<
"HcalREcHitRecalib: Error! can't get product!" << std::endl;
102 auto RecalibHBHERecHitCollection = std::make_unique<HBHERecHitCollection>();
103 auto RecalibHFRecHitCollection = std::make_unique<HFRecHitCollection>();
104 auto RecalibHORecHitCollection = std::make_unique<HORecHitCollection>();
129 float icalconst = (
mapHcal_.
get().find(itHBHE->id().rawId()))->second;
134 HBHERecHit aHit(itHBHE->id(), itHBHE->energy() * icalconst, itHBHE->time());
136 RecalibHBHERecHitCollection->push_back(aHit);
160 float icalconst = (
mapHcal_.
get().find(itHF->id().rawId()))->second;
163 HFRecHit aHit(itHF->id(), itHF->energy() * icalconst, itHF->time());
165 RecalibHFRecHitCollection->push_back(aHit);
172 for (itHO = HORecHits->
begin(); itHO != HORecHits->
end(); ++itHO) {
189 float icalconst = (
mapHcal_.
get().find(itHO->id().rawId()))->second;
192 HORecHit aHit(itHO->id(), itHO->energy() * icalconst, itHO->time());
194 RecalibHORecHitCollection->push_back(aHit);