root_numpy.tree2rec

root_numpy.tree2rec(tree, branches=None, selection=None, object_selection=None, start=None, stop=None, step=None, include_weight=False, weight_name='weight', cache_size=-1)

View the result of tree2array() as a record array.

Warning

tree2rec is deprecated and will be removed in release 5.0.0. Instead use tree2array(...).view(np.recarray).

See also

tree2array

Notes

  • This is equivalent to:

    tree2array(treename, branches).view(np.recarray)
    
  • Refer to the type conversion table.