CMS 3D CMS Logo

MTDCPEESProducer.cc
Go to the documentation of this file.
4 
6 
12 
13 #include <string>
14 #include <memory>
15 
16 using namespace edm;
17 
19 {
20  public:
22  ~MTDCPEESProducer() override = default;
23 
24  static void fillDescriptions(edm::ConfigurationDescriptions & descriptions);
25 
26  std::unique_ptr<MTDClusterParameterEstimator> produce(const MTDCPERecord &);
27 
28  private:
30 };
31 
32 
34 {
35  pset_ = p;
36  setWhatProduced(this,"MTDCPEBase");
37 }
38 
39 // Configuration descriptions
40 void
43  descriptions.add("MTDCPEESProducer", desc);
44 }
45 
46 std::unique_ptr<MTDClusterParameterEstimator>
48 {
50  iRecord.getRecord<MTDDigiGeometryRecord>().get( pDD );
51 
52  return std::make_unique<MTDCPEBase>(
53  pset_,
54  *pDD.product()
55  );
56 }
57 
60 
MTDCPEESProducer(const edm::ParameterSet &p)
edm::ParameterSet pset_
std::unique_ptr< MTDClusterParameterEstimator > produce(const MTDCPERecord &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
HLT enums.
T const * product() const
Definition: ESHandle.h:86