CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FlexibleKFFittingSmootherESProducer.cc
Go to the documentation of this file.
2 
7 
8 #include <string>
9 #include <memory>
10 
11 using namespace edm;
12 
14 {
15  std::string myname = p.getParameter<std::string>("ComponentName");
16  pset_ = p;
17  setWhatProduced(this,myname);
18 }
19 
21 
22 boost::shared_ptr<TrajectoryFitter>
24 
25  std::string standardFitterName = pset_.getParameter<std::string>("standardFitter");
26  std::string looperFitterName = pset_.getParameter<std::string>("looperFitter");
27 
28  edm::ESHandle<TrajectoryFitter> standardFitter;
30 
31  iRecord.get(standardFitterName,standardFitter);
32  iRecord.get(looperFitterName,looperFitter);
33 
34  _fitter = boost::shared_ptr<TrajectoryFitter>(new FlexibleKFFittingSmoother(*standardFitter.product(),
35  *looperFitter.product() ) );
36  return _fitter;
37 }
38 
39 
T getParameter(std::string const &) const
void get(HolderT &iHolder) const
boost::shared_ptr< TrajectoryFitter > produce(const TrajectoryFitterRecord &)
T const * product() const
Definition: ESHandle.h:62