#include <KFFittingSmootherESProducer.h>
Public Member Functions | |
KFFittingSmootherESProducer (const edm::ParameterSet &p) | |
boost::shared_ptr < TrajectoryFitter > | produce (const TrajectoryFitterRecord &) |
virtual | ~KFFittingSmootherESProducer () |
Private Attributes | |
boost::shared_ptr < TrajectoryFitter > | _fitter |
edm::ParameterSet | pset_ |
ESProducer for the KFFittingSmoother
Definition at line 18 of file KFFittingSmootherESProducer.h.
KFFittingSmootherESProducer::KFFittingSmootherESProducer | ( | const edm::ParameterSet & | p | ) |
Definition at line 20 of file KFFittingSmootherESProducer.cc.
References edm::ParameterSet::getParameter(), and L1TEmulatorMonitor_cff::p.
{ std::string myname = p.getParameter<std::string>("ComponentName"); pset_ = p; setWhatProduced(this,myname); }
KFFittingSmootherESProducer::~KFFittingSmootherESProducer | ( | ) | [virtual] |
Definition at line 27 of file KFFittingSmootherESProducer.cc.
{}
boost::shared_ptr< TrajectoryFitter > KFFittingSmootherESProducer::produce | ( | const TrajectoryFitterRecord & | iRecord | ) |
Definition at line 30 of file KFFittingSmootherESProducer.cc.
References alignmentValidation::fname, edm::eventsetup::EventSetupRecord::get(), KFFittingSmootherESProducer_cfi::KFFittingSmoother, and edm::ESHandle< T >::product().
{ std::string fname = pset_.getParameter<std::string>("Fitter"); std::string sname = pset_.getParameter<std::string>("Smoother"); double theEstimateCut = pset_.getParameter<double>("EstimateCut"); double theLogPixelProbabilityCut = pset_.getParameter<double>("LogPixelProbabilityCut"); // ggiurgiu@fnal.gov int theMinNumberOfHits = pset_.getParameter<int>("MinNumberOfHits"); bool rejectTracksFlag = pset_.getParameter<bool>("RejectTracks"); bool breakTrajWith2ConsecutiveMissing = pset_.getParameter<bool>("BreakTrajWith2ConsecutiveMissing"); bool noInvalidHitsBeginEnd = pset_.getParameter<bool>("NoInvalidHitsBeginEnd"); edm::ESHandle<TrajectoryFitter> fit; edm::ESHandle<TrajectorySmoother> smooth; iRecord.get(fname, fit); iRecord.get(sname, smooth); _fitter = boost::shared_ptr<TrajectoryFitter>(new KFFittingSmoother(*fit.product(), *smooth.product(), theEstimateCut, theLogPixelProbabilityCut, // ggiurgiu@fnal.gov theMinNumberOfHits,rejectTracksFlag, breakTrajWith2ConsecutiveMissing,noInvalidHitsBeginEnd)); return _fitter; }
boost::shared_ptr<TrajectoryFitter> KFFittingSmootherESProducer::_fitter [private] |
Definition at line 24 of file KFFittingSmootherESProducer.h.
Definition at line 25 of file KFFittingSmootherESProducer.h.