|
tuple | log = logging.getLogger(__name__) |
|
tuple | parser |
|
string | help = "File with integral values, give as many files as there are categories (mt_Integrals.txt)" |
|
string | default = "./" |
|
tuple | args = parser.parse_args() |
|
tuple | o_path = os.path.expandvars(args.output_path) |
| path, filename = os.path.split(full_path) integral_dict = {} with open(full_path, "r") as integral_file: for line in integral_file: category, value = map(strip, line.split(": ")) integral_dict[category] = float(value) jsonTools.JsonDict(integral_dict).save(os.path.join(path, "ReadInIntegrals.json"), indent=4) More...
|
|
dictionary | reg_unc_dict = {} |
|
dictionary | vbf_unc_dict = {} |
|
tuple | full_path = os.path.expandvars(infile) |
|
dictionary | integral_dict = {} |
|
string | name = "{ch}_{reg_bdt}_{cat}" |
|
list | up = integral_dict[name+"_up"] |
|
list | nom = integral_dict[name] |
|
list | down = integral_dict[name+"_down"] |
|
list | up_up = integral_dict[name+"_up_up"] |
|
list | up_nom = integral_dict[name+"_up_nom"] |
|
list | nom_up = integral_dict[name+"_nom_up"] |
|
list | nom_nom = integral_dict[name] |
|
list | nom_down = integral_dict[name+"_nom_down"] |
|
list | down_nom = integral_dict[name+"_down_nom"] |
|
list | down_down = integral_dict[name+"_down_down"] |
|
list | uncorr_vbf = [nom_down/nom_nom, nom_up/nom_nom] |
|
tuple | uncorr_reg = (down_nom/nom_nom, up_nom/nom_nom) |
|
tuple | tot_unc = (down_down/nom_nom-1, up_up/nom_nom-1) |
|
list | corr_reg = [0, 0] |
|
tuple | intermediate_reg = ((tot_unc[0]**2-(uncorr_vbf[0]-1.)**2)**0.5, (tot_unc[1]**2-(uncorr_vbf[1]-1.)**2)**0.5) |
|
tuple mvaCategory_Uncertainties.o_path = os.path.expandvars(args.output_path) |
path, filename = os.path.split(full_path) integral_dict = {} with open(full_path, "r") as integral_file: for line in integral_file: category, value = map(strip, line.split(": ")) integral_dict[category] = float(value) jsonTools.JsonDict(integral_dict).save(os.path.join(path, "ReadInIntegrals.json"), indent=4)