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) : conf_(iConfig) {
4
auto
cc
=
setWhatProduced
(
this
);
5
esEcalElectronicsMappingToken_
=
cc
.consumesFrom<
EcalElectronicsMapping
,
EcalMappingRcd
>();
6
}
7
8
EcalRegionCablingESProducer::~EcalRegionCablingESProducer
() {}
9
10
EcalRegionCablingESProducer::ReturnType
EcalRegionCablingESProducer::produce
(
const
EcalRegionCablingRecord
& iRecord) {
11
edm::ESHandle<EcalElectronicsMapping>
mapping
= iRecord.
getHandle
(
esEcalElectronicsMappingToken_
);
12
13
return
std::make_unique<EcalRegionCabling>(
conf_
,
mapping
.product());
14
}
EcalElectronicsMapping
Definition:
EcalElectronicsMapping.h:28
edm::eventsetup::DependentRecordImplementation::getHandle
ESHandle< ProductT > getHandle(ESGetToken< ProductT, DepRecordT > const &iToken) const
Definition:
DependentRecordImplementation.h:87
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:37
cc
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:42
taus_updatedMVAIds_cff.mapping
mapping
Definition:
taus_updatedMVAIds_cff.py:29
EcalRegionCablingESProducer::esEcalElectronicsMappingToken_
edm::ESGetToken< EcalElectronicsMapping, EcalMappingRcd > esEcalElectronicsMappingToken_
Definition:
EcalRegionCablingESProducer.h:44
Generated for CMSSW Reference Manual by
1.8.16