Classes | |
class | Target |
Classes #############################################################. More... | |
Functions | |
def | add (outfile, dest, hists, scales=None, dest_path="", scale_errors=None) |
def | allsame (iterable) |
def | alltrue (iterable) |
def | bayes_divide (outfile, dest, numer, denom) |
def | divide (outfile, dest, numer, denom) |
def | main () |
def | newadd (outfile, targets, dest_path="") |
def | operator_func (fn) |
def | pathdiff (paths, joiner) |
def | pathdiff2 (paths, joiner='__', truncate=False) |
def | pathdiff3 (paths, joiner='__') |
def | scale_with_error (hist, scale, scale_error=None) |
def | subtract (outfile, dest, hists) |
def | walk_rootfile (rootfile, path='') |
Implementation ######################################################. More... | |
Variables | |
__license__ | |
ROOT | |
rootmath description
def python.rootplot.rootmath.add | ( | outfile, | |
dest, | |||
hists, | |||
scales = None , |
|||
dest_path = "" , |
|||
scale_errors = None |
|||
) |
Definition at line 264 of file rootmath.py.
References python.rootplot.rootmath.scale_with_error().
Referenced by python.rootplot.rootmath.newadd().
def python.rootplot.rootmath.allsame | ( | iterable | ) |
Definition at line 146 of file rootmath.py.
Referenced by python.rootplot.rootmath.newadd(), python.rootplot.rootmath.pathdiff(), python.rootplot.rootmath.pathdiff2(), and python.rootplot.rootmath.pathdiff3().
def python.rootplot.rootmath.alltrue | ( | iterable | ) |
Definition at line 152 of file rootmath.py.
Referenced by python.rootplot.rootmath.main(), and python.rootplot.rootmath.newadd().
def python.rootplot.rootmath.bayes_divide | ( | outfile, | |
dest, | |||
numer, | |||
denom | |||
) |
Definition at line 297 of file rootmath.py.
def python.rootplot.rootmath.divide | ( | outfile, | |
dest, | |||
numer, | |||
denom | |||
) |
def python.rootplot.rootmath.main | ( | ) |
Definition at line 303 of file rootmath.py.
References python.rootplot.rootmath.alltrue(), python.rootplot.rootmath.pathdiff(), python.rootplot.utilities.rootglob(), and python.rootplot.rootmath.walk_rootfile().
def python.rootplot.rootmath.newadd | ( | outfile, | |
targets, | |||
dest_path = "" |
|||
) |
Description.
Definition at line 65 of file rootmath.py.
References python.rootplot.rootmath.add(), python.rootplot.rootmath.allsame(), python.rootplot.rootmath.alltrue(), mps_alisetup.append, python.rootplot.rootmath.pathdiff2(), and python.rootplot.utilities.rootglob().
def python.rootplot.rootmath.operator_func | ( | fn | ) |
def python.rootplot.rootmath.pathdiff | ( | paths, | |
joiner | |||
) |
Return the appropriate destination for an object. In all cases, the result will be placed in the deepest directory shared by all paths. If the histogram names are the same, the result will be named based on the first directories that they do not share. Otherwise, the result will be named based on the names of the other histograms. >>> pathdiff(['/dirA/dirB/dirX/hist', '/dirA/dirB/dirY/hist'], '_div_') '/dirA/dirB/dirX_div_dirY' >>> pathdiff(['/dirA/hist1', '/dirA/hist2', '/dirA/hist3'], '_plus_') '/dirA/hist1_plus_hist2_plus_hist3' >>> pathdiff(['/hist1', '/dirA/hist2'], '_minus_') '/hist1_minus_hist2'
Definition at line 158 of file rootmath.py.
References python.rootplot.rootmath.allsame().
Referenced by python.rootplot.rootmath.main().
Placeholder.
Definition at line 188 of file rootmath.py.
References python.rootplot.rootmath.allsame().
Referenced by python.rootplot.rootmath.newadd().
def python.rootplot.rootmath.pathdiff3 | ( | paths, | |
joiner = '__' |
|||
) |
Return the appropriate destination for an object. If the final objects in each path match, then the return value will be the matching part of the paths. Otherwise, the output path will simply be those names joined together with *joiner*. See the examples below. >>> pathdiff3(['/dirA/dirX/hist', '/dirA/dirY/hist']) '/hist' >>> pathdiff3(['/dirA/dirX/dirB/hist', '/dirA/dirY/dirB/hist']) '/dirB/hist' >>> pathdiff3(['/dirA/hist1', '/dirA/hist2', '/dirA/hist3'], '_plus_') '/hist1_plus_hist2_plus_hist3' >>> pathdiff3(['/hist1', '/dirA/hist2'], '_div_') '/hist1_div_hist2'
Definition at line 211 of file rootmath.py.
References python.rootplot.rootmath.allsame(), and min().
Scale a histogram by a scale factor that has an error. This takes into account the scale error to set new error bars.
Definition at line 250 of file rootmath.py.
Referenced by python.rootplot.rootmath.add().
def python.rootplot.rootmath.subtract | ( | outfile, | |
dest, | |||
hists | |||
) |
Definition at line 284 of file rootmath.py.
def python.rootplot.rootmath.walk_rootfile | ( | rootfile, | |
path = '' |
|||
) |
Implementation ######################################################.
Definition at line 128 of file rootmath.py.
Referenced by python.rootplot.rootmath.main().
|
private |
Definition at line 6 of file rootmath.py.
python.rootplot.rootmath.ROOT |
Definition at line 44 of file rootmath.py.