32 : EBRecHitCollection_(ps.getParameter<
edm::
InputTag>(
"EBRecHitCollection")),
33 EERecHitCollection_(ps.getParameter<
edm::
InputTag>(
"EERecHitCollection")),
38 EBRecalibRecHitCollection_(ps.getParameter<
std::
string>(
"EBRecalibRecHitCollection")),
39 EERecalibRecHitCollection_(ps.getParameter<
std::
string>(
"EERecalibRecHitCollection")),
40 doEnergyScale_(ps.getParameter<
bool>(
"doEnergyScale")),
41 doIntercalib_(ps.getParameter<
bool>(
"doIntercalib")),
42 doLaserCorrections_(ps.getParameter<
bool>(
"doLaserCorrections")),
44 doEnergyScaleInverse_(ps.getParameter<
bool>(
"doEnergyScaleInverse")),
45 doIntercalibInverse_(ps.getParameter<
bool>(
"doIntercalibInverse")),
46 doLaserCorrectionsInverse_(ps.getParameter<
bool>(
"doLaserCorrectionsInverse")) {
69 auto EBRecalibRecHits = std::make_unique<EBRecHitCollection>();
70 auto EERecalibRecHits = std::make_unique<EERecHitCollection>();
97 agc_eb = 1.0 / agc_eb;
98 agc_ee = 1.0 / agc_ee;
109 if (icalit != icalMap.
end()) {
110 icalconst = (*icalit);
113 <<
"! something wrong with EcalIntercalibConstants in your DB? ";
117 float lasercalib = 1;
126 icalconst = 1.0 / icalconst;
129 lasercalib = 1.0 / lasercalib;
132 EcalRecHit aHit((*it).id(), (*it).energy() * agc_eb * icalconst * lasercalib, (*it).time());
133 EBRecalibRecHits->push_back(aHit);
145 if (icalit != icalMap.
end()) {
146 icalconst = (*icalit);
149 <<
"! something wrong with EcalIntercalibConstants in your DB? ";
153 float lasercalib = 1;
159 icalconst = 1.0 / icalconst;
162 lasercalib = 1.0 / lasercalib;
166 EcalRecHit aHit((*it).id(), (*it).energy() * agc_ee * icalconst * lasercalib, (*it).time());
167 EERecalibRecHits->push_back(aHit);
171 LogInfo(
"EcalRecalibRecHitInfo") <<
"total # EB re-calibrated rechits: " << EBRecalibRecHits->size();
172 LogInfo(
"EcalRecalibRecHitInfo") <<
"total # EE re-calibrated rechits: " << EERecalibRecHits->size();