root_io

load_Ttree(tree)[source]

load TTree as dict

load_root_data(fnames)[source]

load root file as dict

save_dict_to_root(dic, file_name, tree_name=None)[source]

This function stores data arrays in the form of a dictionary into a root file. It provides a convenient interface to uproot.

Parameters:
  • dic – Dictionary of data

  • file_name – String

  • tree_name – String. By default it’s “tree”.