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), 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 
ESHandle.h
MTDCPERecord
Definition: MTDCPERecord.h:10
MTDCPERecord.h
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:36
MTDCPEESProducer::ddToken_
const edm::ESGetToken< MTDGeometry, MTDDigiGeometryRecord > ddToken_
Definition: MTDCPEESProducer.cc:29
fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::eventsetup::DependentRecordImplementation::get
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
Definition: DependentRecordImplementation.h:109
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
MTDCPEESProducer
Definition: MTDCPEESProducer.cc:18
edm::ParameterSet
Definition: ParameterSet.h:47
MTDCPEBase.h
ModuleDef.h
edm::ESGetToken< MTDGeometry, MTDDigiGeometryRecord >
ModuleFactory.h
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
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:41
MTDCPEESProducer::MTDCPEESProducer
MTDCPEESProducer(const edm::ParameterSet &p)
Definition: MTDCPEESProducer.cc:32
edm::ESProducer
Definition: ESProducer.h:104
ParameterSet.h
MTDCPEESProducer::pset_
const edm::ParameterSet pset_
Definition: MTDCPEESProducer.cc:28