CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CfgNavigationSchoolESProducer.cc
Go to the documentation of this file.
4 
6  using namespace edm::es;
7 
8  // get the field
10  std::string mfName = "";
11  if (theNavigationPSet.exists("SimpleMagneticField"))
12  mfName = theNavigationPSet.getParameter<std::string>("SimpleMagneticField");
13  iRecord.getRecord<IdealMagneticFieldRecord>().get(mfName,field);
14  // edm::ESInputTag mfESInputTag(mfName);
15  // iRecord.getRecord<IdealMagneticFieldRecord>().get(mfESInputTag,field);
16 
17  //get the geometricsearch tracker geometry
18  edm::ESHandle<GeometricSearchTracker> geometricSearchTracker;
19  iRecord.getRecord<TrackerRecoGeometryRecord>().get(geometricSearchTracker);
20 
22  geometricSearchTracker.product(),
23  field.product()) );
24 
25  return theNavigationSchool;
26 }
T getParameter(std::string const &) const
ReturnType produce(const NavigationSchoolRecord &)
bool exists(std::string const &parameterName) const
checks if a parameter exists
boost::shared_ptr< NavigationSchool > ReturnType
tuple field
Definition: statics.py:62
boost::shared_ptr< NavigationSchool > theNavigationSchool