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

Namespaces

 mvaCategory_Uncertainties
 

Variables

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