CMS 3D CMS Logo

Public Member Functions

MuonTransientTrackingRecHitBuilderESProducer Class Reference

#include <MuonTransientTrackingRecHitBuilderESProducer.h>

Inheritance diagram for MuonTransientTrackingRecHitBuilderESProducer:
edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

List of all members.

Public Member Functions

 MuonTransientTrackingRecHitBuilderESProducer (const edm::ParameterSet &)
 Constructor.
boost::shared_ptr
< TransientTrackingRecHitBuilder
produce (const TransientRecHitRecord &)
virtual ~MuonTransientTrackingRecHitBuilderESProducer ()
 Destructor.

Detailed Description

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.

Date:
2007/04/18 15:08:40
Revision:
1.1
Author:
R. Bellan - INFN Torino <riccardo.bellan@cern.ch>

Definition at line 24 of file MuonTransientTrackingRecHitBuilderESProducer.h.


Constructor & Destructor Documentation

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]

Destructor.

Definition at line 22 of file MuonTransientTrackingRecHitBuilderESProducer.cc.

{}

Member Function Documentation

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));
}