ROOT
6.06/09
Reference Guide
ROOT Home Page
Main Page
Related Pages
User's Classes
Namespaces
All Classes
Files
Release Notes
File List
File Members
html
doc
macros
testmacro.C
Go to the documentation of this file.
1
TObject
*
testmacro
()
2
{
3
4
TH1
*
h
=
new
TH1F
(
"h"
,
"h"
, 100, 0., 1.);
5
h->
FillRandom
(
"gaus"
,10000);
6
TCanvas
*
c
=
new
TCanvas
(
"c"
,
"c"
);
7
h->
Draw
();
8
9
return
c
;
10
}
h
TH1 * h
Definition:
legend2.C:5
ROOT::TH1F
THist< 1, float > TH1F
Definition:
THist.h:315
testmacro
TObject * testmacro()
Definition:
testmacro.C:1
TH1::FillRandom
virtual void FillRandom(const char *fname, Int_t ntimes=5000)
Fill histogram following distribution in function fname.
Definition:
TH1.cxx:3330
TH1::Draw
virtual void Draw(Option_t *option="")
Draw this histogram with options.
Definition:
TH1.cxx:2878
TCanvas
The Canvas class.
Definition:
TCanvas.h:48
TH1
The TH1 histogram class.
Definition:
TH1.h:80
TObject
Mother of all ROOT objects.
Definition:
TObject.h:58
sample_config.c
tuple c
Definition:
sample_config.py:3