17form1 = ROOT.TFormula(
"form1",
"abs(sin(x)/x)")
20sqroot = ROOT.TF1(
"sqroot",
"x*gaus(0) + [3]*form1", rangeMin, rangeMax)
23sqroot.SetParameters(10.0, 4.0, 1.0, 20.0)
26h1d = ROOT.TH1D(
"h1d",
"Test random numbers", nBins, rangeMin, rangeMax)
28h1d.FillRandom(
"sqroot", 10000)
35c1 = ROOT.TCanvas(
"c1",
"The FillRandom example", topX, topY, width, height)
39pad1 = ROOT.TPad(
"pad1",
"The pad with the function", 0.05, 0.50, 0.95, 0.95)
40pad2 = ROOT.TPad(
"pad2",
"The pad with the histogram", 0.05, 0.05, 0.95, 0.45)
50pad1.GetFrame().SetBorderMode(-1)
57lfunction = ROOT.TPaveLabel(5, 39, 9.8, 46,
"The sqroot function")
63pad2.GetFrame().SetBorderMode(-1)