20x = ROOT.RooRealVar(
"x",
"x", -10, 10)
23gx = ROOT.RooGaussian(
"gx",
"gx", x, -2, 3)
29print(
"gx = ", gx.getVal())
33print(
"gx_Norm[x] = ", gx.getVal(nset))
37igx = gx.createIntegral({x})
38print(
"gx_Int[x] = ", igx.getVal())
44x.setRange(
"signal", -5, 5)
50igx_sig = gx.createIntegral(xset, NormSet=xset, Range=
"signal")
51print(
"gx_Int[x|signal]_Norm[x] = ", igx_sig.getVal())
58gx_cdf = gx.createCdf({x})
61frame = x.frame(Title=
"cdf of Gaussian pdf")
65c = ROOT.TCanvas(
"rf110_normintegration",
"rf110_normintegration", 600, 600)
66ROOT.gPad.SetLeftMargin(0.15)
67frame.GetYaxis().SetTitleOffset(1.6)
70c.SaveAs(
"rf110_normintegration.png")