Example #1
0
    pad1.cd();               # pad1 becomes the current pad
    

    # for plotting
    color=1
    drawOpt=''
    leg = ROOT.TLegend(0.65, 0.2, 0.98, 0.5)
    leg.SetBorderSize(0)
    leg.SetFillStyle (0)
    leg.SetTextFont(42);
    leg.SetTextSize(0.04);    
    leg_entry=['Jet Veto','No Jet Veto']
    
    leg.Draw()
    for p in plts:
        p.GetYaxis().SetTitle('Arb. Yields')
        p.SetLineColor(color)
        p.SetMarkerColor(color)
        p.Draw(drawOpt)
        leg.AddEntry(p,leg_entry[color-1])
        drawOpt='same'
        color+=1

    leg.Draw()
    texts = getATLASLabels(can, 0.65, 0.88,'')
    for t in texts:
        t.Draw()
    can.cd();
    pad2 = ROOT.TPad("pad2", "pad2", 0, 0.0, 1, 0.3);
    pad2.SetTopMargin(0);
    pad2.SetBottomMargin(0.3);
Example #2
0
        hupNLO.SetBinError(i, 0)
        hdwNLO.SetBinError(i, 0.0)

    # for plotting
    color = 1
    drawOpt = 'HIST E'
    leg = ROOT.TLegend(0.65, 0.05, 0.98, 0.35)
    leg.SetBorderSize(0)
    leg.SetFillStyle(0)
    leg.SetTextFont(42)
    leg.SetTextSize(0.04)
    leg_entry = ['Nominal', 'BothUp', 'BothDw']

    leg.Draw()
    for p in plts:
        p.GetYaxis().SetTitle('NLO / LO QCD Corrections')
        p.SetLineColor(color)
        #p.GetYaxis().SetRangeUser(0.651,1.2499)
        p.GetYaxis().SetRangeUser(0.51, 1.499)
        p.SetMarkerSize(0)
        p.SetMarkerColor(color)
        p.Draw(drawOpt)
        leg.AddEntry(p, leg_entry[color - 1])
        drawOpt = 'same HIST'
        color += 1

    leg.Draw()
    labeltext = '#gamma+Z#rightarrow#nu#nu'
    if options.ipath1.count('W'):
        labeltext = '#gamma+W#rightarrowl#nu'
    if options.ipath1.count('jj_l'):