14 TCanvas *c1 =
new TCanvas(
"c1",
"The FillRandom example",0,0,700,500);
16 gBenchmark->Start(
"fillrandom");
21 TFormula *form1 =
new TFormula(
"form1",
"abs(sin(x)/x)");
22 TF1 *sqroot =
new TF1(
"sqroot",
"x*gaus(0) + [3]*form1",0,10);
23 sqroot->SetParameters(10,4,1,20);
29 TH1F *h1f =
new TH1F(
"h1f",
"Test random numbers",200,0,10);
30 h1f->SetFillColor(45);
31 h1f->FillRandom(
"sqroot",100000);
33 TPaveLabel *lfunction =
new TPaveLabel(5,39,9.8,46,
"The sqroot function");
34 lfunction->SetFillColor(41);
43 sqroot->SetParameters(200,4,1,20);