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.
2 
3 
4 //
5 //
6 // constructors and destructor
7 //
9 {
10  theNavigationPSet = iConfig;
12  //the following line is needed to tell the framework what
13  // data is being produced
15 
16  //now do what ever other initialization is needed
17 }
18 
19 
21 {
22 
23  // do anything here that needs to be done at desctruction time
24  // (e.g. close files, deallocate resources etc.)
25 
26 }
27 
28 
29 //
30 // member functions
31 //
32 
33 // ------------ method called to produce the data ------------
36 {
37  using namespace edm::es;
38 
39  // get the field
41  iRecord.getRecord<IdealMagneticFieldRecord>().get(field);
42 
43  //get the geometricsearch tracker geometry
44  edm::ESHandle<GeometricSearchTracker> geometricSearchTracker;
45  iRecord.getRecord<TrackerRecoGeometryRecord>().get(geometricSearchTracker);
46 
48  geometricSearchTracker.product(),
49  field.product()));
50  return theNavigationSchool ;
51 }
T getParameter(std::string const &) const
virtual ReturnType produce(const NavigationSchoolRecord &)
boost::shared_ptr< NavigationSchool > ReturnType
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
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:56