#include <CfgNavigationSchoolESProducer.h>
Public Member Functions | |
CfgNavigationSchoolESProducer (const edm::ParameterSet &iConfig) | |
ReturnType | produce (const NavigationSchoolRecord &) |
~CfgNavigationSchoolESProducer () |
Definition at line 10 of file CfgNavigationSchoolESProducer.h.
CfgNavigationSchoolESProducer::CfgNavigationSchoolESProducer | ( | const edm::ParameterSet & | iConfig | ) | [inline] |
Definition at line 12 of file CfgNavigationSchoolESProducer.h.
: NavigationSchoolESProducer(iConfig){}
CfgNavigationSchoolESProducer::~CfgNavigationSchoolESProducer | ( | ) | [inline] |
Definition at line 14 of file CfgNavigationSchoolESProducer.h.
{}
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; }