test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  ReturnType parametersDefiner_ (new CosmicParametersDefinerForTP());
49  return parametersDefiner_ ;
50 }
51 
52 //define this as a plug-in
54 
T getParameter(std::string const &) const
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
std::shared_ptr< CosmicParametersDefinerForTP > ReturnType
std::shared_ptr< CosmicParametersDefinerForTP > produce(const TrackAssociatorRecord &)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60