lXExp.Draw("l sames") lXObs.Draw("l sames") leg.Draw() canv1.Update() ROOT.gPad.Modified() ROOT.gPad.RedrawAxis() fileend = "_dijet_av" if iAxial else "_dijet_v" fileend = fileend + "_90" if i90CL else fileend fileend = fileend + "_Exp" if iExp else fileend canv1.SaveAs("gq_mdm_mmed" + fileend + ".png") canv1.SaveAs("gq_mdm_mmed" + fileend + ".pdf") lFile = ROOT.TFile("MMedMDM" + fileend + ".root", "RECREATE") lObs.SetName("obs") lObs.SetTitle("obs") lExp.SetName("exp") lExp.SetTitle("exp") lXObs.SetName("obs_025") lXObs.SetTitle("obs_025") lXExp.SetName("exp_025") lXExp.SetTitle("exp_025") lObs.Write() lExp.Write() lXObs.Write() lXExp.Write() end() if __name__ == '__main__': options = parser() main(options.Axial, options.CL90, options.Exp, options.gb)
lXExp.Draw("l sames") lXObs.Draw("l sames") leg.Draw() canv1.Update() ROOT.gPad.Modified() ROOT.gPad.RedrawAxis() fileend="_dijet_av" if iAxial else "_dijet_v" fileend=fileend+"_90" if i90CL else fileend fileend=fileend+"_Exp" if iExp else fileend canv1.SaveAs("gq_mdm_mmed"+fileend+".png") canv1.SaveAs("gq_mdm_mmed"+fileend+".pdf") lFile = ROOT.TFile("MMedMDM"+fileend+".root","RECREATE") lObs.SetName("obs") lObs.SetTitle("obs") lExp.SetName("exp") lExp.SetTitle("exp") lXObs.SetName("obs_025") lXObs.SetTitle("obs_025") lXExp.SetName("exp_025") lXExp.SetTitle("exp_025") lObs.Write() lExp.Write() lXObs.Write() lXExp.Write() end() if __name__ == '__main__': options=parser() main(options.Axial,options.CL90,options.Exp,options.gb)