"Error: G__getvariable: expression"

Before it was working fine but now there is an error…

int N_pair[20][10];
for (int i = 0; i < 20; i++) {
   for (int j = 0; j < 10; j++) // here is error indicated.
      N_pair[i][j] = 0;
}
fin = fopen("dihcorr2.txt", "w");
fprintf(fin, "####################################\n");
for (int ieta = 0; ieta < 20; ieta++) {
   for (int iphi = 0; iphi < 10; iphi++) {
      for (i = 0; i < trks; i++) {
         for (j = 0; j < trks; j++) {
            if (i > j) {
               if ((deleta[i][j] = > (-5. + ieta * .5) && (deleta[i][j] < (-5. + (ieta + 1.).5))) &&
                   (delphi[i][j] = > (-1. + iphi .5) && (delphi[i][j] < (-1. + (iphi + 1.) * .5))))

                  N_pair[ieta][iphi] += 1.;
            }
         }
      }
      fprintf(fin, "%lf\t%lf\t%d\n", -5. + ieta * .5, -1. + iphi * .5, N_pair[ieta][iphi] / Total_pairs);
   }
}

ROOT is saying:

Error: G__getvariable: expression

Hi,

what changed?

Cheers,
D

… and by the way, the code you posted (I took the freedom to indent it and highlight it) is incomplete, i.e. pieces of what you are running are not there.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.