CMS 3D CMS Logo

CosmicParametersDefinerForTPESProducer.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 {
21  //the following line is needed to tell the framework what
22  // data is being produced
23  std::string myName=iConfig.getParameter<std::string>("ComponentName");
24  setWhatProduced(this,myName);
25 
26  //now do what ever other initialization is needed
27  //conf_=iConfig;
28 }
29 
30 
32 {
33 
34  // do anything here that needs to be done at desctruction time
35  // (e.g. close files, deallocate resources etc.)
36 
37 }
38 
39 
40 //
41 // member functions
42 //
43 
44 // ------------ method called to produce the data ------------
47 {
48  return std::make_unique<CosmicParametersDefinerForTP>();
49 }
50 
51 //define this as a plug-in
53 
T getParameter(std::string const &) const
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:116
std::unique_ptr< CosmicParametersDefinerForTP > produce(const TrackAssociatorRecord &)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
std::unique_ptr< CosmicParametersDefinerForTP > ReturnType