CMS 3D CMS Logo

CMSSW_4_4_3_patch1/src/RecoTracker/TkNavigation/plugins/SkippingLayerCosmicNavigationSchoolESProducer.cc

Go to the documentation of this file.
00001 #include "RecoTracker/TkNavigation/plugins/SkippingLayerCosmicNavigationSchoolESProducer.h"
00002 #include "RecoTracker/TkNavigation/interface/SkippingLayerCosmicNavigationSchool.h"
00003 
00004 NavigationSchoolESProducer::ReturnType SkippingLayerCosmicNavigationSchoolESProducer::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   CosmicNavigationSchool::CosmicNavigationSchoolConfiguration layerConfig(theNavigationPSet);
00016   theNavigationSchool.reset(new SkippingLayerCosmicNavigationSchool(geometricSearchTracker.product(), field.product(), layerConfig) );
00017 
00018   return theNavigationSchool;
00019 }