14from __future__ 
import print_function
 
   21x = ROOT.RooRealVar(
"x", 
"x", -10, 10)
 
   24gx = ROOT.RooGaussian(
"gx", 
"gx", x, ROOT.RooFit.RooConst(-2), ROOT.RooFit.RooConst(3))
 
   30print(
"gx = ", gx.getVal())
 
   34print(
"gx_Norm[x] = ", gx.getVal(nset))
 
   38igx = gx.createIntegral({x})
 
   39print(
"gx_Int[x] = ", igx.getVal())
 
   45x.setRange(
"signal", -5, 5)
 
   51igx_sig = gx.createIntegral(xset, NormSet=xset, Range=
"signal")
 
   52print(
"gx_Int[x|signal]_Norm[x] = ", igx_sig.getVal())
 
   59gx_cdf = gx.createCdf({x})
 
   62frame = x.frame(Title=
"cdf of Gaussian pdf")
 
   66c = ROOT.TCanvas(
"rf110_normintegration", 
"rf110_normintegration", 600, 600)
 
   67ROOT.gPad.SetLeftMargin(0.15)
 
   68frame.GetYaxis().SetTitleOffset(1.6)
 
   71c.SaveAs(
"rf110_normintegration.png")