CMS 3D CMS Logo

Public Member Functions | Private Attributes

MRHChi2MeasurementEstimatorESProducer Class Reference

#include <MRHChi2MeasurementEstimatorESProducer.h>

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

List of all members.

Public Member Functions

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

Private Attributes

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

Detailed Description

Definition at line 11 of file MRHChi2MeasurementEstimatorESProducer.h.


Constructor & Destructor Documentation

MRHChi2MeasurementEstimatorESProducer::MRHChi2MeasurementEstimatorESProducer ( const edm::ParameterSet p)

Definition at line 14 of file MRHChi2MeasurementEstimatorESProducer.cc.

References edm::ParameterSet::getParameter(), and AlCaHLTBitMon_ParallelJobs::p.

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

Definition at line 21 of file MRHChi2MeasurementEstimatorESProducer.cc.

{}

Member Function Documentation

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

Definition at line 24 of file MRHChi2MeasurementEstimatorESProducer.cc.

References MRHChi2MeasurementEstimatorESProducer_cfi::MRHChi2MeasurementEstimator.

                                                                                     { 
  
  double maxChi2 = pset_.getParameter<double>("MaxChi2");
  double nSigma = pset_.getParameter<double>("nSigma");
  _estimator = boost::shared_ptr<Chi2MeasurementEstimatorBase>(new MRHChi2MeasurementEstimator(maxChi2,nSigma));
  return _estimator;
}

Member Data Documentation

Definition at line 17 of file MRHChi2MeasurementEstimatorESProducer.h.

Definition at line 18 of file MRHChi2MeasurementEstimatorESProducer.h.