#include <SiTrackerMultiRecHitUpdatorESProducer.h>
Public Member Functions | |
boost::shared_ptr < SiTrackerMultiRecHitUpdator > | produce (const MultiRecHitRecord &) |
SiTrackerMultiRecHitUpdatorESProducer (const edm::ParameterSet &p) | |
virtual | ~SiTrackerMultiRecHitUpdatorESProducer () |
Private Attributes | |
boost::shared_ptr < SiTrackerMultiRecHitUpdator > | _updator |
edm::ParameterSet | pset_ |
Definition at line 11 of file SiTrackerMultiRecHitUpdatorESProducer.h.
SiTrackerMultiRecHitUpdatorESProducer::SiTrackerMultiRecHitUpdatorESProducer | ( | const edm::ParameterSet & | p | ) |
Definition at line 15 of file SiTrackerMultiRecHitUpdatorESProducer.cc.
References edm::ParameterSet::getParameter(), and L1TEmulatorMonitor_cff::p.
{ std::string myname = p.getParameter<std::string>("ComponentName"); pset_ = p; setWhatProduced(this,myname); }
SiTrackerMultiRecHitUpdatorESProducer::~SiTrackerMultiRecHitUpdatorESProducer | ( | ) | [virtual] |
Definition at line 22 of file SiTrackerMultiRecHitUpdatorESProducer.cc.
{}
boost::shared_ptr< SiTrackerMultiRecHitUpdator > SiTrackerMultiRecHitUpdatorESProducer::produce | ( | const MultiRecHitRecord & | iRecord | ) |
Definition at line 25 of file SiTrackerMultiRecHitUpdatorESProducer.cc.
References edm::eventsetup::EventSetupRecord::get(), and edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord().
{ std::vector<double> annealingProgram = pset_.getParameter<std::vector<double> >("AnnealingProgram"); float Chi2Cut=pset_.getParameter<double>("ChiSquareCut"); edm::ESHandle<TransientTrackingRecHitBuilder> hbuilder; std::string sname = pset_.getParameter<std::string>("TTRHBuilder"); iRecord.getRecord<TransientRecHitRecord>().get(sname, hbuilder); std::string hitpropagator = pset_.getParameter<std::string>("HitPropagator"); edm::ESHandle<TrackingRecHitPropagator> hhitpropagator; iRecord.getRecord<CkfComponentsRecord>().getRecord<TrackingComponentsRecord>().get(hitpropagator, hhitpropagator); //_updator = boost::shared_ptr<SiTrackerMultiRecHitUpdator>(new SiTrackerMultiRecHitUpdator(pDD.product(), pp, sp, mp, annealingProgram)); _updator = boost::shared_ptr<SiTrackerMultiRecHitUpdator>(new SiTrackerMultiRecHitUpdator(hbuilder.product(),hhitpropagator.product(), Chi2Cut, annealingProgram)); // _updator = boost::shared_ptr<SiTrackerMultiRecHitUpdator>(new SiTrackerMultiRecHitUpdator(hhitpropagator.product(),annealingProgram)); return _updator; }
boost::shared_ptr<SiTrackerMultiRecHitUpdator> SiTrackerMultiRecHitUpdatorESProducer::_updator [private] |
Definition at line 17 of file SiTrackerMultiRecHitUpdatorESProducer.h.
Definition at line 18 of file SiTrackerMultiRecHitUpdatorESProducer.h.