25t = ROOT.RooRealVar(
"t",
"t", 0, 5)
26tmin = ROOT.RooRealVar(
"tmin",
"tmin", 0, 0, 5)
29t.setRange(tmin, ROOT.RooFit.RooConst(t.getMax()))
32tau = ROOT.RooRealVar(
"tau",
"tau", -1.54, -10, -0.1)
33model = ROOT.RooExponential(
"model",
"model", t, tau)
39dall = model.generate({t}, 10000)
42tmp = ROOT.RooGaussian(
"gmin",
"gmin", tmin, 0.0, 0.5).generate({tmin}, 5000)
45dacc = model.generate({t}, ProtoData=tmp)
50r = model.fitTo(dacc, Save=
True, PrintLevel=-1)
56frame = t.frame(Title=
"Fit to data with per-event acceptance")
57dall.plotOn(frame, MarkerColor=
"r", LineColor=
"r")
64c = ROOT.TCanvas(
"rf314_paramranges",
"rf314_paramranges", 600, 600)
65ROOT.gPad.SetLeftMargin(0.15)
66frame.GetYaxis().SetTitleOffset(1.6)
69c.SaveAs(
"rf314_paramranges.png")