commons

commons.awkward_commons

commons.configs

analysis_suite.commons.configs.get_inputs(workdir)[source]
analysis_suite.commons.configs.get_list_systs(infile, tool, systs=['all'], **kwargs)[source]
analysis_suite.commons.configs.get_ntuple(name, obj='info')[source]
analysis_suite.commons.configs.sig_fig(x, p=3)[source]

commons.histogram

class analysis_suite.commons.histogram.Histogram(group, *args, **kwargs)[source]

Bases: object

darkenColor(color)[source]
static efficiency(top, bot, asymm=False)[source]
fill(*vals, weight, flow=True, member=None)[source]
get_int_err(sqrt_err=False, roundDigit=2)[source]
get_xrange()[source]
integral(flow=True)[source]
move_overflow()[source]
plot_2d(pad, **kwargs)[source]
plot_band(pad, asymm=False, **kwargs)[source]
plot_points(pad, **kwargs)[source]
plot_shape(pad, **kwargs)[source]
project(ax)[source]
scale(scale, changeName=False, forPlot=False)[source]
set_metadata(other)[source]
set_plot_details(group_info)[source]

commons.info

class analysis_suite.commons.info.FileInfo[source]

Bases: object

get_group(splitname)[source]
get_info(alias)[source]
get_xsec(group)[source]
is_data(group)[source]
class analysis_suite.commons.info.GroupInfo(group2color=None, **kwargs)[source]

Bases: object

get_color(group)[source]
get_legend_name(group)[source]
get_memberMap()[source]
get_members(group)[source]
setup_groups(groups=None)[source]
setup_members(groups=None)[source]
class analysis_suite.commons.info.NtupleInfo(filename: str, trees: list, region: str, cut: Callable[[object], bool] = None, branches: list = None, changes: dict = <factory>, ignores: dict = <factory>)[source]

Bases: object

add_change(tree, changes)[source]
add_ignore(tree, ignores)[source]
apply_cut(vg, *args)[source]
branches: list = None
changes: dict
cut: Callable[[object], bool] = None
filename: str
get_change(tree, member)[source]
get_file(**kwargs)[source]
get_filename(year, workdir=None)[source]
ignore(tree, group)[source]
ignores: dict
region: str
setup_branches(vg)[source]
trees: list

commons.makeSimpleHtml