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  : 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  ReturnType parametersDefiner_ (new ParametersDefinerForTP(pset_));
50  return parametersDefiner_ ;
51 }
52 
53 //define this as a plug-in
55 
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