CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CkfDebugTrajectoryBuilderESProducer.cc
Go to the documentation of this file.
3 
8 
15 
19 
20 #include <string>
21 #include <memory>
22 
23 using namespace edm;
24 
26 {
27  std::string myName = p.getParameter<std::string>("ComponentName");
28  pset_ = p;
29  setWhatProduced(this,myName);
30 }
31 
33 
34 boost::shared_ptr<TrajectoryBuilder>
36 {
37  std::string updatorName = pset_.getParameter<std::string>("updator");
38  std::string propagatorAlongName = pset_.getParameter<std::string>("propagatorAlong");
39  std::string propagatorOppositeName = pset_.getParameter<std::string>("propagatorOpposite");
40  std::string estimatorName = pset_.getParameter<std::string>("estimator");
41  std::string recHitBuilderName = pset_.getParameter<std::string>("TTRHBuilder");
42 
44  edm::ESHandle<Propagator> propagatorAlongHandle;
45  edm::ESHandle<Propagator> propagatorOppositeHandle;
48  edm::ESHandle<MeasurementTracker> measurementTrackerHandle;
49 
50  iRecord.getRecord<TrackingComponentsRecord>().get(updatorName,updatorHandle);
51  iRecord.getRecord<TrackingComponentsRecord>().get(propagatorAlongName,propagatorAlongHandle);
52  iRecord.getRecord<TrackingComponentsRecord>().get(propagatorOppositeName,propagatorOppositeHandle);
53  iRecord.getRecord<TrackingComponentsRecord>().get(estimatorName,estimatorHandle);
54  iRecord.getRecord<TransientRecHitRecord>().get(recHitBuilderName,recHitBuilderHandle);
55  iRecord.get(measurementTrackerHandle);
56 
57  _trajectoryBuilder =
58  boost::shared_ptr<TrajectoryBuilder>(new CkfDebugTrajectoryBuilder(pset_,
59  updatorHandle.product(),
60  propagatorAlongHandle.product(),
61  propagatorOppositeHandle.product(),
62  estimatorHandle.product(),
63  recHitBuilderHandle.product(),
64  measurementTrackerHandle.product()) );
65  // CkfDebugger dbg( es, theMeasurementTracker);
66  // _trajectoryBuilder->setDebugger( dbg);
67  return _trajectoryBuilder;
68 }
T getParameter(std::string const &) const
void get(HolderT &iHolder) const
T const * product() const
Definition: ESHandle.h:62
boost::shared_ptr< TrajectoryBuilder > produce(const CkfComponentsRecord &)