CMS 3D CMS Logo

MuonRoadTrajectoryBuilderESProducer Class Reference

#include <RecoMuon/L3TrackFinder/interface/MuonRoadTrajectoryBuilderESProducer.h>

Inheritance diagram for MuonRoadTrajectoryBuilderESProducer:

edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

List of all members.

Public Member Functions

 MuonRoadTrajectoryBuilderESProducer (const edm::ParameterSet &)
boost::shared_ptr
< TrajectoryBuilder
produce (const CkfComponentsRecord &)
 ~MuonRoadTrajectoryBuilderESProducer ()

Private Attributes

boost::shared_ptr
< TrajectoryBuilder
_trajectorybuilder
std::string measurementTrackerName
std::string propagatorName
edm::ParameterSet pset_


Detailed Description

Definition at line 9 of file MuonRoadTrajectoryBuilderESProducer.h.


Constructor & Destructor Documentation

MuonRoadTrajectoryBuilderESProducer::MuonRoadTrajectoryBuilderESProducer ( const edm::ParameterSet iConfig  ) 

Definition at line 7 of file MuonRoadTrajectoryBuilderESProducer.cc.

References edm::ParameterSet::getParameter(), measurementTrackerName, propagatorName, pset_, and edm::ESProducer::setWhatProduced().

00008 {
00009   std::string myName = iConfig.getParameter<std::string>("ComponentName");
00010   measurementTrackerName = iConfig.getParameter<std::string>("measurementTrackerName");
00011   propagatorName = iConfig.getParameter<std::string>("propagatorName");
00012   pset_ = iConfig;
00013   setWhatProduced(this,myName);
00014 }

MuonRoadTrajectoryBuilderESProducer::~MuonRoadTrajectoryBuilderESProducer (  ) 

Definition at line 16 of file MuonRoadTrajectoryBuilderESProducer.cc.

00017 {
00018  
00019    // do anything here that needs to be done at desctruction time
00020    // (e.g. close files, deallocate resources etc.)
00021 
00022 }


Member Function Documentation

boost::shared_ptr< TrajectoryBuilder > MuonRoadTrajectoryBuilderESProducer::produce ( const CkfComponentsRecord iRecord  ) 

Definition at line 25 of file MuonRoadTrajectoryBuilderESProducer.cc.

References _trajectorybuilder, edm::eventsetup::EventSetupRecordImplementation< T >::get(), edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), measurementTrackerName, edm::ESHandle< T >::product(), propagatorName, and pset_.

00026 {
00027    using namespace edm::es;
00028 
00029    edm::ESHandle<MeasurementTracker>             measurementTrackerHandle;
00030    edm::ESHandle<Propagator> propagatorHandle;
00031    
00032    iRecord.get(measurementTrackerName,measurementTrackerHandle);
00033    iRecord.getRecord<TrackingComponentsRecord>().get(propagatorName,propagatorHandle);
00034    
00035    _trajectorybuilder = boost::shared_ptr<TrajectoryBuilder>(new  MuonRoadTrajectoryBuilder(pset_,
00036                                                                                             measurementTrackerHandle.product(),
00037                                                                                             propagatorHandle->magneticField(),
00038                                                                                             propagatorHandle.product())
00039                                                                    );
00040    return _trajectorybuilder;
00041 }


Member Data Documentation

boost::shared_ptr<TrajectoryBuilder> MuonRoadTrajectoryBuilderESProducer::_trajectorybuilder [private]

Definition at line 17 of file MuonRoadTrajectoryBuilderESProducer.h.

Referenced by produce().

std::string MuonRoadTrajectoryBuilderESProducer::measurementTrackerName [private]

Definition at line 19 of file MuonRoadTrajectoryBuilderESProducer.h.

Referenced by MuonRoadTrajectoryBuilderESProducer(), and produce().

std::string MuonRoadTrajectoryBuilderESProducer::propagatorName [private]

Definition at line 20 of file MuonRoadTrajectoryBuilderESProducer.h.

Referenced by MuonRoadTrajectoryBuilderESProducer(), and produce().

edm::ParameterSet MuonRoadTrajectoryBuilderESProducer::pset_ [private]

Definition at line 18 of file MuonRoadTrajectoryBuilderESProducer.h.

Referenced by MuonRoadTrajectoryBuilderESProducer(), and produce().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:28:47 2009 for CMSSW by  doxygen 1.5.4