13ws = ROOT.RooWorkspace(
"w")
15ws.factory(
"NonCentralChiSquare::nc(x[0,50],k[1.99,0,5],lambda[5])")
17ws.factory(
"NonCentralChiSquare::ncc(x,kk[2.01,0,5],lambda)")
19ws.factory(
"NonCentralChiSquare::nccc(x,kk,lambda)")
20ws[
"nccc"].SetForceSum(
True)
23ws.factory(
"ChiSquarePdf::cs(x,k)")
27ncdata = ws[
"nc"].generate(ws[
"x"], 100)
28csdata = ws[
"cs"].generate(ws[
"x"], 100)
30ncdata.plotOn(plot, MarkerColor=
"r")
31csdata.plotOn(plot, MarkerColor=
"b")
32ws[
"nc"].plotOn(plot, LineColor=
"r")
33ws[
"ncc"].plotOn(plot, LineColor=
"g")
34ws[
"nccc"].plotOn(plot, LineColor=
"y", LineStyle=
"--")
35ws[
"cs"].plotOn(plot, LineColor=
"b", LineStyle=
":")