Classes | |
class | Target |
Classes #############################################################. More... | |
Functions | |
def | add |
def | allsame |
def | alltrue |
def | bayes_divide |
def | divide |
def | main |
def | newadd |
def | operator_func |
def | pathdiff |
def | pathdiff2 |
def | pathdiff3 |
def | scale_with_error |
def | subtract |
def | walk_rootfile |
Implementation ######################################################. More... | |
Variables | |
string | __license__ |
tuple | ROOT = loadROOT() |
rootmath description
def python.rootplot.rootmath.add | ( | outfile, | |
dest, | |||
hists, | |||
scales = None , |
|||
dest_path = "" , |
|||
scale_errors = None |
|||
) |
Definition at line 263 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 145 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 151 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 296 of file rootmath.py.
def python.rootplot.rootmath.divide | ( | outfile, | |
dest, | |||
numer, | |||
denom | |||
) |
Definition at line 290 of file rootmath.py.
def python.rootplot.rootmath.main | ( | ) |
Definition at line 302 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 64 of file rootmath.py.
References python.rootplot.rootmath.add(), python.rootplot.rootmath.allsame(), python.rootplot.rootmath.alltrue(), python.multivaluedict.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 157 of file rootmath.py.
References python.rootplot.rootmath.allsame().
Referenced by python.rootplot.rootmath.main().
Placeholder.
Definition at line 187 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 210 of file rootmath.py.
References python.rootplot.rootmath.allsame(), and min.
def python.rootplot.rootmath.scale_with_error | ( | hist, | |
scale, | |||
scale_error = None |
|||
) |
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 249 of file rootmath.py.
Referenced by python.rootplot.rootmath.add().
def python.rootplot.rootmath.subtract | ( | outfile, | |
dest, | |||
hists | |||
) |
def python.rootplot.rootmath.walk_rootfile | ( | rootfile, | |
path = '' |
|||
) |
Implementation ######################################################.
Definition at line 127 of file rootmath.py.
Referenced by python.rootplot.rootmath.main().
string python.rootplot.rootmath.__license__ |
Definition at line 5 of file rootmath.py.
tuple python.rootplot.rootmath.ROOT = loadROOT() |
Definition at line 43 of file rootmath.py.