21x = ROOT.RooRealVar(
"x",
"x", 0, 10)
22y = ROOT.RooRealVar(
"y",
"y", 0, 10)
23z = ROOT.RooRealVar(
"z",
"z", 0, 10)
26z0 = ROOT.RooRealVar(
"z0",
"z0", -0.1, 1)
27px = ROOT.RooPolynomial(
"px",
"px", x, [0.0])
28py = ROOT.RooPolynomial(
"py",
"py", y, [0.0])
29pz = ROOT.RooPolynomial(
"pz",
"pz", z, [z0])
30pxyz = ROOT.RooProdPdf(
"pxyz",
"pxyz", [px, py, pz])
40ylo = ROOT.RooFormulaVar(
"ylo",
"0.1*x", [x])
41yhi = ROOT.RooFormulaVar(
"yhi",
"0.9*x", [x])
42y.setRange(
"R", ylo, yhi)
45zlo = ROOT.RooFormulaVar(
"zlo",
"0.0*y", [y])
46zhi = ROOT.RooFormulaVar(
"zhi",
"0.1*y*y", [y])
47z.setRange(
"R", zlo, zhi)
53intPdf = pxyz.createIntegral({x, y, z}, {x, y, z},
"R")
56frame = z0.frame(Title=
"Integral of pxyz over x,y, in region R")
59c = ROOT.TCanvas(
"rf313_paramranges",
"rf313_paramranges", 600, 600)
60ROOT.gPad.SetLeftMargin(0.15)
61frame.GetYaxis().SetTitleOffset(1.6)
64c.SaveAs(
"rf313_paramranges.png")