CMS 3D CMS Logo

ParametersDefinerForTPESProducer.cc
Go to the documentation of this file.
5 
6 // system include files
7 #include <memory>
8 
12 
15 
17  // the following line is needed to tell the framework what
18  // data is being produced
19  std::string myName = iConfig.getParameter<std::string>("ComponentName");
20  setWhatProduced(this, myName);
21 
22  // now do what ever other initialization is needed
23  // conf_=iConfig;
24 }
25 
27  // do anything here that needs to be done at desctruction time
28  // (e.g. close files, deallocate resources etc.)
29 }
30 
31 //
32 // member functions
33 //
34 
35 // ------------ method called to produce the data ------------
37  const TrackAssociatorRecord &iRecord) {
38  return std::make_unique<ParametersDefinerForTP>(pset_);
39 }
40 
41 // define this as a plug-in
ParametersDefinerForTPESProducer::pset_
edm::ParameterSet pset_
Definition: ParametersDefinerForTPESProducer.h:20
ParametersDefinerForTPESProducer::ParametersDefinerForTPESProducer
ParametersDefinerForTPESProducer(const edm::ParameterSet &p)
Definition: ParametersDefinerForTPESProducer.cc:16
ParametersDefinerForTPESProducer::produce
std::unique_ptr< ParametersDefinerForTP > produce(const TrackAssociatorRecord &)
Definition: ParametersDefinerForTPESProducer.cc:36
ESHandle.h
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:163
ESProducer.h
TrackAssociatorRecord
Definition: TrackAssociatorRecord.h:18
ParametersDefinerForTPESProducer
Definition: ParametersDefinerForTPESProducer.h:12
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ParametersDefinerForTPESProducer.h
edm::ParameterSet
Definition: ParameterSet.h:47
TrackAssociatorRecord.h
ModuleFactory.h
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
ParametersDefinerForTPESProducer::~ParametersDefinerForTPESProducer
~ParametersDefinerForTPESProducer() override
Definition: ParametersDefinerForTPESProducer.cc:26
ParameterSet.h
ParametersDefinerForTPESProducer::ReturnType
std::unique_ptr< ParametersDefinerForTP > ReturnType
Definition: ParametersDefinerForTPESProducer.h:13