Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
EventFilter
ESRawToDigi
src
ESUnpackerWorkerESProducer.cc
Go to the documentation of this file.
1
#include "
EventFilter/ESRawToDigi/interface/ESUnpackerWorkerESProducer.h
"
2
#include "
EventFilter/EcalRawToDigi/interface/EcalUnpackerWorkerRecord.h
"
3
#include "
EventFilter/ESRawToDigi/interface/ESUnpackerWorker.h
"
4
5
ESUnpackerWorkerESProducer::ESUnpackerWorkerESProducer
(
const
edm::ParameterSet
& iConfig)
6
{
7
conf_
= iConfig;
8
if
(
conf_
.
exists
(
"ComponentName"
))
9
setWhatProduced
(
this
,
conf_
.
getParameter
<std::string>(
"ComponentName"
));
10
else
11
setWhatProduced
(
this
);
12
}
13
14
15
ESUnpackerWorkerESProducer::~ESUnpackerWorkerESProducer
(){}
16
17
18
ESUnpackerWorkerESProducer::ReturnType
19
ESUnpackerWorkerESProducer::produce
(
const
EcalUnpackerWorkerRecord
& iRecord)
20
{
21
using namespace
edm::es;
22
23
ESUnpackerWorkerESProducer::ReturnType
euw(
new
ESUnpackerWorker
(
conf_
));
24
25
//set eshandles
26
euw->setHandles(iRecord);
27
28
return
euw;
29
}
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
ESUnpackerWorker
Definition:
ESUnpackerWorker.h:24
edm::ParameterSet::exists
bool exists(std::string const ¶meterName) const
checks if a parameter exists
Definition:
ParameterSet.cc:743
ESUnpackerWorkerESProducer::produce
ReturnType produce(const EcalUnpackerWorkerRecord &)
Definition:
ESUnpackerWorkerESProducer.cc:19
edm::ESProducer::setWhatProduced
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition:
ESProducer.h:115
ESUnpackerWorkerESProducer::ESUnpackerWorkerESProducer
ESUnpackerWorkerESProducer(const edm::ParameterSet &)
Definition:
ESUnpackerWorkerESProducer.cc:5
ESUnpackerWorker.h
EcalUnpackerWorkerRecord
Definition:
EcalUnpackerWorkerRecord.h:20
EcalUnpackerWorkerRecord.h
ESUnpackerWorkerESProducer::~ESUnpackerWorkerESProducer
~ESUnpackerWorkerESProducer()
Definition:
ESUnpackerWorkerESProducer.cc:15
ESUnpackerWorkerESProducer::ReturnType
boost::shared_ptr< EcalUnpackerWorkerBase > ReturnType
Definition:
ESUnpackerWorkerESProducer.h:42
edm::ParameterSet
Definition:
ParameterSet.h:35
ESUnpackerWorkerESProducer::conf_
edm::ParameterSet conf_
Definition:
ESUnpackerWorkerESProducer.h:46
ESUnpackerWorkerESProducer.h
Generated for CMSSW Reference Manual by
1.8.5