GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
go4py.convert Namespace Reference

Functions

 eval_func (xs, tf)
 
 hist2list (h)
 
 list2hist (xs, ys, name="anonymous", title="")
 

Function Documentation

◆ eval_func()

go4py.convert.eval_func ( xs,
tf )
Evaluate the TF1 tf for all values in xs, return list of y values

Definition at line 28 of file convert.py.

◆ hist2list()

go4py.convert.hist2list ( h)
Read points from histogram h into two lists (x and y coordinates)
Format is chosen such that matplotlib.pyplot.step() can be used for plotting
hence (x, y) == (low edges, contents)

Definition at line 17 of file convert.py.

◆ list2hist()

go4py.convert.list2hist ( xs,
ys,
name = "anonymous",
title = "" )
Create a ROOT.TH1I with xs as bins (low edges) and ys as their content
name and title will be used for the new histogram

Definition at line 6 of file convert.py.