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
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition:
ESProducer.h:124
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::es
Definition:
es_Label.h:33
EcalRegionCablingESProducer::produce
ReturnType produce(const EcalRegionCablingRecord &)
Definition:
EcalRegionCablingESProducer.cc:13
edm::eventsetup::DependentRecordImplementation::getRecord
const DepRecordT getRecord() const
Definition:
DependentRecordImplementation.h:51
edm::ESHandle< EcalElectronicsMapping >
EcalRegionCablingRecord
Definition:
EcalRegionCablingRecord.h:9
EcalRegionCablingESProducer.h
edm::ParameterSet
Definition:
ParameterSet.h:36
taus_updatedMVAIds_cff.mapping
mapping
Definition:
taus_updatedMVAIds_cff.py:27
edm::ESHandle::product
T const * product() const
Definition:
ESHandle.h:86
EcalRegionCablingESProducer::conf_
edm::ParameterSet conf_
Definition:
EcalRegionCablingESProducer.h:41
Generated for CMSSW Reference Manual by
1.8.11