39 T->Branch(
"Run",&run,
"Run/I");
40 T->Branch(
"Event",&evt,
"Event/I");
41 T->Branch(
"x",&
x,
"x/F");
42 T->Branch(
"y",&
y,
"y/F");
43 T->Branch(
"z",&z,
"z/F");
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);
A Graph is a graphics object made of two arrays X and Y with npoints each.
virtual void Draw(Option_t *chopt="")
Draw this graph with its current attributes.
This is the base class for the ROOT Random number generators.
A TTree represents a columnar dataset.