11 TCanvas *c1 =
new TCanvas(
"c1",
"The FillRandom example",200,10,700,900);
14 auto pad1 =
new TPad(
"pad1",
"The pad with the function",0.05,0.50,0.95,0.95,21);
15 auto pad2 =
new TPad(
"pad2",
"The pad with the histogram",0.05,0.05,0.95,0.45,21);
26 auto sqroot =
new TF1(
"sqroot",
"x*gaus(0) + [3]*form1",0,10);
27 sqroot->SetParameters(10,4,1,20);
49 auto h1f =
new TH1F(
"h1f",
"Test random numbers",200,0,10);
50 h1f->SetFillColor(45);
51 h1f->FillRandom(
"sqroot",10000);
virtual void SetGridx(Int_t value=1)
virtual void SetBorderMode(Short_t bordermode)
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
virtual void Show(const char *name)
Stops Benchmark name and Prints results.
1-D histogram with a float per channel (see TH1 documentation)}
TVirtualPad * cd(Int_t subpadnumber=0)
Set Current pad.
virtual void Start(const char *name)
Starts Benchmark with the specified name.
TFrame * GetFrame()
Get frame.
virtual void SetBorderSize(Short_t bordersize)
virtual void Draw(Option_t *option="")
Draw Pad in Current pad (re-parent pad if necessary).
A Pave (see TPave) with a text centered in the Pave.
virtual void SetFillColor(Color_t fcolor)
R__EXTERN TBenchmark * gBenchmark
The most important graphics class in the ROOT system.
virtual void SetGridy(Int_t value=1)
virtual void Update()
Update canvas pad buffers.