21 #include <unordered_map>
60 descriptions.
add(
"DTCCablingMapTestReader",
desc);
76 ostringstream dump_DetToElink;
78 dump_DetToElink <<
"Det To DTC ELink map elements dump (Python-style):" << endl;
79 std::vector<uint32_t>
const knownDetIds = p_cablingMap->
getKnownDetIds();
81 dump_DetToElink <<
"{";
82 for (uint32_t detId : knownDetIds) {
83 dump_DetToElink <<
"(" << detId <<
" : [";
86 for (
auto it = equal_range.first; it != equal_range.second; ++it)
87 dump_DetToElink <<
"(" << unsigned(it->second.dtc_id()) <<
", " <<
unsigned(it->second.gbtlink_id()) <<
", "
88 <<
unsigned(it->second.elink_id()) <<
"), ";
90 dump_DetToElink <<
"], ";
92 dump_DetToElink <<
"}" << endl;
94 edm::LogInfo(
"DetToElinkCablingMapDump") << dump_DetToElink.str();
98 ostringstream dump_ElinkToDet;
100 dump_ElinkToDet <<
"DTC Elink To Det map elements dump (Python-style):" << endl;
103 dump_ElinkToDet <<
"{";
104 for (
DTCELinkId const& currentELink : knownDTCELinkIds) {
105 dump_ElinkToDet <<
"(" << unsigned(currentELink.dtc_id()) <<
", " <<
unsigned(currentELink.gbtlink_id()) <<
", "
106 <<
unsigned(currentELink.elink_id()) <<
") "
110 dump_ElinkToDet << detId_it->second <<
", ";
112 dump_ElinkToDet <<
"}" << endl;
114 edm::LogInfo(
"DetToElinkCablingMapDump") << dump_ElinkToDet.str();