Skip to content

Commit

Permalink
Fix unique-ptr related issue in EcalRecHitProducer.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajdeep Mohan Chatterjee committed Jan 30, 2020
1 parent 09ae771 commit 606742e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RecoLocalCalo/EcalRecProducers/plugins/EcalRecHitProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ EcalRecHitProducer::EcalRecHitProducer(const edm::ParameterSet& ps) {

std::string componentType = ps.getParameter<std::string>("algo");
edm::ConsumesCollector c{consumesCollector()};
worker_ = EcalRecHitWorkerFactory::get()->create(componentType, ps, c);
worker_ = std::unique_ptr<EcalRecHitWorkerBaseClass>{EcalRecHitWorkerFactory::get()->create(componentType, ps, c)};

// to recover problematic channels
componentType = ps.getParameter<std::string>("algoRecover");
workerRecover_ = EcalRecHitWorkerFactory::get()->create(componentType, ps, c);
workerRecover_ = std::unique_ptr<EcalRecHitWorkerBaseClass>{EcalRecHitWorkerFactory::get()->create(componentType, ps, c)};

edm::ParameterSet cleaningPs = ps.getParameter<edm::ParameterSet>("cleaningConfig");
cleaningAlgo_ = std::make_unique<EcalCleaningAlgo>(cleaningPs);
Expand Down

0 comments on commit 606742e

Please sign in to comment.