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