38 TTree *T =
new TTree(
"T",
"test friend trees");
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);
60 Double_t *vx = T->GetVal(0);
61 Double_t *vxs = T->GetVal(5);
62 Double_t *vxc = T->GetVal(6);
65 TGraph *gs =
new TGraph(n,vx,vxs);
66 TGraph *gc =
new TGraph(n,vx,vxc);