HiggsAnalysis-KITHiggsToTauTau
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
mvaCategory_Uncertainties Namespace Reference

Variables

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)
 

Variable Documentation

tuple mvaCategory_Uncertainties.args = parser.parse_args()
list mvaCategory_Uncertainties.corr_reg = [0, 0]
string mvaCategory_Uncertainties.default = "./"
list mvaCategory_Uncertainties.down = integral_dict[name+"_down"]
list mvaCategory_Uncertainties.down_down = integral_dict[name+"_down_down"]
list mvaCategory_Uncertainties.down_nom = integral_dict[name+"_down_nom"]
tuple mvaCategory_Uncertainties.full_path = os.path.expandvars(infile)
string mvaCategory_Uncertainties.help = "File with integral values, give as many files as there are categories (mt_Integrals.txt)"
dictionary mvaCategory_Uncertainties.integral_dict = {}
tuple mvaCategory_Uncertainties.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.log = logging.getLogger(__name__)
string mvaCategory_Uncertainties.name = "{ch}_{reg_bdt}_{cat}"
list mvaCategory_Uncertainties.nom = integral_dict[name]
list mvaCategory_Uncertainties.nom_down = integral_dict[name+"_nom_down"]
list mvaCategory_Uncertainties.nom_nom = integral_dict[name]
list mvaCategory_Uncertainties.nom_up = integral_dict[name+"_nom_up"]
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)

tuple mvaCategory_Uncertainties.parser
Initial value:
1 = argparse.ArgumentParser(description="Calculate lnN uncertainty from integral values of categories and their shifts",
2  parents=[logger.loggingParser])
dictionary mvaCategory_Uncertainties.reg_unc_dict = {}
tuple mvaCategory_Uncertainties.tot_unc = (down_down/nom_nom-1, up_up/nom_nom-1)
tuple mvaCategory_Uncertainties.uncorr_reg = (down_nom/nom_nom, up_nom/nom_nom)
list mvaCategory_Uncertainties.uncorr_vbf = [nom_down/nom_nom, nom_up/nom_nom]
list mvaCategory_Uncertainties.up = integral_dict[name+"_up"]
list mvaCategory_Uncertainties.up_nom = integral_dict[name+"_up_nom"]
list mvaCategory_Uncertainties.up_up = integral_dict[name+"_up_up"]
dictionary mvaCategory_Uncertainties.vbf_unc_dict = {}