CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ParametersDefinerForTPESProducer.cc
Go to the documentation of this file.
5 
6 // system include files
7 #include <memory>
8 #include "boost/shared_ptr.hpp"
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 ParametersDefinerForTP());
49  return parametersDefiner_ ;
50 }
51 
52 //define this as a plug-in
54 
T getParameter(std::string const &) const
ParametersDefinerForTPESProducer(const edm::ParameterSet &p)
boost::shared_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
boost::shared_ptr< ParametersDefinerForTP > ReturnType