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;
21 int gmt_pt_dxy = (pt * 1) + 1;
22 gmt_pt_dxy = (gmt_pt_dxy > 255) ? 255 : gmt_pt_dxy;
41 float pt = (gmt_pt <= 0) ? 0 : 0.5 * (gmt_pt - 1);
46 float pt = (gmt_pt_dxy <= 0) ? 0 : 1.0 * (gmt_pt_dxy - 1);
73 if (endcap == -1 && theta > 127)
75 if (endcap == +1 && theta > 127)
182 quality |= (mode & 3);
186 if (promoteMode7 && mode == 7 && theta <= 50)
202 if (phidiffs[0] >= 0)
204 else if (phidiffs[0] == 0 && phidiffs[1] < 0)
206 else if (phidiffs[1] == 0 && phidiffs[2] < 0)
215 else if (phidiffs[0] == 0 && phidiffs[1] < 0)
222 if (phidiffs[0] >= 0)
224 else if (phidiffs[0] == 0 && phidiffs[2] < 0)
231 if (phidiffs[0] >= 0)
238 if (phidiffs[1] >= 0)
240 else if (phidiffs[1] == 0 && phidiffs[2] < 0)
247 if (phidiffs[1] >= 0)
254 if (phidiffs[2] >= 0)
261 if (phidiffs[3] >= 0)
263 else if (phidiffs[3] == 0 && phidiffs[4] < 0)
270 if (phidiffs[3] >= 0)
277 if (phidiffs[4] >= 0)
284 if (phidiffs[5] >= 0)
300 int charge_valid = 1;
303 return std::make_pair(charge, charge_valid);
int getGMTPhiV2(int phi) const
int getGMTEta(int theta, int endcap) const
Geom::Theta< T > theta() const
int getGMTPtDxy(float pt) const
Abs< T >::type abs(const T &t)
std::pair< int, int > getGMTCharge(int mode, const std::vector< int > &phidiffs) const
int getGMTDxy(float dxy) const
float getPtFromGMTPtDxy(int gmt_pt_dxy) const
int getGMTPhi(int phi) const
float getPtFromGMTPt(int gmt_pt) const
int getGMTPt(float pt) const
static const int GMT_eta_from_theta[128]
int getGMTQuality(int mode, int theta, bool promoteMode7, int version) const