CMS 3D CMS Logo

Public Member Functions | Private Attributes

SiTrackerMultiRecHitUpdatorMTFESProducer Class Reference

#include <SiTrackerMultiRecHitUpdatorMTFESProducer.h>

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

List of all members.

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_

Detailed Description

Definition at line 11 of file SiTrackerMultiRecHitUpdatorMTFESProducer.h.


Constructor & Destructor Documentation

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.

{}

Member Function Documentation

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;
}

Member Data Documentation

Definition at line 17 of file SiTrackerMultiRecHitUpdatorMTFESProducer.h.

Definition at line 18 of file SiTrackerMultiRecHitUpdatorMTFESProducer.h.