00001 #include "RecoLocalTracker/SiStripRecHitConverter/interface/SiStripRecHitMatcherESProducer.h" 00002 #include "RecoLocalTracker/SiStripRecHitConverter/interface/SiStripRecHitMatcher.h" 00003 00004 #include "FWCore/Framework/interface/EventSetup.h" 00005 #include "FWCore/Framework/interface/ESHandle.h" 00006 #include "FWCore/Framework/interface/ModuleFactory.h" 00007 #include "FWCore/Framework/interface/ESProducer.h" 00008 00009 00010 00011 #include <string> 00012 #include <memory> 00013 00014 using namespace edm; 00015 00016 SiStripRecHitMatcherESProducer::SiStripRecHitMatcherESProducer(const edm::ParameterSet & p) 00017 { 00018 std::string myname = p.getParameter<std::string>("ComponentName"); 00019 pset_ = p; 00020 setWhatProduced(this,myname); 00021 } 00022 00023 SiStripRecHitMatcherESProducer::~SiStripRecHitMatcherESProducer() {} 00024 00025 boost::shared_ptr<SiStripRecHitMatcher> 00026 SiStripRecHitMatcherESProducer::produce(const TkStripCPERecord & iRecord){ 00027 00028 _matcher = boost::shared_ptr<SiStripRecHitMatcher>(new SiStripRecHitMatcher(pset_)); 00029 return _matcher; 00030 } 00031 00032