Skip to content

Commit

Permalink
Merge pull request #28413 from Dr15Jones/fixHcalHardcodeCalibrations
Browse files Browse the repository at this point in the history
Fix use of object after destructor in HcalHardcodeCalibrations
  • Loading branch information
cmsbuild committed Nov 19, 2019
2 parents 8dbfd75 + 930d5a8 commit cae636c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CalibCalorimetry/HcalPlugins/src/HcalHardcodeCalibrations.cc
Expand Up @@ -239,7 +239,8 @@ HcalHardcodeCalibrations::HcalHardcodeCalibrations(const edm::ParameterSet& iCon
findingRecord<HcalZSThresholdsRcd>();
}
if ((objectName == "RespCorrs") || (objectName == "ResponseCorrection") || all) {
auto& c = setWhatProduced(this, &HcalHardcodeCalibrations::produceRespCorrs).setConsumes(topoTokens_[kRespCorrs]);
auto c = setWhatProduced(this, &HcalHardcodeCalibrations::produceRespCorrs);
c.setConsumes(topoTokens_[kRespCorrs]);
if (he_recalibration) {
c.setConsumes(heDarkeningToken_, edm::ESInputTag("", "HE"));
}
Expand Down

0 comments on commit cae636c

Please sign in to comment.