ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
testmacro.C
Go to the documentation of this file.
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 }
return c
TH1 * h
Definition: legend2.C:5
1-D histogram with a float per channel (see TH1 documentation)}
Definition: TH1.h:570
TObject * testmacro()
Definition: testmacro.C:1
virtual void FillRandom(const char *fname, Int_t ntimes=5000)
Fill histogram following distribution in function fname.
Definition: TH1.cxx:3330
virtual void Draw(Option_t *option="")
Draw this histogram with options.
Definition: TH1.cxx:2878
The Canvas class.
Definition: TCanvas.h:48
The TH1 histogram class.
Definition: TH1.h:80
Mother of all ROOT objects.
Definition: TObject.h:58