15 auto prod = std::make_unique<EcalElectronicsMapping>();
19 const std::vector<EcalMappingElement>& ee =
item.endcapItems();
26 for (
unsigned int i = 0;
i < ee.size();
i++) {
27 if (ee[
i].electronicsid == 0)
29 if (ee[
i].triggerid == 0)
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
ReturnType produce(const EcalMappingRcd &)
EcalElectronicsMappingBuilder(const edm::ParameterSet &)
static EEDetId unhashIndex(int hi)
void assign(const DetId &cell, const EcalElectronicsId &, const EcalTriggerElectronicsId &tower)
set the association between a DetId and a tower
EcalMappingElectronicsMap EcalMappingElectronics
void FillFromDatabase(const std::vector< EcalMappingElement > &ee, EcalElectronicsMapping &theMap)
std::unique_ptr< EcalElectronicsMapping > ReturnType
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
edm::ESGetToken< EcalMappingElectronics, EcalMappingElectronicsRcd > eeToken_