24x = ROOT.RooRealVar(
"x",
"x", 0, 10)
25y = ROOT.RooRealVar(
"y",
"y", 0, 10)
26z = ROOT.RooRealVar(
"z",
"z", 0, 10)
29z0 = ROOT.RooRealVar(
"z0",
"z0", -0.1, 1)
30px = ROOT.RooPolynomial(
"px",
"px", x, ROOT.RooArgList(ROOT.RooFit.RooConst(0)))
31py = ROOT.RooPolynomial(
"py",
"py", y, ROOT.RooArgList(ROOT.RooFit.RooConst(0)))
32pz = ROOT.RooPolynomial(
"pz",
"pz", z, ROOT.RooArgList(z0))
33pxyz = ROOT.RooProdPdf(
"pxyz",
"pxyz", ROOT.RooArgList(px, py, pz))
43ylo = ROOT.RooFormulaVar(
"ylo",
"0.1*x", ROOT.RooArgList(x))
44yhi = ROOT.RooFormulaVar(
"yhi",
"0.9*x", ROOT.RooArgList(x))
45y.setRange(
"R", ylo, yhi)
48zlo = ROOT.RooFormulaVar(
"zlo",
"0.0*y", ROOT.RooArgList(y))
49zhi = ROOT.RooFormulaVar(
"zhi",
"0.1*y*y", ROOT.RooArgList(y))
50z.setRange(
"R", zlo, zhi)
56intPdf = pxyz.createIntegral(ROOT.RooArgSet(
57 x, y, z), ROOT.RooArgSet(x, y, z),
"R")
60frame = z0.frame(ROOT.RooFit.Title(
61 "Integral of pxyz over x,y, in region R"))
64c = ROOT.TCanvas(
"rf313_paramranges",
"rf313_paramranges", 600, 600)
65ROOT.gPad.SetLeftMargin(0.15)
66frame.GetYaxis().SetTitleOffset(1.6)
69c.SaveAs(
"rf313_paramranges.png")