5 namespace electronicsmap {
13 for (std::vector<HcalElectronicsId>::const_iterator it = eids.begin(); it != eids.end(); ++it) {
15 EMapType::iterator dit =
_ids.find(did.
rawId());
16 if (dit !=
_ids.end())
21 _ids.insert(std::make_pair(did.
rawId(), it->rawId()));
25 std::vector<HcalTrigTowerDetId> tids = emap->
allTriggerId();
26 for (std::vector<HcalTrigTowerDetId>::const_iterator it = tids.begin(); it != tids.end(); ++it) {
28 uint32_t
hash = it->rawId();
29 EMapType::iterator eit =
_ids.find(
hash);
30 if (eit !=
_ids.end())
38 for (std::vector<HcalElectronicsId>::const_iterator it = eids.begin(); it != eids.end(); ++it) {
40 uint32_t
hash = it->rawId();
41 EMapType::iterator eit =
_ids.find(
hash);
42 if (eit !=
_ids.end())
51 for (std::vector<HcalElectronicsId>::const_iterator it = eids.begin(); it != eids.end(); ++it) {
53 EMapType::iterator eit =
_ids.find(it->rawId());
54 if (eit !=
_ids.end())
58 _ids.insert(std::make_pair(it->rawId(), tid.
rawId()));
77 for (std::vector<HcalElectronicsId>::const_iterator it = eids.begin(); it != eids.end(); ++it) {
85 _ids.insert(std::make_pair(did.
rawId(), it->rawId()));
89 for (std::vector<HcalElectronicsId>::const_iterator it = eids.begin(); it != eids.end(); ++it) {
93 _ids.insert(std::make_pair(tid.
rawId(), it->rawId()));
97 for (std::vector<HcalElectronicsId>::const_iterator it = eids.begin(); it != eids.end(); ++it) {
111 for (std::vector<HcalElectronicsId>::const_iterator it = eids.begin(); it != eids.end(); ++it) {
115 _ids.insert(std::make_pair(it->rawId(), tid.
rawId()));
123 uint32_t
hash =
id.rawId();
127 EMapType::iterator it =
_ids.find(
hash);
128 return it ==
_ids.end() ? 0 : it->second;
135 uint32_t
hash = (
id.oldFormat() ?
id.otherForm() :
id.rawId());
140 EMapType::iterator it =
_ids.find(
hash);
141 return it ==
_ids.end() ? 0 : it->second;
147 uint32_t
hash =
id.rawId();
151 EMapType::iterator it =
_ids.find(
hash);
152 return it ==
_ids.end() ? 0 : it->second;
159 for (
auto const &
v :
_ids) {