6 #include "Identifier/Identifier.h"
45 auto [iter, newElementAdded] =
m_idMap_rodrob.insert(std::make_pair(rodid, robid));
46 if ( newElementAdded )
51 auto [iter, newElementAdded] =
m_idMap_robrod.insert(std::make_pair(robid, rodid));
52 if ( newElementAdded )
72 std::unordered_map<uint64_t, Identifier>::const_iterator iter(
m_idMap_onoff.find(searchId));
80 uint32_t rodid = (onlineId & 0xFFFFFF);
82 if ((rodid & 0x130000) >> 16 == 0x13) {
89 searchId = onlineId & (0xF0FFFFFF);
104 std::unordered_map<Identifier, uint64_t, idHasher>::const_iterator iter(
m_idMap_offon.find(offlineId));
109 onlineId = (*iter).second;
116 if (offlineId == invalidId)
return robid;
121 robid = (*iter).second;
126 std::unordered_map<int, int>::const_iterator iter(
m_idMap_rodrob.find(rodid));
130 int robid = iter->second;
135 std::unordered_map<int,int>::const_iterator iter(
m_idMap_robrod.find(robid));
141 std::deque<Identifier> offlineId;
144 for (;
it1 != it2; ++
it1) {
145 offlineId.push_back(*
it1);
151 std::unordered_map<std::string, Identifier>::const_iterator iter(
m_idMapDCSoff.find(DCSname));
159 std::unordered_map<std::string, Identifier>::const_iterator iter =
m_idMapDCSoff.begin();
161 if (iter->second == offlineId)
182 uint32_t subDetId = (robid & 0xFFFFFF) >> 16;
185 if (subDetId < 0x14)
return (robid & 0xFFFFFF) | (link << 24);
188 else if (subDetId == 0x14 || subDetId == 0x15) {
192 std::unordered_map<uint64_t, Identifier>::const_iterator itr =
m_idMap_onoff.begin();
194 if ((itr->first & 0xFFFFFF) == robid) {
195 linknum_temp = (itr->first >> 24);
197 if ((linknum_temp & 0xF) == link || ((linknum_temp >> 8) & 0xF) == link)
return itr->first;