21dt = ROOT.RooRealVar(
"dt",
"dt", -10, 10)
22tau = ROOT.RooRealVar(
"tau",
"tau", 1.548)
25tm = ROOT.RooTruthModel(
"tm",
"truth model", dt)
28decay_tm = ROOT.RooDecay(
"decay_tm",
"decay", dt,
29 tau, tm, ROOT.RooDecay.DoubleSided)
32frame = dt.frame(ROOT.RooFit.Title(
"Bdecay (x) resolution"))
33decay_tm.plotOn(frame, ROOT.RooFit.LineStyle(ROOT.kDashed))
39bias1 = ROOT.RooRealVar(
"bias1",
"bias1", 0)
40sigma1 = ROOT.RooRealVar(
"sigma1",
"sigma1", 1)
41gm1 = ROOT.RooGaussModel(
"gm1",
"gauss model 1", dt, bias1, sigma1)
44decay_gm1 = ROOT.RooDecay(
"decay_gm1",
"decay",
45 dt, tau, gm1, ROOT.RooDecay.DoubleSided)
48decay_gm1.plotOn(frame)
54bias2 = ROOT.RooRealVar(
"bias2",
"bias2", 0)
55sigma2 = ROOT.RooRealVar(
"sigma2",
"sigma2", 5)
56gm2 = ROOT.RooGaussModel(
"gm2",
"gauss model 2", dt, bias2, sigma2)
59gm1frac = ROOT.RooRealVar(
"gm1frac",
"fraction of gm1", 0.5)
60gmsum = ROOT.RooAddModel(
66 ROOT.RooArgList(gm1frac))
69decay_gmsum = ROOT.RooDecay(
70 "decay_gmsum",
"decay", dt, tau, gmsum, ROOT.RooDecay.DoubleSided)
73decay_gmsum.plotOn(frame, ROOT.RooFit.LineColor(ROOT.kRed))
76c = ROOT.TCanvas(
"rf209_anaconv",
"rf209_anaconv", 600, 600)
77ROOT.gPad.SetLeftMargin(0.15)
78frame.GetYaxis().SetTitleOffset(1.6)
81c.SaveAs(
"rf209_anaconv.png")