double getResolution(double ctheta0, int N){ double s=0; for (int i=0;i