CMS 3D CMS Logo

NavigationSchoolESProducer Class Reference

#include <RecoTracker/TkNavigation/plugins/NavigationSchoolESProducer.h>

Inheritance diagram for NavigationSchoolESProducer:

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

List of all members.

Public Types

typedef boost::shared_ptr
< NavigationSchool
ReturnType

Public Member Functions

 NavigationSchoolESProducer (const edm::ParameterSet &)
virtual ReturnType produce (const NavigationSchoolRecord &)
 ~NavigationSchoolESProducer ()

Protected Attributes

edm::ParameterSet theNavigationPSet
boost::shared_ptr
< NavigationSchool
theNavigationSchool
std::string theNavigationSchoolName


Detailed Description

Definition at line 20 of file NavigationSchoolESProducer.h.


Member Typedef Documentation

typedef boost::shared_ptr<NavigationSchool> NavigationSchoolESProducer::ReturnType

Definition at line 25 of file NavigationSchoolESProducer.h.


Constructor & Destructor Documentation

NavigationSchoolESProducer::NavigationSchoolESProducer ( const edm::ParameterSet iConfig  ) 

Definition at line 8 of file NavigationSchoolESProducer.cc.

References edm::ParameterSet::getParameter(), edm::ESProducer::setWhatProduced(), theNavigationPSet, and theNavigationSchoolName.

00009 {
00010   theNavigationPSet = iConfig;
00011   theNavigationSchoolName = theNavigationPSet.getParameter<std::string>("ComponentName");
00012   //the following line is needed to tell the framework what
00013   // data is being produced
00014   setWhatProduced(this, theNavigationSchoolName);
00015   
00016   //now do what ever other initialization is needed
00017 }

NavigationSchoolESProducer::~NavigationSchoolESProducer (  ) 

Definition at line 20 of file NavigationSchoolESProducer.cc.

00021 {
00022  
00023    // do anything here that needs to be done at desctruction time
00024    // (e.g. close files, deallocate resources etc.)
00025 
00026 }


Member Function Documentation

NavigationSchoolESProducer::ReturnType NavigationSchoolESProducer::produce ( const NavigationSchoolRecord iRecord  )  [virtual]

Reimplemented in SkippingLayerCosmicNavigationSchoolESProducer.

Definition at line 35 of file NavigationSchoolESProducer.cc.

References DBSPlugin::get(), edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), edm::ESHandle< T >::product(), theNavigationSchool, and theNavigationSchoolName.

00036 {
00037    using namespace edm::es;
00038 
00039    // get the field
00040    edm::ESHandle<MagneticField>                field;
00041    iRecord.getRecord<IdealMagneticFieldRecord>().get(field);
00042 
00043    //get the geometricsearch tracker geometry
00044    edm::ESHandle<GeometricSearchTracker>         geometricSearchTracker;
00045    iRecord.getRecord<TrackerRecoGeometryRecord>().get(geometricSearchTracker);
00046    
00047    theNavigationSchool.reset(NavigationSchoolFactory::get()->create(theNavigationSchoolName,
00048                                                                     geometricSearchTracker.product(),
00049                                                                     field.product()));
00050    return theNavigationSchool ;
00051 }


Member Data Documentation

edm::ParameterSet NavigationSchoolESProducer::theNavigationPSet [protected]

Definition at line 30 of file NavigationSchoolESProducer.h.

Referenced by NavigationSchoolESProducer(), and SkippingLayerCosmicNavigationSchoolESProducer::produce().

boost::shared_ptr<NavigationSchool> NavigationSchoolESProducer::theNavigationSchool [protected]

Definition at line 32 of file NavigationSchoolESProducer.h.

Referenced by produce(), and SkippingLayerCosmicNavigationSchoolESProducer::produce().

std::string NavigationSchoolESProducer::theNavigationSchoolName [protected]

Definition at line 31 of file NavigationSchoolESProducer.h.

Referenced by NavigationSchoolESProducer(), and produce().


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