Dear all,
when I try to Fill a 3D histogram, I get a segmentation violation, but I don’t really get the point.
Here is the code:
TH3D *htest = new TH3D("htest", "htest", 2000, 0., 2000., 2000, 0., 2000., 2000, 0., 2000.);
if ((flist = fopen("TestFile.txt", "r")) != NULL ) {
while(!feof(flist)) {
fscanf(flist,"%lf %lf %lf", &xx, &yy, &zz);
printf("ii: %d X: %lf Y: %lf Z: %lf\n", ii, xx, yy, zz);
htest -> Fill(xx, yy, zz);
ii++;
}
}
fclose(flist);
Thank you for support!