CMS 3D CMS Logo

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