5 #ifndef MUONNSWASBUILT_IDENTIFIER_H
6 #define MUONNSWASBUILT_IDENTIFIER_H
103 std::hash<int> hasher;
104 std::size_t
h1 = hasher(
v.stationName);
105 std::size_t h2 = hasher(
v.stationEta);
106 std::size_t h3 = hasher(
v.stationPhi);
107 std::size_t h4 = hasher(
v.multilayer);
108 std::size_t ret =
h1;
109 ret ^= h2 + 0x9e3779b9 + (ret << 6) + (ret >> 2);
110 ret ^= h3 + 0x9e3779b9 + (ret << 6) + (ret >> 2);
111 ret ^= h4 + 0x9e3779b9 + (ret << 6) + (ret >> 2);
120 std::size_t h2 = std::hash<int>{}(
v.ilayer);
121 std::size_t h3 = std::hash<int>{}(
v.ipcb);
122 std::size_t ret =
h1;
123 ret ^= h2 + 0x9e3779b9 + (ret << 6) + (ret >> 2);
124 ret ^= h3 + 0x9e3779b9 + (ret << 6) + (ret >> 2);
133 std::size_t h2 = std::hash<int>{}(
v.ilayer);
134 std::size_t h3 = std::hash<int>{}(
v.istrip);
135 std::size_t ret =
h1;
136 ret ^= h2 + 0x9e3779b9 + (ret << 6) + (ret >> 2);
137 ret ^= h3 + 0x9e3779b9 + (ret << 6) + (ret >> 2);