17 auto prod = std::make_unique<EcalElectronicsMapping>();
21 const std::vector<EcalMappingElement>& ee = item.endcapItems();
29 for (
unsigned int i=0;
i < ee.size();
i++)
31 if (ee[
i].electronicsid == 0)
33 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
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
void FillFromDatabase(const std::vector< EcalMappingElement > &ee, EcalElectronicsMapping &theMap)
std::unique_ptr< EcalElectronicsMapping > ReturnType
edm::ESGetToken< EcalMappingElectronics, EcalMappingElectronicsRcd > eeToken_