Test generation of random numbers distributed according to a function defined by the user
#include <TFormula.h>
void qa2() {
TF1 *sqroot =
new TF1(
"sqroot",
"x*gaus(0) + [3]*form1",0,10);
TH1F *h1f =
new TH1F(
"h1f",
"Test random numbers",200,0,10);
}
R__EXTERN TBenchmark * gBenchmark
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
virtual void Start(const char *name)
Starts Benchmark with the specified name.
virtual void SetParameters(const Double_t *params)
1-D histogram with a float per channel (see TH1 documentation)}
virtual void SetDirectory(TDirectory *dir)
By default, when a histogram is created, it is added to the list of histogram objects in the current ...
virtual void FillRandom(const char *fname, Int_t ntimes=5000, TRandom *rng=nullptr)
Fill histogram following distribution in function fname.
void Draw(Option_t *option="") override
Draw this histogram with options.
A Pave (see TPave) with a text centered in the Pave.
- Author
- Rene Brun
Definition in file qa2.C.