Example #1
0
    # 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);
    pad2.SetGridy(); # vertical grid
    #pad2.SetGridx(); # vertical grid