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 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;
34  setWhatProduced(this, "MTDCPEBase").setConsumes(ddToken_);
35 }
36 
37 // Configuration descriptions
40  descriptions.add("MTDCPEESProducer", desc);
41 }
42 
43 std::unique_ptr<MTDClusterParameterEstimator> MTDCPEESProducer::produce(const MTDCPERecord& iRecord) {
44  return std::make_unique<MTDCPEBase>(pset_, iRecord.get(ddToken_));
45 }
46 
49 
ESHandle.h
MTDCPERecord
Definition: MTDCPERecord.h:10
MTDCPERecord.h
MTDCPEESProducer::pset_
edm::ParameterSet pset_
Definition: MTDCPEESProducer.cc:28
edm
HLT enums.
Definition: AlignableModifier.h:19
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
ESProducer.h
MTDDigiGeometryRecord.h
MakerMacros.h
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
MTDCPEESProducer::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: MTDCPEESProducer.cc:38
fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::eventsetup::DependentRecordImplementation::get
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
Definition: DependentRecordImplementation.h:112
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
MTDCPEESProducer::ddToken_
edm::ESGetToken< MTDGeometry, MTDDigiGeometryRecord > ddToken_
Definition: MTDCPEESProducer.cc:29
MTDCPEESProducer
Definition: MTDCPEESProducer.cc:18
edm::ParameterSet
Definition: ParameterSet.h:36
MTDCPEBase.h
ModuleDef.h
edm::ESGetToken< MTDGeometry, MTDDigiGeometryRecord >
ModuleFactory.h
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
EventSetup.h
MTDClusterParameterEstimator.h
MTDCPEESProducer::produce
std::unique_ptr< MTDClusterParameterEstimator > produce(const MTDCPERecord &)
Definition: MTDCPEESProducer.cc:43
MTDCPEESProducer::MTDCPEESProducer
MTDCPEESProducer(const edm::ParameterSet &p)
Definition: MTDCPEESProducer.cc:32
edm::ESProducer
Definition: ESProducer.h:101
ParameterSet.h