#include <SiTrackerMultiRecHitUpdatorMTFESProducer.h>
Public Member Functions | |
boost::shared_ptr < SiTrackerMultiRecHitUpdatorMTF > | produce (const MultiRecHitRecord &) |
SiTrackerMultiRecHitUpdatorMTFESProducer (const edm::ParameterSet &p) | |
virtual | ~SiTrackerMultiRecHitUpdatorMTFESProducer () |
Private Attributes | |
boost::shared_ptr < SiTrackerMultiRecHitUpdatorMTF > | _updator |
edm::ParameterSet | pset_ |
Definition at line 11 of file SiTrackerMultiRecHitUpdatorMTFESProducer.h.
SiTrackerMultiRecHitUpdatorMTFESProducer::SiTrackerMultiRecHitUpdatorMTFESProducer | ( | const edm::ParameterSet & | p | ) |
Definition at line 15 of file SiTrackerMultiRecHitUpdatorMTFESProducer.cc.
References edm::ParameterSet::getParameter(), and L1TEmulatorMonitor_cff::p.
{ std::string myname = p.getParameter<std::string>("ComponentName"); pset_ = p; setWhatProduced(this,myname); }
SiTrackerMultiRecHitUpdatorMTFESProducer::~SiTrackerMultiRecHitUpdatorMTFESProducer | ( | ) | [virtual] |
Definition at line 22 of file SiTrackerMultiRecHitUpdatorMTFESProducer.cc.
{}
boost::shared_ptr< SiTrackerMultiRecHitUpdatorMTF > SiTrackerMultiRecHitUpdatorMTFESProducer::produce | ( | const MultiRecHitRecord & | iRecord | ) |
Definition at line 25 of file SiTrackerMultiRecHitUpdatorMTFESProducer.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<SiTrackerMultiRecHitUpdatorMTF>(new SiTrackerMultiRecHitUpdatorMTF(hbuilder.product(),hhitpropagator.product(),Chi2Cut, annealingProgram)); // _updator = boost::shared_ptr<SiTrackerMultiRecHitUpdator>(new SiTrackerMultiRecHitUpdator(hhitpropagator.product(),annealingProgram)); return _updator; }
boost::shared_ptr<SiTrackerMultiRecHitUpdatorMTF> SiTrackerMultiRecHitUpdatorMTFESProducer::_updator [private] |
Definition at line 17 of file SiTrackerMultiRecHitUpdatorMTFESProducer.h.
Definition at line 18 of file SiTrackerMultiRecHitUpdatorMTFESProducer.h.