Rebinning issue with larger x axis values on a histogram

So I have a simple histogram with an x axis that goes from 0-100 but when I try to rebin the plot it comes out blank. I am not sure what I am doing wrong and also I get the following error .

         warning: null passed to a callee that requires a non-null argument [-Wnonnull] l->Draw();

I have my macro attached so anyone can see what I did. When I have my histogram set from like 0-10 in my array it can easily rebin it but once I increase the values it no longer works. Any help would be appreciated.

tut4.C (826 Bytes)

You cannot have bins with zero length (low[2] = low[3] = 60).
You also improperly calculate low[0] (e.g., low[0] > low[1]).
In order to prevent the “null passed” error, try with: if (l) l->Draw();

what you mean zero length ? low[2] = low[3] = 60 are not both equal to 60 unless they are and that is the issue ?
improperly calculate how ?

Simply print all these values to the screen.

??? can you elaborate more

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