CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MuonRoadTrajectoryBuilderESProducer.cc
Go to the documentation of this file.
2 
6 
8 {
9  std::string myName = iConfig.getParameter<std::string>("ComponentName");
10  measurementTrackerName = iConfig.getParameter<std::string>("measurementTrackerName");
11  propagatorName = iConfig.getParameter<std::string>("propagatorName");
12  pset_ = iConfig;
13  setWhatProduced(this,myName);
14 }
15 
17 {
18 
19  // do anything here that needs to be done at desctruction time
20  // (e.g. close files, deallocate resources etc.)
21 
22 }
23 
24 boost::shared_ptr<TrajectoryBuilder>
26 {
27  using namespace edm::es;
28 
29  edm::ESHandle<MeasurementTracker> measurementTrackerHandle;
30  edm::ESHandle<Propagator> propagatorHandle;
31 
32  iRecord.get(measurementTrackerName,measurementTrackerHandle);
33  iRecord.getRecord<TrackingComponentsRecord>().get(propagatorName,propagatorHandle);
34 
35  _trajectorybuilder = boost::shared_ptr<TrajectoryBuilder>(new MuonRoadTrajectoryBuilder(pset_,
36  measurementTrackerHandle.product(),
37  propagatorHandle->magneticField(),
38  propagatorHandle.product())
39  );
40  return _trajectorybuilder;
41 }
T getParameter(std::string const &) const
boost::shared_ptr< TrajectoryBuilder > _trajectorybuilder
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
void get(HolderT &iHolder) const
boost::shared_ptr< TrajectoryBuilder > produce(const CkfComponentsRecord &)