ra4_macros  bede988c286599a3a84b77a4d788ac0a971e89f9
Functions | Variables
rpv_sig_syst Namespace Reference

Functions

def get_hist_with_overflow (file, histname)
 
def get_symmetrized_relative_errors (sysName, nominal, proc, sysFile, directory)
 
def set_palette_gray (ncontours=20)
 

Variables

tuple parser = argparse.ArgumentParser()
 
tuple args = parser.parse_args()
 
int GLUINOMASS = 1200
 
 infile = args.input
 
 one_pdf = False
 
 verbose = True
 
tuple nSyst = len(systList)
 
list binList = []
 
tuple sysFile = ROOT.TFile(infile,"read")
 
string proc = "signal_M"
 
list directory = ibin[0]
 
tuple nominal = get_hist_with_overflow(sysFile,(directory + "/" + proc))
 
tuple nbinsX = nominal.GetNbinsX()
 
tuple c = ROOT.TCanvas()
 
tuple leg = ROOT.TLegend(0.12,0.7,0.54,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 thisvar = get_symmetrized_relative_errors("w_pdf"+str(i),nominal,proc,sysFile,directory)
 
tuple tla = ROOT.TLatex()
 
string outname = "plots/sig_systs_all_m"
 
tuple c2 = ROOT.TCanvas()
 

Function Documentation

def rpv_sig_syst.get_hist_with_overflow (   file,
  histname 
)

Definition at line 25 of file rpv_sig_syst.py.

Referenced by get_symmetrized_relative_errors().

def rpv_sig_syst.get_symmetrized_relative_errors (   sysName,
  nominal,
  proc,
  sysFile,
  directory 
)

Definition at line 40 of file rpv_sig_syst.py.

References get_hist_with_overflow().

def rpv_sig_syst.set_palette_gray (   ncontours = 20)

Definition at line 73 of file rpv_sig_syst.py.

Variable Documentation

tuple rpv_sig_syst.args = parser.parse_args()

Definition at line 11 of file rpv_sig_syst.py.

list rpv_sig_syst.binList = []

Definition at line 134 of file rpv_sig_syst.py.

tuple rpv_sig_syst.c = ROOT.TCanvas()

Definition at line 172 of file rpv_sig_syst.py.

tuple rpv_sig_syst.c2 = ROOT.TCanvas()

Definition at line 276 of file rpv_sig_syst.py.

list rpv_sig_syst.directory = ibin[0]

Definition at line 162 of file rpv_sig_syst.py.

rpv_sig_syst.GLUINOMASS = 1200

Definition at line 12 of file rpv_sig_syst.py.

rpv_sig_syst.infile = args.input

Definition at line 14 of file rpv_sig_syst.py.

tuple rpv_sig_syst.leg = ROOT.TLegend(0.12,0.7,0.54,0.92)

Definition at line 173 of file rpv_sig_syst.py.

tuple rpv_sig_syst.nbinsX = nominal.GetNbinsX()

Definition at line 167 of file rpv_sig_syst.py.

tuple rpv_sig_syst.nominal = get_hist_with_overflow(sysFile,(directory + "/" + proc))

Definition at line 166 of file rpv_sig_syst.py.

tuple rpv_sig_syst.nSyst = len(systList)

Definition at line 131 of file rpv_sig_syst.py.

rpv_sig_syst.one_pdf = False

Definition at line 20 of file rpv_sig_syst.py.

string rpv_sig_syst.outname = "plots/sig_systs_all_m"

Definition at line 261 of file rpv_sig_syst.py.

tuple rpv_sig_syst.parser = argparse.ArgumentParser()

Definition at line 8 of file rpv_sig_syst.py.

string rpv_sig_syst.proc = "signal_M"

Definition at line 158 of file rpv_sig_syst.py.

tuple rpv_sig_syst.sysFile = ROOT.TFile(infile,"read")

Definition at line 157 of file rpv_sig_syst.py.

list rpv_sig_syst.sysName = syst[0]

Definition at line 180 of file rpv_sig_syst.py.

tuple rpv_sig_syst.systHist = ROOT.TH1F(directory+"_"+sysName+"_sym","",5,0,5)

Definition at line 181 of file rpv_sig_syst.py.

list rpv_sig_syst.systHists_sym = []

Definition at line 176 of file rpv_sig_syst.py.

tuple rpv_sig_syst.table = ROOT.TH2F("table_"+directory,"",nbinsX,-0.5,nbinsX-0.5,nSyst,0,nSyst)

Definition at line 175 of file rpv_sig_syst.py.

tuple rpv_sig_syst.thisvar = get_symmetrized_relative_errors("w_pdf"+str(i),nominal,proc,sysFile,directory)

Definition at line 199 of file rpv_sig_syst.py.

tuple rpv_sig_syst.tla = ROOT.TLatex()

Definition at line 250 of file rpv_sig_syst.py.

rpv_sig_syst.verbose = True

Definition at line 21 of file rpv_sig_syst.py.