CMS 3D CMS Logo

Public Member Functions | Private Attributes

KFFittingSmootherESProducer Class Reference

#include <KFFittingSmootherESProducer.h>

Inheritance diagram for KFFittingSmootherESProducer:
edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

List of all members.

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_

Detailed Description

ESProducer for the KFFittingSmoother

Date:
2009/07/03 01:10:26
Revision:
1.3
Author:
cerati

Definition at line 18 of file KFFittingSmootherESProducer.h.


Constructor & Destructor Documentation

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.

{}

Member Function Documentation

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;
}

Member Data Documentation

Definition at line 24 of file KFFittingSmootherESProducer.h.

Definition at line 25 of file KFFittingSmootherESProducer.h.