Skip to content

Commit b810b66

Browse files
committed
final updates
1 parent cafdfb8 commit b810b66

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

RecoEgamma/EgammaPhotonProducers/src/GEDPhotonProducer.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ GEDPhotonProducer::GEDPhotonProducer(const edm::ParameterSet& config) :
130130
StringToEnumValue<EcalSeverityLevel::SeverityLevel>(severitynamesEE);
131131

132132
thePhotonEnergyCorrector_ =
133-
new PhotonEnergyCorrector(conf_);
133+
new PhotonEnergyCorrector(conf_, consumesCollector());
134134
if( config.existsAs<edm::ParameterSet>("regressionConfig") ) {
135135
const edm::ParameterSet regr_conf =
136136
config.getParameterSet("regressionConfig");

RecoEgamma/EgammaPhotonProducers/src/PhotonProducer.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ PhotonProducer::PhotonProducer(const edm::ParameterSet& config) :
132132
preselCutValuesEndcap_.push_back(conf_.getParameter<double>("sigmaIetaIetaCutEndcap"));
133133
//
134134

135+
thePhotonEnergyCorrector_ = new PhotonEnergyCorrector(conf_, consumesCollector());
136+
135137
// Register the product
136138
produces< reco::PhotonCollection >(PhotonCollection_);
137139

@@ -150,11 +152,9 @@ void PhotonProducer::beginRun (edm::Run const& r, edm::EventSetup const & theEv
150152
thePhotonIsolationCalculator_ = new PhotonIsolationCalculator();
151153
edm::ParameterSet isolationSumsCalculatorSet = conf_.getParameter<edm::ParameterSet>("isolationSumsCalculatorSet");
152154
thePhotonIsolationCalculator_->setup(isolationSumsCalculatorSet, flagsexclEB_, flagsexclEE_, severitiesexclEB_, severitiesexclEE_);
153-
154155
thePhotonMIPHaloTagger_ = new PhotonMIPHaloTagger();
155156
edm::ParameterSet mipVariableSet = conf_.getParameter<edm::ParameterSet>("mipVariableSet");
156157
thePhotonMIPHaloTagger_->setup(mipVariableSet);
157-
thePhotonEnergyCorrector_ = new PhotonEnergyCorrector(conf_);
158158
thePhotonEnergyCorrector_ -> init(theEventSetup);
159159
}
160160

0 commit comments

Comments
 (0)