km3pipe.io.root

Read and write Vanilla ROOT files.

Module Contents

Functions

open_rfile(rfile, fmode=’r’)
get_hist(rfile, histname, get_overflow=False) Read a 1D Histogram.
get_hist2d(rfile, histname, get_overflow=False) Read a 2D Histogram.
get_hist3d(rfile, histname, get_overflow=False) Read a 3D Histogram.
interpol_hist2d(h2d, oversamp_factor=10) Sample the interpolator of a root 2d hist.
km3pipe.io.root.log[source]
km3pipe.io.root.open_rfile(rfile, fmode='r')[source]
km3pipe.io.root.get_hist(rfile, histname, get_overflow=False)[source]

Read a 1D Histogram.

km3pipe.io.root.get_hist2d(rfile, histname, get_overflow=False)[source]

Read a 2D Histogram.

km3pipe.io.root.get_hist3d(rfile, histname, get_overflow=False)[source]

Read a 3D Histogram.

km3pipe.io.root.interpol_hist2d(h2d, oversamp_factor=10)[source]

Sample the interpolator of a root 2d hist.

Root’s hist2d has a weird internal interpolation routine, also using neighbouring bins.