From d6162632defd5325074e8cb67eed035ed57444ed Mon Sep 17 00:00:00 2001 From: Patrick Gartung Date: Mon, 29 Jan 2018 23:20:11 +0100 Subject: [PATCH] RecoLocalTracker/Phase2TrackerRecHits: Update ESProcer return type to unique_ptr. --- .../plugins/Phase2StripCPEESProducer.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/RecoLocalTracker/Phase2TrackerRecHits/plugins/Phase2StripCPEESProducer.cc b/RecoLocalTracker/Phase2TrackerRecHits/plugins/Phase2StripCPEESProducer.cc index c51bcffc81962..ecb4a258e10cf 100644 --- a/RecoLocalTracker/Phase2TrackerRecHits/plugins/Phase2StripCPEESProducer.cc +++ b/RecoLocalTracker/Phase2TrackerRecHits/plugins/Phase2StripCPEESProducer.cc @@ -23,7 +23,7 @@ class Phase2StripCPEESProducer: public edm::ESProducer { public: Phase2StripCPEESProducer(const edm::ParameterSet&); - std::shared_ptr > produce(const TkStripCPERecord & iRecord); + std::unique_ptr > produce(const TkStripCPERecord & iRecord); private: @@ -32,7 +32,6 @@ class Phase2StripCPEESProducer: public edm::ESProducer { CPE_t cpeNum_; edm::ParameterSet pset_; - std::shared_ptr > cpe_; }; @@ -51,19 +50,20 @@ Phase2StripCPEESProducer::Phase2StripCPEESProducer(const edm::ParameterSet & p) } -std::shared_ptr > Phase2StripCPEESProducer::produce(const TkStripCPERecord & iRecord) { +std::unique_ptr > Phase2StripCPEESProducer::produce(const TkStripCPERecord & iRecord) { edm::ESHandle magfield; edm::ESHandle pDD; + std::unique_ptr > cpe_; switch(cpeNum_) { case DEFAULT: iRecord.getRecord().get(magfield ); iRecord.getRecord().get( pDD ); - cpe_ = std::make_shared(pset_, *magfield,*pDD); + cpe_ = std::make_unique(pset_, *magfield,*pDD); break; case GEOMETRIC: - cpe_ = std::make_shared(pset_); + cpe_ = std::make_unique(pset_); break; } return cpe_;