CMS 3D CMS Logo

Public Member Functions | Private Attributes

SiTrackerMultiRecHitUpdatorESProducer Class Reference

#include <SiTrackerMultiRecHitUpdatorESProducer.h>

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

List of all members.

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_

Detailed Description

Definition at line 11 of file SiTrackerMultiRecHitUpdatorESProducer.h.


Constructor & Destructor Documentation

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.

{}

Member Function Documentation

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

Member Data Documentation

Definition at line 17 of file SiTrackerMultiRecHitUpdatorESProducer.h.

Definition at line 18 of file SiTrackerMultiRecHitUpdatorESProducer.h.