HiggsAnalysis-KITHiggsToTauTau
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
makePlots_BdtShiftLimits.py File Reference

Namespaces

 makePlots_BdtShiftLimits
 

Functions

def makePlots_BdtShiftLimits.get_limit
 

Variables

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