Hello,
Thanks for posting. I think the problem here is a numerical one, not ROOT’s. You are trying to calculate the ratio of floating point numbers in the range of 1e10. I suggest to use numbers nearer to 1, where the density of floating points is at its maximum, e.g.
double myDataCrossSec = 1.;
double myDataCrossSecerr = 0.42;
double myMCCrossSec = 0.9;
double myMCCrossSecerr = 0.0288;
double slacDataCrossSec = 2;
double slacDataCrossSecerr = 0.45;
double slacMCCrossSec = 1.8;
double slacMCCrossSecerr = 0.036;
And then adapt the cross section units on the y axis accordingly.
I hope this helps.
Cheers,
D