51model_ctl =
ROOT.RooAddPdf(
"model_ctl",
"model_ctl", [gx_ctl, px_ctl], [f_ctl])
74 Import={
"physics": data,
"control": data_ctl},
82simPdf =
ROOT.RooSimultaneous(
"simPdf",
"simultaneous pdf", {
"physics": model,
"control": model_ctl}, sample)
88fitResult =
simPdf.fitTo(combData, PrintLevel=-1, Save=
True)
95frame1 =
x.frame(Title=
"Physics sample")
103simPdf.getPdf(
"physics").plotOn(frame1, Components=
"px", LineStyle=
"--")
115frame2 =
x.frame(Title=
"Control sample")
119simPdf.plotOn(frame2, Components=
"px_ctl", ProjWData=(sample, slicedData2), LineStyle=
"--")
123frame3 =
x.frame(Title=
"Both samples")
126simPdf.plotOn(frame3, Components=
"px,px_ctl", ProjWData=(sample, combData), LineStyle=
"--")
128c =
ROOT.TCanvas(
"rf501_simultaneouspdf",
"rf501_simultaneouspdf", 1200, 400)
143c.SaveAs(
"rf501_simultaneouspdf.png")
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.