#include <FlexibleKFFittingSmootherESProducer.h>
Public Member Functions | |
FlexibleKFFittingSmootherESProducer (const edm::ParameterSet &p) | |
boost::shared_ptr < TrajectoryFitter > | produce (const TrajectoryFitterRecord &) |
virtual | ~FlexibleKFFittingSmootherESProducer () |
Private Attributes | |
boost::shared_ptr < TrajectoryFitter > | _fitter |
edm::ParameterSet | pset_ |
ESProducer for the FlexibleKFFittingSmoother
Definition at line 18 of file FlexibleKFFittingSmootherESProducer.h.
FlexibleKFFittingSmootherESProducer::FlexibleKFFittingSmootherESProducer | ( | const edm::ParameterSet & | p | ) |
Definition at line 13 of file FlexibleKFFittingSmootherESProducer.cc.
References edm::ParameterSet::getParameter(), and AlCaHLTBitMon_ParallelJobs::p.
{ std::string myname = p.getParameter<std::string>("ComponentName"); pset_ = p; setWhatProduced(this,myname); }
FlexibleKFFittingSmootherESProducer::~FlexibleKFFittingSmootherESProducer | ( | ) | [virtual] |
Definition at line 20 of file FlexibleKFFittingSmootherESProducer.cc.
{}
boost::shared_ptr< TrajectoryFitter > FlexibleKFFittingSmootherESProducer::produce | ( | const TrajectoryFitterRecord & | iRecord | ) |
Definition at line 23 of file FlexibleKFFittingSmootherESProducer.cc.
References FlexibleKFFittingSmoother_cfi::FlexibleKFFittingSmoother, edm::eventsetup::EventSetupRecord::get(), and edm::ESHandle< T >::product().
{ std::string standardFitterName = pset_.getParameter<std::string>("standardFitter"); std::string looperFitterName = pset_.getParameter<std::string>("looperFitter"); edm::ESHandle<TrajectoryFitter> standardFitter; edm::ESHandle<TrajectoryFitter> looperFitter; iRecord.get(standardFitterName,standardFitter); iRecord.get(looperFitterName,looperFitter); _fitter = boost::shared_ptr<TrajectoryFitter>(new FlexibleKFFittingSmoother(*standardFitter.product(), *looperFitter.product() ) ); return _fitter; }
boost::shared_ptr<TrajectoryFitter> FlexibleKFFittingSmootherESProducer::_fitter [private] |
Definition at line 24 of file FlexibleKFFittingSmootherESProducer.h.
Definition at line 25 of file FlexibleKFFittingSmootherESProducer.h.