CMS 3D CMS Logo

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