CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/TrackingTools/KalmanUpdators/plugins/MRHChi2MeasurementEstimatorESProducer.cc

Go to the documentation of this file.
00001 #include "TrackingTools/KalmanUpdators/interface/MRHChi2MeasurementEstimatorESProducer.h"
00002 
00003 #include "FWCore/Framework/interface/EventSetup.h"
00004 #include "FWCore/Framework/interface/ESHandle.h"
00005 #include "FWCore/Framework/interface/ModuleFactory.h"
00006 #include "FWCore/Framework/interface/ESProducer.h"
00007 
00008 
00009 #include <string>
00010 #include <memory>
00011 
00012 using namespace edm;
00013 
00014 MRHChi2MeasurementEstimatorESProducer::MRHChi2MeasurementEstimatorESProducer(const edm::ParameterSet & p) 
00015 {
00016   std::string myname = p.getParameter<std::string>("ComponentName");
00017   pset_ = p;
00018   setWhatProduced(this,myname);
00019 }
00020 
00021 MRHChi2MeasurementEstimatorESProducer::~MRHChi2MeasurementEstimatorESProducer() {}
00022 
00023 boost::shared_ptr<Chi2MeasurementEstimatorBase> 
00024 MRHChi2MeasurementEstimatorESProducer::produce(const TrackingComponentsRecord& iRecord){ 
00025   
00026   double maxChi2 = pset_.getParameter<double>("MaxChi2");
00027   double nSigma = pset_.getParameter<double>("nSigma");
00028   _estimator = boost::shared_ptr<Chi2MeasurementEstimatorBase>(new MRHChi2MeasurementEstimator(maxChi2,nSigma));
00029   return _estimator;
00030 }
00031 
00032