16 "TrackerDetToDTCELinkCablingMap has been asked to return a DetId associated to a DTCELinkId, but the latter is " 17 "unknown to the map. ")
18 <<
" (DTC, GBT, Elink) numbers = (" <<
key.dtc_id() <<
"," <<
key.gbtlink_id() <<
"," <<
key.elink_id() <<
")" 25 std::pair<std::unordered_multimap<uint32_t, DTCELinkId>::const_iterator,
26 std::unordered_multimap<uint32_t, DTCELinkId>::const_iterator>
32 "TrackerDetToDTCELinkCablingMap has been asked to return a DTCELinkId associated to a DetId, but the latter is " 33 "unknown to the map. ")
34 <<
" DetId = " <<
key << std::endl;
37 return DTCELinkId_itpair;
54 knownDTCELinkIds.begin(),
55 [=](
auto pair) {
return pair.first; });
57 return knownDTCELinkIds;
61 std::vector<uint32_t> knownDetId;
67 allpairs_it != allpairs_end;) {
69 knownDetId.push_back(uint32_t(allpairs_it->first));
78 while (allpairs_it != current_key_range_end)
TrackerDetToDTCELinkCablingMap()
bool knowsDetId(uint32_t) const
Returns true if the cabling map has a record corresponding to an eLink identified by the given DTCELi...
std::unordered_map< DTCELinkId, uint32_t >::const_iterator dtcELinkIdToDetId(DTCELinkId const &) const
Resolves the raw DetId of the detector connected to the eLink identified by a DTCELinkId.
void insert(DTCELinkId const &, uint32_t const)
Inserts in the cabling map a record corresponding to the connection of an eLink identified by the giv...
virtual ~TrackerDetToDTCELinkCablingMap()
void clear()
Clears the map.
bool knowsDTCELinkId(DTCELinkId const &) const
Returns true if the cabling map has a record corresponding to a detector identified by the given raw ...
std::vector< DTCELinkId > getKnownDTCELinkIds() const
Returns a vector containing all elink DTCELinkId nown to the map.
std::pair< std::unordered_multimap< uint32_t, DTCELinkId >::const_iterator, std::unordered_multimap< uint32_t, DTCELinkId >::const_iterator > detIdToDTCELinkId(uint32_t const) const
Resolves one or more DTCELinkId of eLinks which are connected to the detector identified by the given...
std::unordered_map< DTCELinkId, uint32_t > cablingMapDTCELinkIdToDetId_
std::vector< uint32_t > getKnownDetIds() const
Returns a vector containing all detector DetId known to the map.
std::unordered_multimap< uint32_t, DTCELinkId > cablingMapDetIdToDTCELinkId_