Functions | |
def | get_limit |
Variables | |
tuple | log = logging.getLogger(__name__) |
tuple | parser = argparse.ArgumentParser(description="Print contents of trees.", parents=[logger.loggingParser]) |
string | help = "labels for the legend, has to be specified as often as --input-dirs. [Default%(default)s]" |
tuple | args = parser.parse_args() |
tuple | fig = plt.figure() |
tuple | ax = fig.add_subplot(111) |
list | x_names = [] |
list | categories_names = [] |
list | x_values = [] |
list | values_list = [] |
calculate_diff = True | |
uncertainties = True | |
tuple | base_line = get_limit(args.base_line, args.limits_type) |
string | search_pattern = "{mass}/*Combine*Asymp*" |
list | label = args.labels[conf_i%len(args.labels)] |
list | color = args.colors[conf_i%len(args.colors)] |
dictionary | values = {} |
list | file_list = [] |
list | diff_list = [] |
list | in_file = [f for f in in_file if ".root" in f] |
tuple | name = os.path.split(path) |
tuple | d = os.path.join(path, "datacards/individual/") |
list | categories = [os.path.join(d,o) for o in os.listdir(d) if os.path.isdir(os.path.join(d,o))] |
list | category_files = [] |
tuple | cat_name = os.path.split(cat_path) |
tuple | split_name = cat_name.replace("%s_"%channel,"") |
tuple | lower = np.array([values[name]["combined"][0]-values[name]["combined_diff"][0] for name in x_names]) |
tuple | upper = np.array([values[name]["combined"][2]-values[name]["combined_diff"][2] for name in x_names]) |
tuple | y_values = np.array([values[name]["combined"][1]-values[name]["combined_diff"][1] for name in x_names]) |
dictionary | save_values = {} |
dictionary | y_dict = {} |
dictionary | y_up_dict = {} |
dictionary | y_down_dict = {} |
list | x_values_list = [] |
list | full_y_values = [[values[name]["combined"][1]-values[name]["combined_diff"][1] for name in x_names] for values in values_list] |
list | full_y_up = [[values[name]["combined"][2]-values[name]["combined_diff"][2] for name in x_names] for values in values_list] |
list | full_y_down = [[values[name]["combined"][0]-values[name]["combined_diff"][0] for name in x_names] for values in values_list] |
tuple | y_values_amount = len(y_dict[args.lumi_list[0]]) |
list | y_values_list = [[] for i in range(y_values_amount)] |
list | y_values_up = [[] for i in range(y_values_amount)] |
list | y_values_down = [[] for i in range(y_values_amount)] |
tuple | lgd = ax.legend(bbox_to_anchor=(1, 1), loc=2, borderaxespad=0., numpoints=1) |
def makePlots_BdtShiftLimits.get_limit | ( | root_files, | |
file_type = "asymptotic" |
|||
) |
tuple makePlots_BdtShiftLimits.args = parser.parse_args() |
tuple makePlots_BdtShiftLimits.ax = fig.add_subplot(111) |
int makePlots_BdtShiftLimits.base_line = get_limit(args.base_line, args.limits_type) |
makePlots_BdtShiftLimits.calculate_diff = True |
tuple makePlots_BdtShiftLimits.cat_name = os.path.split(cat_path) |
list makePlots_BdtShiftLimits.categories = [os.path.join(d,o) for o in os.listdir(d) if os.path.isdir(os.path.join(d,o))] |
list makePlots_BdtShiftLimits.categories_names = [] |
list makePlots_BdtShiftLimits.category_files = [] |
list makePlots_BdtShiftLimits.color = args.colors[conf_i%len(args.colors)] |
tuple makePlots_BdtShiftLimits.d = os.path.join(path, "datacards/individual/") |
list makePlots_BdtShiftLimits.diff_list = [] |
tuple makePlots_BdtShiftLimits.fig = plt.figure() |
list makePlots_BdtShiftLimits.file_list = [] |
list makePlots_BdtShiftLimits.full_y_down = [[values[name]["combined"][0]-values[name]["combined_diff"][0] for name in x_names] for values in values_list] |
list makePlots_BdtShiftLimits.full_y_up = [[values[name]["combined"][2]-values[name]["combined_diff"][2] for name in x_names] for values in values_list] |
list makePlots_BdtShiftLimits.full_y_values = [[values[name]["combined"][1]-values[name]["combined_diff"][1] for name in x_names] for values in values_list] |
string makePlots_BdtShiftLimits.help = "labels for the legend, has to be specified as often as --input-dirs. [Default%(default)s]" |
list makePlots_BdtShiftLimits.in_file = [f for f in in_file if ".root" in f] |
list makePlots_BdtShiftLimits.label = args.labels[conf_i%len(args.labels)] |
tuple makePlots_BdtShiftLimits.lgd = ax.legend(bbox_to_anchor=(1, 1), loc=2, borderaxespad=0., numpoints=1) |
tuple makePlots_BdtShiftLimits.log = logging.getLogger(__name__) |
tuple makePlots_BdtShiftLimits.lower = np.array([values[name]["combined"][0]-values[name]["combined_diff"][0] for name in x_names]) |
tuple makePlots_BdtShiftLimits.name = os.path.split(path) |
tuple makePlots_BdtShiftLimits.parser = argparse.ArgumentParser(description="Print contents of trees.", parents=[logger.loggingParser]) |
dictionary makePlots_BdtShiftLimits.save_values = {} |
string makePlots_BdtShiftLimits.search_pattern = "{mass}/*Combine*Asymp*" |
tuple makePlots_BdtShiftLimits.split_name = cat_name.replace("%s_"%channel,"") |
makePlots_BdtShiftLimits.uncertainties = True |
tuple makePlots_BdtShiftLimits.upper = np.array([values[name]["combined"][2]-values[name]["combined_diff"][2] for name in x_names]) |
dictionary makePlots_BdtShiftLimits.values = {} |
list makePlots_BdtShiftLimits.values_list = [] |
list makePlots_BdtShiftLimits.x_names = [] |
tuple makePlots_BdtShiftLimits.x_values = [] |
list makePlots_BdtShiftLimits.x_values_list = [] |
dictionary makePlots_BdtShiftLimits.y_dict = {} |
dictionary makePlots_BdtShiftLimits.y_down_dict = {} |
dictionary makePlots_BdtShiftLimits.y_up_dict = {} |
tuple makePlots_BdtShiftLimits.y_values = np.array([values[name]["combined"][1]-values[name]["combined_diff"][1] for name in x_names]) |
tuple makePlots_BdtShiftLimits.y_values_amount = len(y_dict[args.lumi_list[0]]) |
list makePlots_BdtShiftLimits.y_values_down = [[] for i in range(y_values_amount)] |
list makePlots_BdtShiftLimits.y_values_list = [[] for i in range(y_values_amount)] |
list makePlots_BdtShiftLimits.y_values_up = [[] for i in range(y_values_amount)] |