Problems with histogram errors (e4)

Dear experts

Im plotting a ratio of two histograms and I want to show the errors with option e4, however this options makes the error of the last bin larger than it is. In the figures attached I have plotted the histogram with error bars and three additional options: e2, e3 and e4 (shaded areas). As can be seen, shaded areas from e2 and e3 options are exactly the same as the vertical bars. However, when I use e4 option the shaded area for the very last bin becomes very large. Why is this happening?

Thanks for your help,

_ROOT Version: 5-34-36
_Platform: Ubuntu Mate 16.04
Compiler: Not Provided

See the explanations here.
In short do not use E4 in you case.

Hi couet

Sorry, but I still dont understand why e3 and e4 are different only in the last bin. The description of e3 and e4 is the same. The only difference is the word “smoothed”. Or maybe Im missing something?

Indeed the web page I sent you says:

Because of the smoothing algorithm used, some artefacts may appear at the end of the band like in the following example. In such cases “E3” should be used instead of “E4”.

OK, thanks. I didn’t read that.

Kind regards

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