CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalRecAlgoESProducer.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: HcalRecAlgoESProducer
4 // Class: HcalRecAlgoESProducer
5 //
13 //
14 // Original Author: Radek Ofierzynski
15 // Created: Mon Feb 9 10:59:46 CET 2009
16 // $Id$
17 //
18 //
19 
20 
21 // system include files
22 #include <memory>
23 #include "boost/shared_ptr.hpp"
24 
25 // user include files
28 
30 
34 
35 
36 
37 //
38 // class decleration
39 //
40 
42  public:
44 
46 
47  typedef boost::shared_ptr<HcalSeverityLevelComputer> ReturnType;
48 
50  private:
51  // ----------member data ---------------------------
53 };
54 
55 //
56 // constants, enums and typedefs
57 //
58 
59 //
60 // static data member definitions
61 //
62 
63 //
64 // constructors and destructor
65 //
67 {
68  //the following line is needed to tell the framework what
69  // data is being produced
70  setWhatProduced(this);
71 
72  //now do what ever other initialization is needed
74 }
75 
76 
78 {
79 
80  // do anything here that needs to be done at desctruction time
81  // (e.g. close files, deallocate resources etc.)
82 
83 }
84 
85 
86 //
87 // member functions
88 //
89 
90 // ------------ method called to produce the data ------------
93 {
94  using namespace edm::es;
95 
96  return myComputer ;
97 }
98 
99 //define this as a plug-in
boost::shared_ptr< HcalSeverityLevelComputer > ReturnType
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
ReturnType produce(const HcalSeverityLevelComputerRcd &)
HcalRecAlgoESProducer(const edm::ParameterSet &)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:48