correctionlib.convert.from_uproot_THx

correctionlib.convert.from_uproot_THx(path: str, axis_names: List[str] | None = None, flow: Literal['clamp', 'error'] = 'error') Correction

Convert a ROOT histogram

This function attempts to open a ROOT file with uproot and extract the TH1 or TH2 as specified by the object path

Example:

corr = convert.from_uproot_THx(
    "testSF2d.histo.root:scalefactors_Tight_Electron"
)