CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_1/src/RecoTracker/TkNavigation/plugins/CfgNavigationSchoolESProducer.cc

Go to the documentation of this file.
00001 #include "RecoTracker/TkNavigation/plugins/CfgNavigationSchoolESProducer.h"
00002 #include "RecoTracker/TkNavigation/interface/CfgNavigationSchool.h"
00003 
00004 NavigationSchoolESProducer::ReturnType CfgNavigationSchoolESProducer::produce(const NavigationSchoolRecord& iRecord){
00005   using namespace edm::es;
00006 
00007   // get the field
00008   edm::ESHandle<MagneticField>                field;
00009   iRecord.getRecord<IdealMagneticFieldRecord>().get(field);
00010 
00011   //get the geometricsearch tracker geometry
00012   edm::ESHandle<GeometricSearchTracker>         geometricSearchTracker;
00013   iRecord.getRecord<TrackerRecoGeometryRecord>().get(geometricSearchTracker);
00014 
00015   theNavigationSchool.reset(new CfgNavigationSchool(theNavigationPSet, 
00016                                                     geometricSearchTracker.product(), 
00017                                                     field.product()) );
00018 
00019   return theNavigationSchool;
00020 }