Skip to content

Commit

Permalink
Merge pull request cms-sw#21998 from gartung/RecoTracker-TransientTra…
Browse files Browse the repository at this point in the history
…ckingRecHit-returntype

RecoTracker/TransientTrackingRecHit: change return type of ESProducers.
  • Loading branch information
cmsbuild authored Jan 29, 2018
2 parents aec0f56 + 2601b27 commit 97a68a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ TkTransientTrackingRecHitBuilderESProducer::TkTransientTrackingRecHitBuilderESPr

TkTransientTrackingRecHitBuilderESProducer::~TkTransientTrackingRecHitBuilderESProducer() {}

std::shared_ptr<TransientTrackingRecHitBuilder>
std::unique_ptr<TransientTrackingRecHitBuilder>
TkTransientTrackingRecHitBuilderESProducer::produce(const TransientRecHitRecord & iRecord){
// if (_propagator){
// delete _propagator;
Expand Down Expand Up @@ -89,12 +89,10 @@ TkTransientTrackingRecHitBuilderESProducer::produce(const TransientRecHitRecord
if (p2OTname != "") {
iRecord.getRecord<TkStripCPERecord>().get( p2OTname, p2OTe );
p2OTp = p2OTe.product();
_builder = std::make_shared<TkTransientTrackingRecHitBuilder>(pDD.product(), pp, p2OTp);
} else {
_builder = std::make_shared<TkTransientTrackingRecHitBuilder>(pDD.product(), pp, sp, mp, computeCoarseLocalPositionFromDisk);
}
return std::make_unique<TkTransientTrackingRecHitBuilder>(pDD.product(), pp, p2OTp);
}
return std::make_unique<TkTransientTrackingRecHitBuilder>(pDD.product(), pp, sp, mp, computeCoarseLocalPositionFromDisk);

return _builder;
}


Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ class TkTransientTrackingRecHitBuilderESProducer: public edm::ESProducer{
public:
TkTransientTrackingRecHitBuilderESProducer(const edm::ParameterSet & p);
~TkTransientTrackingRecHitBuilderESProducer() override;
std::shared_ptr<TransientTrackingRecHitBuilder> produce(const TransientRecHitRecord &);
std::unique_ptr<TransientTrackingRecHitBuilder> produce(const TransientRecHitRecord &);
private:
std::shared_ptr<TransientTrackingRecHitBuilder> _builder;
edm::ParameterSet pset_;
};

Expand Down

0 comments on commit 97a68a4

Please sign in to comment.