GSI Object Oriented Online Offline (Go4)  GO4-6.1.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Functions
go4py.convert Namespace Reference

Functions

def list2hist
 
def hist2list
 
def eval_func
 

Function Documentation

def 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.

def 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.

def 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.