Test generation of random numbers distributed according to a function defined by the user. 
   
#include <TFormula.h>
 
   
 
   
   
   
   
   TF1 *
sqroot = 
new TF1(
"sqroot",
"x*gaus(0) + [3]*form1",0,10);
 
   sqroot->SetParameters(10,4,1,20);
 
 
   
   
   
   
   TH1F *
h1f = 
new TH1F(
"h1f",
"Test random numbers",200,0,10);
 
   h1f->FillRandom(
"sqroot",100000);
 
 
 
   h1f->SetDirectory(
nullptr);
 
 
 
   sqroot->SetParameters(200,4,1,20);
 
}
R__EXTERN TBenchmark * gBenchmark
 
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
virtual void Start(const char *name)
Starts Benchmark with the specified name.
 
1-D histogram with a float per channel (see TH1 documentation)
 
A Pave (see TPave) with a text centered in the Pave.
 
- Author
 - Rene Brun 
 
Definition in file qa2.C.