CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 public:
21  ~MTDCPEESProducer() override = default;
22 
23  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
24 
25  std::unique_ptr<MTDClusterParameterEstimator> produce(const MTDCPERecord&);
26 
27 private:
30 };
31 
33  : pset_(p), ddToken_(setWhatProduced(this, "MTDCPEBase").consumes()) {}
34 
35 // Configuration descriptions
38  descriptions.add("MTDCPEESProducer", desc);
39 }
40 
41 std::unique_ptr<MTDClusterParameterEstimator> MTDCPEESProducer::produce(const MTDCPERecord& iRecord) {
42  return std::make_unique<MTDCPEBase>(pset_, iRecord.get(ddToken_));
43 }
44 
47 
MTDCPEESProducer(const edm::ParameterSet &p)
const edm::ESGetToken< MTDGeometry, MTDDigiGeometryRecord > ddToken_
const edm::ParameterSet pset_
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
std::unique_ptr< MTDClusterParameterEstimator > produce(const MTDCPERecord &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
void add(std::string const &label, ParameterSetDescription const &psetDescription)