CMS 3D CMS Logo

Public Member Functions

SkippingLayerCosmicNavigationSchoolESProducer Class Reference

#include <SkippingLayerCosmicNavigationSchoolESProducer.h>

Inheritance diagram for SkippingLayerCosmicNavigationSchoolESProducer:
NavigationSchoolESProducer edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

List of all members.

Public Member Functions

ReturnType produce (const NavigationSchoolRecord &)
 SkippingLayerCosmicNavigationSchoolESProducer (const edm::ParameterSet &iConfig)
 ~SkippingLayerCosmicNavigationSchoolESProducer ()

Detailed Description

Definition at line 10 of file SkippingLayerCosmicNavigationSchoolESProducer.h.


Constructor & Destructor Documentation

SkippingLayerCosmicNavigationSchoolESProducer::SkippingLayerCosmicNavigationSchoolESProducer ( const edm::ParameterSet iConfig) [inline]
SkippingLayerCosmicNavigationSchoolESProducer::~SkippingLayerCosmicNavigationSchoolESProducer ( ) [inline]

Definition at line 14 of file SkippingLayerCosmicNavigationSchoolESProducer.h.

{}

Member Function Documentation

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

Reimplemented from NavigationSchoolESProducer.

Definition at line 4 of file SkippingLayerCosmicNavigationSchoolESProducer.cc.

References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), NavigationSchoolESProducer::theNavigationPSet, and NavigationSchoolESProducer::theNavigationSchool.

                                                                                                                                {
  using namespace edm::es;

  // get the field
  edm::ESHandle<MagneticField>                field;
  iRecord.getRecord<IdealMagneticFieldRecord>().get(field);

  //get the geometricsearch tracker geometry
  edm::ESHandle<GeometricSearchTracker>         geometricSearchTracker;
  iRecord.getRecord<TrackerRecoGeometryRecord>().get(geometricSearchTracker);

  CosmicNavigationSchool::CosmicNavigationSchoolConfiguration layerConfig(theNavigationPSet);
  theNavigationSchool.reset(new SkippingLayerCosmicNavigationSchool(geometricSearchTracker.product(), field.product(), layerConfig) );

  return theNavigationSchool;
}