CMS 3D CMS Logo

Public Member Functions

CfgNavigationSchoolESProducer Class Reference

#include <CfgNavigationSchoolESProducer.h>

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

List of all members.

Public Member Functions

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

Detailed Description

Definition at line 10 of file CfgNavigationSchoolESProducer.h.


Constructor & Destructor Documentation

CfgNavigationSchoolESProducer::CfgNavigationSchoolESProducer ( const edm::ParameterSet iConfig) [inline]

Definition at line 12 of file CfgNavigationSchoolESProducer.h.

CfgNavigationSchoolESProducer::~CfgNavigationSchoolESProducer ( ) [inline]

Definition at line 14 of file CfgNavigationSchoolESProducer.h.

{}

Member Function Documentation

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

Reimplemented from NavigationSchoolESProducer.

Definition at line 4 of file CfgNavigationSchoolESProducer.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);

  theNavigationSchool.reset(new CfgNavigationSchool(theNavigationPSet, 
                                                    geometricSearchTracker.product(), 
                                                    field.product()) );

  return theNavigationSchool;
}