CMS 3D CMS Logo

SiStripRecHitMatcherESProducer.cc
Go to the documentation of this file.
2 
7 
9 {
10  std::string name = p.getParameter<std::string>("ComponentName");
11  pset_ = p;
12  setWhatProduced(this,name);
13 }
14 
15 std::shared_ptr<SiStripRecHitMatcher> SiStripRecHitMatcherESProducer::
16 produce(const TkStripCPERecord & iRecord)
17 {
18  matcher_ = std::make_shared<SiStripRecHitMatcher>(pset_);
19  return matcher_;
20 }
21 
22 
T getParameter(std::string const &) const
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
SiStripRecHitMatcherESProducer(const edm::ParameterSet &)
std::shared_ptr< SiStripRecHitMatcher > produce(const TkStripCPERecord &)
std::shared_ptr< SiStripRecHitMatcher > matcher_