18 int phidiffs[6] = {phi2 - phi1, phi3 - phi1, phi4 - phi1, phi3 - phi2, phi4 - phi2, phi4 - phi3};
23 else if(phidiffs[0] == 0 && phidiffs[1] < 0)
25 else if(phidiffs[1] == 0 && phidiffs[2] < 0)
34 else if(phidiffs[0] == 0 && phidiffs[1] < 0)
43 else if(phidiffs[0] == 0 && phidiffs[2] < 0)
59 else if(phidiffs[1] == 0 && phidiffs[2] < 0)
82 else if(phidiffs[3] == 0 && phidiffs[4] < 0)
int getCharge(int phi1, int phi2, int phi3, int phi4, int mode)