CMS 3D CMS Logo

FakePixelCPEESProducer.cc
Go to the documentation of this file.
2 
9 
14 
15 #include <string>
16 #include <memory>
17 
21 
22 namespace {
23 
24  class FakePixelCPEESProducer final : public edm::ESProducer {
25  public:
26  FakePixelCPEESProducer(const edm::ParameterSet &p) {
27  std::string myname = p.getParameter<std::string>("ComponentName");
28  setWhatProduced(this, myname);
29  }
30 
31  ~FakePixelCPEESProducer() override = default;
32 
33  std::unique_ptr<PixelClusterParameterEstimator> produce(const TkPixelCPERecord &) {
34  return std::make_unique<PixelFakeCPE>();
35  }
36 
37  private:
38  };
39 
40 } // namespace
41 
45 
46 DEFINE_FWK_EVENTSETUP_MODULE(FakePixelCPEESProducer);
T getParameter(std::string const &) const
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:138
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60