CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiTrackerMultiRecHitUpdatorESProducer.cc
Go to the documentation of this file.
4 
9 
10 #include <string>
11 #include <memory>
12 
13 using namespace edm;
14 
16 {
17  std::string myname = p.getParameter<std::string>("ComponentName");
18  pset_ = p;
19  setWhatProduced(this,myname);
20 }
21 
23 
24 boost::shared_ptr<SiTrackerMultiRecHitUpdator>
26  std::vector<double> annealingProgram = pset_.getParameter<std::vector<double> >("AnnealingProgram");
27  float Chi2Cut=pset_.getParameter<double>("ChiSquareCut");
28 
30  std::string sname = pset_.getParameter<std::string>("TTRHBuilder");
31  iRecord.getRecord<TransientRecHitRecord>().get(sname, hbuilder);
32  std::string hitpropagator = pset_.getParameter<std::string>("HitPropagator");
34  iRecord.getRecord<CkfComponentsRecord>().getRecord<TrackingComponentsRecord>().get(hitpropagator, hhitpropagator);
35 
36  bool debug = pset_.getParameter<bool>("Debug");
37  //_updator = boost::shared_ptr<SiTrackerMultiRecHitUpdator>(new SiTrackerMultiRecHitUpdator(pDD.product(), pp, sp, mp, annealingProgram));
38  _updator = boost::shared_ptr<SiTrackerMultiRecHitUpdator>(new SiTrackerMultiRecHitUpdator(hbuilder.product(),hhitpropagator.product(), Chi2Cut, annealingProgram, debug));
39  // _updator = boost::shared_ptr<SiTrackerMultiRecHitUpdator>(new SiTrackerMultiRecHitUpdator(hhitpropagator.product(),annealingProgram));
40  return _updator;
41 }
42 
43 
T getParameter(std::string const &) const
boost::shared_ptr< SiTrackerMultiRecHitUpdator > produce(const MultiRecHitRecord &)
void get(HolderT &iHolder) const
#define debug
Definition: HDRShower.cc:19