13 #ifndef ADD_ChargeAssignment 14 #define ADD_ChargeAssignment 22 int phidiffs[6] = {phi2 - phi1, phi3 - phi1, phi4 - phi1, phi3 - phi2, phi4 - phi2, phi4 - phi3};
27 else if(phidiffs[0] == 0 && phidiffs[1] < 0)
29 else if(phidiffs[1] == 0 && phidiffs[2] < 0)
38 else if(phidiffs[0] == 0 && phidiffs[1] < 0)
47 else if(phidiffs[0] == 0 && phidiffs[2] < 0)
63 else if(phidiffs[1] == 0 && phidiffs[2] < 0)
86 else if(phidiffs[3] == 0 && phidiffs[4] < 0)
int getCharge(int phi1, int phi2, int phi3, int phi4, int mode)