CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_5/src/RecoLocalTracker/SiStripRecHitConverter/plugins/SiStripRecHitMatcherESProducer.cc

Go to the documentation of this file.
00001 #include "RecoLocalTracker/SiStripRecHitConverter/plugins/SiStripRecHitMatcherESProducer.h"
00002 
00003 #include "FWCore/Framework/interface/EventSetup.h"
00004 #include "FWCore/Framework/interface/ESHandle.h"
00005 #include "FWCore/Framework/interface/ModuleFactory.h"
00006 #include "FWCore/Framework/interface/ESProducer.h"
00007 
00008 SiStripRecHitMatcherESProducer::SiStripRecHitMatcherESProducer(const edm::ParameterSet & p) 
00009 {
00010   std::string name = p.getParameter<std::string>("ComponentName");
00011   pset_ = p;
00012   setWhatProduced(this,name);
00013 }
00014 
00015 boost::shared_ptr<SiStripRecHitMatcher> SiStripRecHitMatcherESProducer::
00016 produce(const TkStripCPERecord & iRecord)
00017 { 
00018   matcher_  = boost::shared_ptr<SiStripRecHitMatcher>(new SiStripRecHitMatcher(pset_));
00019   return matcher_;
00020 }
00021 
00022