pyhf.readxml.extract_error

pyhf.readxml.extract_error(hist)[source]

Determine the bin uncertainties for a histogram.

If fSumw2 is not filled, then the histogram must have been filled with no weights and .Sumw2() was never called. The bin uncertainties are then Poisson, and so the sqrt(entries).

Parameters

hist (uproot.behaviors.TH1.TH1) – The histogram

Returns

The uncertainty for each bin in the histogram

Return type

list