tdub.root

A module for working with ROOT-like objects (without ROOT itself).

Class Summary

TH1(root_object)

Wrapper around uproot’s interpretation of ROOT’s TH1.

TGraphAsymmErrors(root_object)

Wrapper around uproot’s interpretation of ROOT’s TGraphAsymmErrors.

Reference

class tdub.root.TH1(root_object)[source]

Wrapper around uproot’s interpretation of ROOT’s TH1.

This class interprets the histogram in a way that ignores under and overflow bins. We expect the treatment of those values to already be accounted for.

Parameters

root_object (uproot.behaviors.TH1.Histogram) – Object from reading ROOT file with uproot.

property bin_width

Width of a bin.

Type

float

property centers

Histogram bin centers.

Type

numpy.ndarray

property counts

Histogram bin counts.

Type

numpy.ndarray

property edges

Histogram bin edges.

Type

numpy.ndarray

property errors

Histogram bin errors.

Type

numpy.ndarray

class tdub.root.TGraphAsymmErrors(root_object)[source]

Wrapper around uproot’s interpretation of ROOT’s TGraphAsymmErrors.

Parameters

root_object (uproot.model.Model) – Object from reading ROOT file with uproot.

property xhi

X-axis high errors.

Type

numpy.ndarray

property xlo

X-axis low errors.

Type

numpy.ndarray

property yhi

Y-axis high errors.

Type

numpy.ndarray

property ylo

Y-axis low errors.

Type

numpy.ndarray