-
Notifications
You must be signed in to change notification settings - Fork 71
Closed
Description
The function _check_counting_histogram currently prevents plotting comparisons between weighted TH1* histograms.
The issue seems to go back to the different treatment of TH1 in uproot and the ROOT pythonization in the newest version:
- According to the documentation,
uprootsetskind=Kind.COUNTfor any TH1: https://uproot.readthedocs.io/en/latest/uproot.behaviors.TH1.Histogram.html#kind - In the newest version of root, however, the choice is made to treat weighted histograms as
Kind.MEANand only unweighted ones asKind.COUNT: https://github.com/root-project/root/blob/63a25f7e7b4228cf342e3542105c1f6ba6721321/bindings/pyroot/pythonizations/python/ROOT/_pythonization/_uhi.py#L486
I did not find clear instructions in the UHI documentation whether either of those approaches is "incorrect". If both should be supported, I suppose it would be good to support ratios of kind.MEAN in mplhep.
Metadata
Metadata
Assignees
Labels
No labels