Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
RecoLocalCalo
HcalRecAlgos
plugins
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
#include "boost/shared_ptr.hpp"
23
24
// user include files
25
#include "
FWCore/Framework/interface/ModuleFactory.h
"
26
#include "
FWCore/Framework/interface/ESProducer.h
"
27
28
#include "
FWCore/Framework/interface/ESHandle.h
"
29
30
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
31
#include "
RecoLocalCalo/HcalRecAlgos/interface/HcalSeverityLevelComputer.h
"
32
#include "
RecoLocalCalo/HcalRecAlgos/interface/HcalSeverityLevelComputerRcd.h
"
33
34
35
36
//
37
// class decleration
38
//
39
40
class
HcalRecAlgoESProducer
:
public
edm::ESProducer
{
41
public
:
42
HcalRecAlgoESProducer
(
const
edm::ParameterSet
&);
43
44
~HcalRecAlgoESProducer
();
45
46
typedef
boost::shared_ptr<HcalSeverityLevelComputer>
ReturnType
;
47
48
ReturnType
produce
(
const
HcalSeverityLevelComputerRcd
&);
49
private
:
50
// ----------member data ---------------------------
51
ReturnType
myComputer
;
52
};
53
54
//
55
// constants, enums and typedefs
56
//
57
58
//
59
// static data member definitions
60
//
61
62
//
63
// constructors and destructor
64
//
65
HcalRecAlgoESProducer::HcalRecAlgoESProducer
(
const
edm::ParameterSet
& iConfig)
66
{
67
//the following line is needed to tell the framework what
68
// data is being produced
69
setWhatProduced
(
this
);
70
71
//now do what ever other initialization is needed
72
myComputer
=
ReturnType
(
new
HcalSeverityLevelComputer
(iConfig));
73
}
74
75
76
HcalRecAlgoESProducer::~HcalRecAlgoESProducer
()
77
{
78
79
// do anything here that needs to be done at desctruction time
80
// (e.g. close files, deallocate resources etc.)
81
82
}
83
84
85
//
86
// member functions
87
//
88
89
// ------------ method called to produce the data ------------
90
HcalRecAlgoESProducer::ReturnType
91
HcalRecAlgoESProducer::produce
(
const
HcalSeverityLevelComputerRcd
& iRecord)
92
{
93
using namespace
edm::es;
94
95
return
myComputer
;
96
}
97
98
//define this as a plug-in
99
DEFINE_FWK_EVENTSETUP_MODULE
(
HcalRecAlgoESProducer
);
HcalRecAlgoESProducer::ReturnType
boost::shared_ptr< HcalSeverityLevelComputer > ReturnType
Definition:
HcalRecAlgoESProducer.cc:46
HcalRecAlgoESProducer
Definition:
HcalRecAlgoESProducer.cc:40
edm::ESProducer::setWhatProduced
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition:
ESProducer.h:115
edm::ESProducer
Definition:
ESProducer.h:97
ParameterSet.h
HcalSeverityLevelComputerRcd.h
HcalRecAlgoESProducer::produce
ReturnType produce(const HcalSeverityLevelComputerRcd &)
Definition:
HcalRecAlgoESProducer.cc:91
HcalRecAlgoESProducer::~HcalRecAlgoESProducer
~HcalRecAlgoESProducer()
Definition:
HcalRecAlgoESProducer.cc:76
ESHandle.h
HcalRecAlgoESProducer::HcalRecAlgoESProducer
HcalRecAlgoESProducer(const edm::ParameterSet &)
Definition:
HcalRecAlgoESProducer.cc:65
HcalSeverityLevelComputer
Definition:
HcalSeverityLevelComputer.h:25
HcalSeverityLevelComputerRcd
Definition:
HcalSeverityLevelComputerRcd.h:23
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition:
ModuleFactory.h:60
ESProducer.h
HcalRecAlgoESProducer::myComputer
ReturnType myComputer
Definition:
HcalRecAlgoESProducer.cc:51
edm::ParameterSet
Definition:
ParameterSet.h:36
ModuleFactory.h
HcalSeverityLevelComputer.h
Generated for CMSSW Reference Manual by
1.8.5