#include <MuonTransientTrackingRecHitBuilderESProducer.h>
Public Member Functions | |
MuonTransientTrackingRecHitBuilderESProducer (const edm::ParameterSet &) | |
Constructor. | |
boost::shared_ptr < TransientTrackingRecHitBuilder > | produce (const TransientRecHitRecord &) |
virtual | ~MuonTransientTrackingRecHitBuilderESProducer () |
Destructor. |
ESProducer for the Muon Transient TrackingRecHit Builder. The Builder can be taken from the EventSetup, decoupling the code in which it is used w.r.t. the RecoMuon/TransientTrackingRecHit lib.
Definition at line 24 of file MuonTransientTrackingRecHitBuilderESProducer.h.
MuonTransientTrackingRecHitBuilderESProducer::MuonTransientTrackingRecHitBuilderESProducer | ( | const edm::ParameterSet & | parameterSet | ) |
Constructor.
Definition at line 17 of file MuonTransientTrackingRecHitBuilderESProducer.cc.
References edm::ParameterSet::getParameter().
{ setWhatProduced(this,parameterSet.getParameter<string>("ComponentName")); }
MuonTransientTrackingRecHitBuilderESProducer::~MuonTransientTrackingRecHitBuilderESProducer | ( | ) | [virtual] |
boost::shared_ptr< TransientTrackingRecHitBuilder > MuonTransientTrackingRecHitBuilderESProducer::produce | ( | const TransientRecHitRecord & | iRecord | ) |
Definition at line 26 of file MuonTransientTrackingRecHitBuilderESProducer.cc.
References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord().
{ ESHandle<GlobalTrackingGeometry> trackingGeometry; iRecord.getRecord<GlobalTrackingGeometryRecord>().get(trackingGeometry); return boost::shared_ptr<TransientTrackingRecHitBuilder>(new MuonTransientTrackingRecHitBuilder(trackingGeometry)); }