CMS 3D CMS Logo

Chi2MeasurementEstimatorESProducer Class Reference

ESProducer for Chi2MeasurementEstimator. More...

#include <TrackingTools/KalmanUpdators/interface/Chi2MeasurementEstimatorESProducer.h>

Inheritance diagram for Chi2MeasurementEstimatorESProducer:

edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

List of all members.

Public Member Functions

 Chi2MeasurementEstimatorESProducer (const edm::ParameterSet &p)
boost::shared_ptr
< Chi2MeasurementEstimatorBase
produce (const TrackingComponentsRecord &)
virtual ~Chi2MeasurementEstimatorESProducer ()

Private Attributes

boost::shared_ptr
< Chi2MeasurementEstimatorBase
_estimator
edm::ParameterSet pset_


Detailed Description

ESProducer for Chi2MeasurementEstimator.

Date
2007/05/09 14:05:13
Revision
1.2
Author:
cerati

Definition at line 18 of file Chi2MeasurementEstimatorESProducer.h.


Constructor & Destructor Documentation

Chi2MeasurementEstimatorESProducer::Chi2MeasurementEstimatorESProducer ( const edm::ParameterSet p  ) 

Definition at line 15 of file Chi2MeasurementEstimatorESProducer.cc.

References edm::ParameterSet::getParameter(), pset_, and edm::ESProducer::setWhatProduced().

00016 {
00017   std::string myname = p.getParameter<std::string>("ComponentName");
00018   pset_ = p;
00019   setWhatProduced(this,myname);
00020 }

Chi2MeasurementEstimatorESProducer::~Chi2MeasurementEstimatorESProducer (  )  [virtual]

Definition at line 22 of file Chi2MeasurementEstimatorESProducer.cc.

00022 {}


Member Function Documentation

boost::shared_ptr< Chi2MeasurementEstimatorBase > Chi2MeasurementEstimatorESProducer::produce ( const TrackingComponentsRecord iRecord  ) 

Definition at line 25 of file Chi2MeasurementEstimatorESProducer.cc.

References _estimator, Chi2MeasurementEstimatorESProducer_cfi::Chi2MeasurementEstimator, edm::ParameterSet::getParameter(), HLT_VtxMuL3::nSigma, and pset_.

00025                                                                                    { 
00026 //   if (_updator){
00027 //     delete _updator;
00028 //     _updator = 0;
00029 //   }
00030   double maxChi2 = pset_.getParameter<double>("MaxChi2");
00031   double nSigma = pset_.getParameter<double>("nSigma");
00032 
00033   
00034   _estimator = boost::shared_ptr<Chi2MeasurementEstimatorBase>(new Chi2MeasurementEstimator(maxChi2,nSigma));
00035   return _estimator;
00036 }


Member Data Documentation

boost::shared_ptr<Chi2MeasurementEstimatorBase> Chi2MeasurementEstimatorESProducer::_estimator [private]

Definition at line 24 of file Chi2MeasurementEstimatorESProducer.h.

Referenced by produce().

edm::ParameterSet Chi2MeasurementEstimatorESProducer::pset_ [private]

Definition at line 25 of file Chi2MeasurementEstimatorESProducer.h.

Referenced by Chi2MeasurementEstimatorESProducer(), and produce().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:16:18 2009 for CMSSW by  doxygen 1.5.4