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
T getParameter(std::string const &) const
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:124
ParametersDefinerForTPESProducer(const edm::ParameterSet &p)
std::unique_ptr< ParametersDefinerForTP > produce(const TrackAssociatorRecord &)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
std::unique_ptr< ParametersDefinerForTP > ReturnType