CMS 3D CMS Logo

Public Member Functions | Private Attributes

FlexibleKFFittingSmootherESProducer Class Reference

#include <FlexibleKFFittingSmootherESProducer.h>

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

List of all members.

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_

Detailed Description

ESProducer for the FlexibleKFFittingSmoother

Date:
2012/03/06 16:35:57
Revision:
1.1
Author:
mangano

Definition at line 18 of file FlexibleKFFittingSmootherESProducer.h.


Constructor & Destructor Documentation

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.

{}

Member Function Documentation

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

Member Data Documentation

Definition at line 24 of file FlexibleKFFittingSmootherESProducer.h.

Definition at line 25 of file FlexibleKFFittingSmootherESProducer.h.