5 239, 235, 233, 230, 227, 224, 222, 219, 217, 214, 212, 210, 207, 205, 203, 201, 199, 197, 195, 193, 191, 189,
6 187, 186, 184, 182, 180, 179, 177, 176, 174, 172, 171, 169, 168, 166, 165, 164, 162, 161, 160, 158, 157, 156,
7 154, 153, 152, 151, 149, 148, 147, 146, 145, 143, 142, 141, 140, 139, 138, 137, 136, 135, 134, 133, 132, 131,
8 130, 129, 128, 127, 126, 125, 124, 123, 122, 121, 120, 119, 118, 117, 116, 116, 115, 114, 113, 112, 111, 110,
9 110, 109, 108, 107, 106, 106, 105, 104, 103, 102, 102, 101, 100, 99, 99, 98, 97, 96, 96, 95, 94, 93,
10 93, 92, 91, 91, 90, 89, 89, 88, 87, 87, 86, 85, 84, 84, 83, 83, 82, 81};
14 int gmt_pt = (
pt * 2) + 1;
15 gmt_pt = (gmt_pt > 511) ? 511 : gmt_pt;
20 float pt = (gmt_pt <= 0) ? 0 : 0.5 * (gmt_pt - 1);
160 if (promoteMode7 &&
mode == 7 &&
theta <= 50)
176 if (phidiffs[0] >= 0)
178 else if (phidiffs[0] == 0 && phidiffs[1] < 0)
180 else if (phidiffs[1] == 0 && phidiffs[2] < 0)
189 else if (phidiffs[0] == 0 && phidiffs[1] < 0)
196 if (phidiffs[0] >= 0)
198 else if (phidiffs[0] == 0 && phidiffs[2] < 0)
205 if (phidiffs[0] >= 0)
212 if (phidiffs[1] >= 0)
214 else if (phidiffs[1] == 0 && phidiffs[2] < 0)
221 if (phidiffs[1] >= 0)
228 if (phidiffs[2] >= 0)
235 if (phidiffs[3] >= 0)
237 else if (phidiffs[3] == 0 && phidiffs[4] < 0)
244 if (phidiffs[3] >= 0)
251 if (phidiffs[4] >= 0)
258 if (phidiffs[5] >= 0)
274 int charge_valid = 1;
277 return std::make_pair(
charge, charge_valid);