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)")
73model.plotOn(xframe, Components=ras_bkg2, LineStyle=
"--", LineColor=
"r")
78ras_bkg_sig2 = {bkg, sig2}
79model.plotOn(xframe, Components=ras_bkg_sig2, LineStyle=
":")
88model.plotOn(xframe2, Components=
"bkg1,sig2", LineStyle=
":", LineColor=
"c")
92model.plotOn(xframe2, Components=
"sig*", LineStyle=
"--", LineColor=
"c")
96model.plotOn(xframe2, Invisible=
True, Components=
"bkg1,sig*", LineStyle=
"--", LineColor=
"y")
99c =
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.