Main Page
Namespaces
Classes
Package Documentation
EventFilter
EcalRawToDigi
plugins
EcalRegionCablingESProducer.cc
Go to the documentation of this file.
1
#include "
EventFilter/EcalRawToDigi/plugins/EcalRegionCablingESProducer.h
"
2
3
EcalRegionCablingESProducer::EcalRegionCablingESProducer
(
const
edm::ParameterSet
& iConfig)
4
{
5
conf_
=iConfig;
6
setWhatProduced
(
this
);
7
}
8
9
10
EcalRegionCablingESProducer::~EcalRegionCablingESProducer
(){}
11
12
EcalRegionCablingESProducer::ReturnType
13
EcalRegionCablingESProducer::produce
(
const
EcalRegionCablingRecord
& iRecord)
14
{
15
using namespace
edm::es
;
16
edm::ESHandle<EcalElectronicsMapping>
mapping
;
17
iRecord.
getRecord
<
EcalMappingRcd
>().
get
(mapping);
18
19
return
std::make_unique<EcalRegionCabling>(
conf_
,
20
mapping.
product
());
21
22
}
EcalRegionCablingESProducer::~EcalRegionCablingESProducer
~EcalRegionCablingESProducer() override
Definition:
EcalRegionCablingESProducer.cc:10
EcalRegionCablingESProducer::EcalRegionCablingESProducer
EcalRegionCablingESProducer(const edm::ParameterSet &)
Definition:
EcalRegionCablingESProducer.cc:3
EcalRegionCablingESProducer::ReturnType
std::unique_ptr< EcalRegionCabling > ReturnType
Definition:
EcalRegionCablingESProducer.h:37
EcalMappingRcd
Definition:
EcalMappingRcd.h:17
edm::ESProducer::setWhatProduced
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition:
ESProducer.h:115
edm::eventsetup::DependentRecordImplementation::getRecord
const DepRecordT & getRecord() const
Definition:
DependentRecordImplementation.h:48
edm::es
Definition:
es_Label.h:33
EcalRegionCablingESProducer::produce
ReturnType produce(const EcalRegionCablingRecord &)
Definition:
EcalRegionCablingESProducer.cc:13
edm::ESHandle< EcalElectronicsMapping >
EcalRegionCablingRecord
Definition:
EcalRegionCablingRecord.h:9
EcalRegionCablingESProducer.h
edm::ParameterSet
Definition:
ParameterSet.h:36
edm::ESHandle::product
T const * product() const
Definition:
ESHandle.h:86
EcalRegionCablingESProducer::conf_
edm::ParameterSet conf_
Definition:
EcalRegionCablingESProducer.h:41
HPSPFTaus_cff.mapping
mapping
Definition:
HPSPFTaus_cff.py:313
Generated for CMSSW Reference Manual by
1.8.11