CMS 3D CMS Logo

Public Member Functions | Private Attributes

Chi2MeasurementEstimatorESProducer Class Reference

#include <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(), and L1TEmulatorMonitor_cff::p.

{
  std::string myname = p.getParameter<std::string>("ComponentName");
  pset_ = p;
  setWhatProduced(this,myname);
}
Chi2MeasurementEstimatorESProducer::~Chi2MeasurementEstimatorESProducer ( ) [virtual]

Definition at line 22 of file Chi2MeasurementEstimatorESProducer.cc.

{}

Member Function Documentation

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

Definition at line 25 of file Chi2MeasurementEstimatorESProducer.cc.

References Chi2MeasurementEstimatorESProducer_cfi::Chi2MeasurementEstimator.

                                                                                   { 
//   if (_updator){
//     delete _updator;
//     _updator = 0;
//   }
  double maxChi2 = pset_.getParameter<double>("MaxChi2");
  double nSigma = pset_.getParameter<double>("nSigma");

  
  _estimator = boost::shared_ptr<Chi2MeasurementEstimatorBase>(new Chi2MeasurementEstimator(maxChi2,nSigma));
  return _estimator;
}

Member Data Documentation

Definition at line 24 of file Chi2MeasurementEstimatorESProducer.h.

Definition at line 25 of file Chi2MeasurementEstimatorESProducer.h.