CMS 3D CMS Logo

SiTrackerMultiRecHitUpdatorESProducer.cc
Go to the documentation of this file.
4 
9 
10 #include <string>
11 #include <memory>
12 
13 using namespace edm;
14 
16  std::string myname = p.getParameter<std::string>("ComponentName");
17  pset_ = p;
18  setWhatProduced(this, myname);
19 }
20 
22 
23 std::unique_ptr<SiTrackerMultiRecHitUpdator> SiTrackerMultiRecHitUpdatorESProducer::produce(
24  const MultiRecHitRecord& iRecord) {
25  std::vector<double> annealingProgram = pset_.getParameter<std::vector<double> >("AnnealingProgram");
26  float Chi2Cut1D = pset_.getParameter<double>("ChiSquareCut1D");
27  float Chi2Cut2D = pset_.getParameter<double>("ChiSquareCut2D");
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 = std::make_unique<SiTrackerMultiRecHitUpdator>(pDD.product(), pp, sp, mp, annealingProgram);
38  // _updator = std::make_unique<SiTrackerMultiRecHitUpdator>(hhitpropagator.product(),annealingProgram);
39  return std::make_unique<SiTrackerMultiRecHitUpdator>(
40  hbuilder.product(), hhitpropagator.product(), Chi2Cut1D, Chi2Cut2D, annealingProgram, debug);
41 }
edm::eventsetup::DependentRecordImplementation::getRecord
const DepRecordT getRecord() const
Definition: DependentRecordImplementation.h:50
MultiRecHitRecord
Definition: MultiRecHitRecord.h:12
ESHandle.h
edm
HLT enums.
Definition: AlignableModifier.h:19
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
TransientRecHitRecord.h
TransientRecHitRecord
Definition: TransientRecHitRecord.h:14
ESProducer.h
CkfComponentsRecord.h
debug
#define debug
Definition: HDRShower.cc:19
CkfComponentsRecord
Definition: CkfComponentsRecord.h:22
edm::ESHandle< TransientTrackingRecHitBuilder >
edm::eventsetup::DependentRecordImplementation::get
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
Definition: DependentRecordImplementation.h:109
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:47
edm::get
T const & get(Event const &event, InputTag const &tag) noexcept(false)
Definition: Event.h:675
SiTrackerMultiRecHitUpdatorESProducer::SiTrackerMultiRecHitUpdatorESProducer
SiTrackerMultiRecHitUpdatorESProducer(const edm::ParameterSet &p)
Definition: SiTrackerMultiRecHitUpdatorESProducer.cc:15
SiTrackerMultiRecHitUpdatorESProducer::~SiTrackerMultiRecHitUpdatorESProducer
~SiTrackerMultiRecHitUpdatorESProducer() override
Definition: SiTrackerMultiRecHitUpdatorESProducer.cc:21
SiTrackerMultiRecHitUpdatorESProducer.h
ModuleFactory.h
SiTrackerMultiRecHitUpdatorESProducer::produce
std::unique_ptr< SiTrackerMultiRecHitUpdator > produce(const MultiRecHitRecord &)
Definition: SiTrackerMultiRecHitUpdatorESProducer.cc:23
EventSetup.h