Hey All,
I am trying to plot ratio of two normalized histograms. But problem is number of entries in the individual histograms is more compare to the ratio
Please suggest how to resolve this problem,histogram_qinv.cpp (1.1 KB)
Thanks in advance .
Thanks for your response. Yes I was trying plot red/blue. But if you look number of entries in individual histograms are 324707. But in the ratio plot entries are 54 and also distribution is not as expected.
I think it has 54 entries because the histogram has 54 bins (maybe check if that’s true).
Why is the distribution not as expected? It’s high where the histograms differ a lot, and it goes towards 1 / below 1 where the histograms cross. That look correct to me.
Ok, the ratio plot looks perfect, only the number of entries is interesting.
I looked in the code as to what happens with the entries:
It computes the number of effective entries from the sum of weights in the histogram. The weights, in turn, depend on bin contents and bin errors.