25 for (
auto ifed = cabling.
fedIds().begin(); ifed != cabling.
fedIds().end(); ++ifed) {
27 for (
auto ichan = conns.begin(); ichan != conns.end(); ichan++) {
40 SiStripDetId det_id(ichan->detId(), ichan->apvPairNumber());
43 det_to_fec[det] = fec;
44 fed_to_fec[fed] = fec;
50 <<
" Size of FedToFec std::map: " << fed_to_fec.size()
51 <<
", size of DetToFec std::map: " << det_to_fec.size();
59 <<
" Input std::map is empty!";
const uint16_t & feChan() const
const uint16_t & feUnit() const
A container class for generic run and event-related info, information required by the commissioning a...
uint32_t fedToFec(const uint32_t &fed_key_mask, const Mapping &input, Mapping &output)
uint32_t detToFec(const uint32_t &det_key_mask, const Mapping &input, Mapping &output)
static std::string const input
Utility class that identifies a position within the strip tracker control structure, down to the level of an APV25.
static const char mlCabling_[]
static void buildMaps(const SiStripFedCabling &, Mapping &det_to_fec, Mapping &fed_to_fec)
const uint32_t & key() const
std::map< uint32_t, uint32_t > Mapping
Utility class that identifies a position within the strip tracker geometrical structure, down to the level of an APV25 chip.
Detector identifier class for the strip tracker.
void writeMapsToFile(std::string root_filename, Mapping &det_to_fec, Mapping &fed_to_fec)
Contains cabling info at the device level, including DetId, APV pair numbers, hardware addresses...
Log< level::Warning, false > LogWarning
FedsConstIterRange fedIds() const
ConnsConstIterRange fedConnections(uint16_t fed_id) const