3.1.2.18. opengate.helpers_tests_root

3.1.2.18.1. Module Contents

3.1.2.18.1.1. Functions

root_compare_param_tree(filename, tree_name, keys)

root_compare_param(keys, fig)

root_compare4(p1, p2, param)

Compare two root trees.

compare_trees4(p1, p2, param)

opengate.helpers_tests_root.root_compare_param_tree(filename, tree_name, keys)[source]
opengate.helpers_tests_root.root_compare_param(keys, fig)[source]
opengate.helpers_tests_root.root_compare4(p1, p2, param)[source]

Compare two root trees.

p1 and p2 contain = the root filename, the tree name, a list of branch names (see root_compare_param_tree) Also, each branch can be scaled and clip to a min/max range.

param contains: the tolerance values (for all branches), the fig name, the nb of bins of the histograms, the tolerance for the nb of hits (see root_compare_param)

opengate.helpers_tests_root.compare_trees4(p1, p2, param)[source]