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
conf_
= iConfig;
5
setWhatProduced
(
this
);
6
}
7
8
EcalRegionCablingESProducer::~EcalRegionCablingESProducer
() {}
9
10
EcalRegionCablingESProducer::ReturnType
EcalRegionCablingESProducer::produce
(
const
EcalRegionCablingRecord
& iRecord) {
11
using namespace
edm::es
;
12
edm::ESHandle<EcalElectronicsMapping>
mapping
;
13
iRecord.
getRecord
<
EcalMappingRcd
>().
get
(
mapping
);
14
15
return
std::make_unique<EcalRegionCabling>(
conf_
,
mapping
.product());
16
}
edm::eventsetup::DependentRecordImplementation::getRecord
const DepRecordT getRecord() const
Definition:
DependentRecordImplementation.h:50
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition:
ESProducer.h:163
EcalRegionCablingESProducer::~EcalRegionCablingESProducer
~EcalRegionCablingESProducer() override
Definition:
EcalRegionCablingESProducer.cc:8
EcalRegionCablingESProducer.h
edm::ESHandle< EcalElectronicsMapping >
edm::ParameterSet
Definition:
ParameterSet.h:47
EcalRegionCablingESProducer::produce
ReturnType produce(const EcalRegionCablingRecord &)
Definition:
EcalRegionCablingESProducer.cc:10
EcalRegionCablingESProducer::ReturnType
std::unique_ptr< EcalRegionCabling > ReturnType
Definition:
EcalRegionCablingESProducer.h:36
get
#define get
EcalRegionCablingRecord
Definition:
EcalRegionCablingRecord.h:9
EcalRegionCablingESProducer::EcalRegionCablingESProducer
EcalRegionCablingESProducer(const edm::ParameterSet &)
Definition:
EcalRegionCablingESProducer.cc:3
EcalMappingRcd
Definition:
EcalMappingRcd.h:15
EcalRegionCablingESProducer::conf_
edm::ParameterSet conf_
Definition:
EcalRegionCablingESProducer.h:41
edm::es
Definition:
es_Label.h:33
taus_updatedMVAIds_cff.mapping
mapping
Definition:
taus_updatedMVAIds_cff.py:29
Generated for CMSSW Reference Manual by
1.8.16