CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
NavigationSchoolESProducer.cc
Go to the documentation of this file.
3 
4 
5 //
6 //
7 // constructors and destructor
8 //
10 {
11  theNavigationPSet = iConfig;
13  //the following line is needed to tell the framework what
14  // data is being produced
16 
17  //now do what ever other initialization is needed
18 }
19 
20 
22 {
23 
24  // do anything here that needs to be done at desctruction time
25  // (e.g. close files, deallocate resources etc.)
26 
27 }
28 
29 
30 //
31 // member functions
32 //
33 
34 // ------------ method called to produce the data ------------
37 {
38  using namespace edm::es;
39 
40  // get the field
42  std::string mfName = "";
43  if (theNavigationPSet.exists("SimpleMagneticField"))
44  mfName = theNavigationPSet.getParameter<std::string>("SimpleMagneticField");
45  iRecord.getRecord<IdealMagneticFieldRecord>().get(mfName,field);
46  // edm::ESInputTag mfESInputTag(mfName);
47  // iRecord.getRecord<IdealMagneticFieldRecord>().get(mfESInputTag,field);
48 
49  //get the geometricsearch tracker geometry
50  edm::ESHandle<GeometricSearchTracker> geometricSearchTracker;
51  iRecord.getRecord<TrackerRecoGeometryRecord>().get(geometricSearchTracker);
52 
54  geometricSearchTracker.product(),
55  field.product()));
56  return theNavigationSchool ;
57 }
T getParameter(std::string const &) const
virtual ReturnType produce(const NavigationSchoolRecord &)
bool exists(std::string const &parameterName) const
checks if a parameter exists
boost::shared_ptr< NavigationSchool > ReturnType
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
tuple field
Definition: statics.py:62
boost::shared_ptr< NavigationSchool > theNavigationSchool
NavigationSchoolESProducer(const edm::ParameterSet &)
SurfaceDeformation * create(int type, const std::vector< double > &params)
T get(const Candidate &c)
Definition: component.h:55