CMS 3D CMS Logo

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 //
17 //
18 
19 
20 // system include files
21 #include <memory>
22 
23 // user include files
26 
28 
32 
33 
34 
35 //
36 // class decleration
37 //
38 
40  public:
42 
44 
45  typedef std::shared_ptr<HcalSeverityLevelComputer> ReturnType;
46 
47  ReturnType produce(const HcalSeverityLevelComputerRcd&);
48  private:
49  // ----------member data ---------------------------
50  ReturnType myComputer;
51 };
52 
53 //
54 // constants, enums and typedefs
55 //
56 
57 //
58 // static data member definitions
59 //
60 
61 //
62 // constructors and destructor
63 //
65 {
66  //the following line is needed to tell the framework what
67  // data is being produced
68  setWhatProduced(this);
69 
70  //now do what ever other initialization is needed
72 }
73 
74 
76 {
77 
78  // do anything here that needs to be done at desctruction time
79  // (e.g. close files, deallocate resources etc.)
80 
81 }
82 
83 
84 //
85 // member functions
86 //
87 
88 // ------------ method called to produce the data ------------
91 {
92  using namespace edm::es;
93 
94  return myComputer ;
95 }
96 
97 //define this as a plug-in
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
ReturnType produce(const HcalSeverityLevelComputerRcd &)
HcalRecAlgoESProducer(const edm::ParameterSet &)
std::shared_ptr< HcalSeverityLevelComputer > ReturnType
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60