Classes | |
class | Hist |
class | Hist2D |
Define classes. More... | |
class | HistStack |
class | RootFile |
Functions | |
def | _rootglob0 (tdirectory, dirname, basename) |
def | _rootglob1 (tdirectory, dirname, pattern) |
def | find_num_processors () |
def | get (object_name) |
def | has_glob_magic (s) |
def | irootglob (tdirectory, pathname) |
def | loadROOT (batch=True) |
Define additional helping functions. More... | |
def | ls (directory=None) |
def | process_bin_labels (binlabels) |
def | pwd () |
def | replace (string, replacements) |
def | rootglob (tdirectory, pathname) |
def | testfile () |
def | wilson_interval (numerator_array, denominator_array) |
Variables | |
__license__ | |
glob_magic_check | |
Functions for globbing within root files. More... | |
Utilities for rootplot including histogram classes.
|
private |
Definition at line 552 of file utilities.py.
|
private |
Definition at line 545 of file utilities.py.
def python.rootplot.utilities.find_num_processors | ( | ) |
def python.rootplot.utilities.get | ( | object_name | ) |
Return a Hist object with the given name.
Definition at line 426 of file utilities.py.
def python.rootplot.utilities.has_glob_magic | ( | s | ) |
def python.rootplot.utilities.irootglob | ( | tdirectory, | |
pathname | |||
) |
Return an iterator which yields the paths matching a pathname pattern. The pattern may contain simple shell-style wildcards a la fnmatch.
Definition at line 575 of file utilities.py.
References python.rootplot.utilities.has_glob_magic().
Referenced by python.rootplot.utilities.rootglob().
Define additional helping functions.
Definition at line 433 of file utilities.py.
References join().
Return a python list of ROOT object names from the given directory.
Definition at line 408 of file utilities.py.
def python.rootplot.utilities.process_bin_labels | ( | binlabels | ) |
Definition at line 484 of file utilities.py.
def python.rootplot.utilities.pwd | ( | ) |
def python.rootplot.utilities.replace | ( | string, | |
replacements | |||
) |
Modify a string based on a list of patterns and substitutions. replacements should be a list of two-entry tuples, the first entry giving a string to search for and the second entry giving the string with which to replace it. If replacements includes a pattern entry containing 'use_regexp', then all patterns will be treated as regular expressions using re.sub.
Definition at line 461 of file utilities.py.
def python.rootplot.utilities.rootglob | ( | tdirectory, | |
pathname | |||
) |
Return a list of paths matching a pathname pattern. The pattern may contain simple shell-style wildcards a la fnmatch. >>> import rootplot.utilities >>> f = rootplot.utilities.testfile() >>> rootglob(f, '*') ['dir1', 'dir2', 'dir3', 'dir4'] >>> rootglob(f, 'dir1/*') ['dir1/hist1', 'dir1/hist2', 'dir1/hist3', 'dir1/hist4'] >>> rootglob(f, '*/hist1') ['dir1/hist1', 'dir2/hist1', 'dir3/hist1', 'dir4/hist1'] >>> rootglob(f, 'dir1/hist[1-2]') ['dir1/hist1', 'dir1/hist2']
Definition at line 557 of file utilities.py.
References python.rootplot.utilities.irootglob(), and list().
Referenced by python.rootplot.rootmath.main(), and python.rootplot.rootmath.newadd().
def python.rootplot.utilities.testfile | ( | ) |
Definition at line 521 of file utilities.py.
def python.rootplot.utilities.wilson_interval | ( | numerator_array, | |
denominator_array | |||
) |
Definition at line 494 of file utilities.py.
References objects.autophobj.float, and ComparisonHelper.zip().
Referenced by python.rootplot.utilities.Hist.divide_wilson().
|
private |
Definition at line 5 of file utilities.py.
python.rootplot.utilities.glob_magic_check |
Functions for globbing within root files.
Definition at line 535 of file utilities.py.