30sig1frac =
ROOT.RooRealVar(
"sig1frac",
"fraction of component 1 in signal", 0.8, 0.0, 1.0)
43bkg1frac =
ROOT.RooRealVar(
"bkg1frac",
"fraction of component 1 in background", 0.8, 0.0, 1.0)
44bkg =
ROOT.RooAddPdf(
"bkg",
"Total background", [bkg1, bkg2], [bkg1frac])
47bkgfrac =
ROOT.RooRealVar(
"bkgfrac",
"fraction of background", 0.5, 0.0, 1.0)
57xframe =
x.frame(Title=
"Component plotting of pdf=(sig1+sig2)+(bkg1+bkg2)")
71model.plotOn(xframe, Components=[bkg2], LineStyle=
"--", LineColor=
"r")
76model.plotOn(xframe, Components=[bkg, sig2], LineStyle=
":")
85model.plotOn(xframe2, Components=
"bkg1,sig2", LineStyle=
":", LineColor=
"c")
89model.plotOn(xframe2, Components=
"sig*", LineStyle=
"--", LineColor=
"c")
93model.plotOn(xframe2, Invisible=
True, Components=
"bkg1,sig*", LineStyle=
"--", LineColor=
"y")
96c =
ROOT.TCanvas(
"rf205_compplot",
"rf205_compplot", 800, 400)
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.