rootpy.stats.histfactory.Sample

class rootpy.stats.histfactory.Sample(name, hist=None)[source]
iter_sys()[source]

Iterate over sys_name, overall_sys, histo_sys. overall_sys or histo_sys may be None for any given sys_name.

sys_hist(name=None)[source]

Return the effective low and high histogram for a given systematic. If this sample does not contain the named systematic then return the nominal histogram for both low and high variations.

sys_names()[source]

Return a list of unique systematic names from OverallSys and HistoSys

total(xbin1=1, xbin2=-2)[source]

Return the total yield and its associated statistical and systematic uncertainties.