|
ra4_macros
bede988c286599a3a84b77a4d788ac0a971e89f9
|
Functions | |
| def | get_hist_with_overflow (file, histname) |
| def | get_symmetrized_relative_errors (sysName, tot_data, total_nominal, procList, floating_process, sysFile, directory) |
| def | set_palette_gray (ncontours=20) |
Variables | |
| tuple | parser = argparse.ArgumentParser() |
| tuple | args = parser.parse_args() |
| infile = args.input | |
| verbose = True | |
| one_pdf = False | |
| tuple | nSyst = len(systList) |
| for i in range(0,100): if i == 26 or i == 46: continue systList.append(["w_pdf"+str(i),"PDF "+str(i),i,1]) More... | |
| list | binList = [] |
| tuple | sysFile = ROOT.TFile(infile,"read") |
| list | directory = ibin[0] |
| tuple | data = get_hist_with_overflow(sysFile,directory + "/data_obs") |
| tuple | tot_data = data.Integral() |
| tuple | nbinsX = data.GetNbinsX() |
| list | histsNom = [] |
| tot = tot_data | |
| int | floating = -999 |
| int | floating_process = 0 |
| tuple | fixed = (ip != floating_process) |
| tuple | nominal = get_hist_with_overflow(sysFile,directory + "/" + proc) |
| sf = tot/floating | |
| tuple | total_nominal = ROOT.TH1F(directory+"_nominal","",5,0,5) |
| int | runningtotal = 0 |
| tuple | c = ROOT.TCanvas() |
| tuple | leg = ROOT.TLegend(0.12,0.5,0.64,0.92) |
| tuple | table = ROOT.TH2F("table_"+directory,"",nbinsX,-0.5,nbinsX-0.5,nSyst,0,nSyst) |
| list | systHists_sym = [] |
| list | sysName = syst[0] |
| tuple | systHist = ROOT.TH1F(directory+"_"+sysName+"_sym","",5,0,5) |
| tuple | thisproc = get_symmetrized_relative_errors(pr+"_"+sysName,tot_data,total_nominal,procList,floating_process,sysFile,directory) |
| tuple | thisvar = get_symmetrized_relative_errors("w_pdf"+str(i),tot_data,total_nominal,procList,floating_process,sysFile,directory) |
| tuple | tla = ROOT.TLatex() |
| string | outname = "plots/bkg_systs_all.pdf(" |
| tuple | c2 = ROOT.TCanvas() |
| def rpv_bkg_syst.get_hist_with_overflow | ( | file, | |
| histname | |||
| ) |
Definition at line 22 of file rpv_bkg_syst.py.
Referenced by get_symmetrized_relative_errors().
| def rpv_bkg_syst.get_symmetrized_relative_errors | ( | sysName, | |
| tot_data, | |||
| total_nominal, | |||
| procList, | |||
| floating_process, | |||
| sysFile, | |||
| directory | |||
| ) |
Definition at line 39 of file rpv_bkg_syst.py.
References get_hist_with_overflow().
| def rpv_bkg_syst.set_palette_gray | ( | ncontours = 20 | ) |
Definition at line 123 of file rpv_bkg_syst.py.
| tuple rpv_bkg_syst.args = parser.parse_args() |
Definition at line 11 of file rpv_bkg_syst.py.
| list rpv_bkg_syst.binList = [] |
Definition at line 193 of file rpv_bkg_syst.py.
| tuple rpv_bkg_syst.c = ROOT.TCanvas() |
Definition at line 277 of file rpv_bkg_syst.py.
| tuple rpv_bkg_syst.c2 = ROOT.TCanvas() |
Definition at line 395 of file rpv_bkg_syst.py.
| tuple rpv_bkg_syst.data = get_hist_with_overflow(sysFile,directory + "/data_obs") |
Definition at line 223 of file rpv_bkg_syst.py.
| list rpv_bkg_syst.directory = ibin[0] |
Definition at line 218 of file rpv_bkg_syst.py.
Referenced by outputHistograms().
| tuple rpv_bkg_syst.fixed = (ip != floating_process) |
Definition at line 239 of file rpv_bkg_syst.py.
Referenced by NoDecimal().
| tuple rpv_bkg_syst.floating = -999 |
Definition at line 229 of file rpv_bkg_syst.py.
| int rpv_bkg_syst.floating_process = 0 |
Definition at line 232 of file rpv_bkg_syst.py.
| list rpv_bkg_syst.histsNom = [] |
Definition at line 227 of file rpv_bkg_syst.py.
| rpv_bkg_syst.infile = args.input |
Definition at line 13 of file rpv_bkg_syst.py.
| tuple rpv_bkg_syst.leg = ROOT.TLegend(0.12,0.5,0.64,0.92) |
Definition at line 278 of file rpv_bkg_syst.py.
Referenced by DrawROC(), main(), MakeGraph(), MakeGraphs(), makePlot(), MakePlots(), OverlayHists(), OverlayHistsmT(), plot_distributions(), and plotKappa().
| tuple rpv_bkg_syst.nbinsX = data.GetNbinsX() |
Definition at line 225 of file rpv_bkg_syst.py.
| tuple rpv_bkg_syst.nominal = get_hist_with_overflow(sysFile,directory + "/" + proc) |
Definition at line 241 of file rpv_bkg_syst.py.
Referenced by main().
| tuple rpv_bkg_syst.nSyst = len(systList) |
for i in range(0,100): if i == 26 or i == 46: continue systList.append(["w_pdf"+str(i),"PDF "+str(i),i,1])
Definition at line 190 of file rpv_bkg_syst.py.
| rpv_bkg_syst.one_pdf = False |
Definition at line 19 of file rpv_bkg_syst.py.
| string rpv_bkg_syst.outname = "plots/bkg_systs_all.pdf(" |
Definition at line 380 of file rpv_bkg_syst.py.
| tuple rpv_bkg_syst.parser = argparse.ArgumentParser() |
Definition at line 8 of file rpv_bkg_syst.py.
| int rpv_bkg_syst.runningtotal = 0 |
Definition at line 264 of file rpv_bkg_syst.py.
Definition at line 250 of file rpv_bkg_syst.py.
| tuple rpv_bkg_syst.sysFile = ROOT.TFile(infile,"read") |
Definition at line 216 of file rpv_bkg_syst.py.
| list rpv_bkg_syst.sysName = syst[0] |
Definition at line 284 of file rpv_bkg_syst.py.
| tuple rpv_bkg_syst.systHist = ROOT.TH1F(directory+"_"+sysName+"_sym","",5,0,5) |
Definition at line 289 of file rpv_bkg_syst.py.
| list rpv_bkg_syst.systHists_sym = [] |
Definition at line 280 of file rpv_bkg_syst.py.
Definition at line 279 of file rpv_bkg_syst.py.
| tuple rpv_bkg_syst.thisproc = get_symmetrized_relative_errors(pr+"_"+sysName,tot_data,total_nominal,procList,floating_process,sysFile,directory) |
Definition at line 302 of file rpv_bkg_syst.py.
| tuple rpv_bkg_syst.thisvar = get_symmetrized_relative_errors("w_pdf"+str(i),tot_data,total_nominal,procList,floating_process,sysFile,directory) |
Definition at line 321 of file rpv_bkg_syst.py.
| tuple rpv_bkg_syst.tla = ROOT.TLatex() |
Definition at line 369 of file rpv_bkg_syst.py.
| rpv_bkg_syst.tot = tot_data |
Definition at line 228 of file rpv_bkg_syst.py.
| tuple rpv_bkg_syst.tot_data = data.Integral() |
Definition at line 224 of file rpv_bkg_syst.py.
| tuple rpv_bkg_syst.total_nominal = ROOT.TH1F(directory+"_nominal","",5,0,5) |
Definition at line 257 of file rpv_bkg_syst.py.
| rpv_bkg_syst.verbose = True |
Definition at line 18 of file rpv_bkg_syst.py.
1.8.11