test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
KFFittingSmootherESProducer.cc
Go to the documentation of this file.
4 
9 
14 
15 #include <string>
16 #include <memory>
17 
18 using namespace edm;
19 
21 {
22  std::string myname = p.getParameter<std::string>("ComponentName");
23  pset_ = p;
24  setWhatProduced(this,myname);
25 }
26 
28 
29 boost::shared_ptr<TrajectoryFitter>
31 
32  std::string fname = pset_.getParameter<std::string>("Fitter");
33  std::string sname = pset_.getParameter<std::string>("Smoother");
34  double theEstimateCut = pset_.getParameter<double>("EstimateCut");
35 
36  double theLogPixelProbabilityCut = pset_.getParameter<double>("LogPixelProbabilityCut"); // ggiurgiu@fnal.gov
37 
38  int theMinNumberOfHits = pset_.getParameter<int>("MinNumberOfHits");
39  bool rejectTracksFlag = pset_.getParameter<bool>("RejectTracks");
40  bool breakTrajWith2ConsecutiveMissing = pset_.getParameter<bool>("BreakTrajWith2ConsecutiveMissing");
41  bool noInvalidHitsBeginEnd = pset_.getParameter<bool>("NoInvalidHitsBeginEnd");
42 
45 
46  iRecord.get(fname, fit);
47  iRecord.get(sname, smooth);
48 
49  _fitter = boost::shared_ptr<TrajectoryFitter>(new KFFittingSmoother(*fit.product(), *smooth.product(),
50  theEstimateCut,
51  theLogPixelProbabilityCut, // ggiurgiu@fnal.gov
52  theMinNumberOfHits,rejectTracksFlag,
53  breakTrajWith2ConsecutiveMissing,noInvalidHitsBeginEnd));
54  return _fitter;
55 }
56 
57 
T getParameter(std::string const &) const
void get(HolderT &iHolder) const
KFFittingSmootherESProducer(const edm::ParameterSet &p)
T const * product() const
Definition: ESHandle.h:62
boost::shared_ptr< TrajectoryFitter > produce(const TrajectoryFitterRecord &)
string fname
main script