39 T->
Branch(
"Run",&run,
"Run/I");
40 T->
Branch(
"Event",&evt,
"Event/I");
45 for (
Int_t i=0;i<10000;i++) {
46 if (i < 5000) run = 1;
56 Int_t n = T->
Draw(
"x:y:z:Run:Event:sin(x):cos(x)",
"Run==1",
"goff");
57 printf(
"The arrays' dimension is %d\n",n);
64 T->
Draw(
"x",
"Run==1",
"goff");
virtual Double_t Gaus(Double_t mean=0, Double_t sigma=1)
Samples a random number from the standard Normal (Gaussian) Distribution with the given mean and sigm...
virtual Int_t Fill()
Fill all branches.
virtual void Draw(Option_t *chopt="")
Draw this graph with its current attributes.
This is the base class for the ROOT Random number generators.
void run(bool only_compile=false)
virtual void Draw(Option_t *opt)
Default Draw method for all objects.
you should not use this method at all Int_t Int_t z
virtual Int_t Branch(TCollection *list, Int_t bufsize=32000, Int_t splitlevel=99, const char *name="")
Create one branch for each element in the collection.
virtual Double_t * GetVal(Int_t i)
A Graph is a graphics object made of two arrays X and Y with npoints each.
A TTree object has a header with a name and a title.
virtual Double_t Landau(Double_t mean=0, Double_t sigma=1)
Generate a random number following a Landau distribution with location parameter mu and scale paramet...