24f = ROOT.TFile(
"rf502_workspace_py.root")
44model.fitTo(data, PrintLevel=-1)
47xframe = x.frame(Title=
"Model and data read from workspace")
52model.plotOn(xframe, Components=
"bkg", LineStyle=
"--")
55model.plotOn(xframe, Components=
"bkg,sig2", LineStyle=
":")
58c = ROOT.TCanvas(
"rf503_wspaceread",
"rf503_wspaceread", 600, 600)
59ROOT.gPad.SetLeftMargin(0.15)
60xframe.GetYaxis().SetTitleOffset(1.4)
63c.SaveAs(
"rf503_wspaceread.png")