39 auto T =
new TTree(
"T",
"test friend trees");
40 T->Branch(
"Run", &run,
"Run/I");
41 T->Branch(
"Event", &evt,
"Event/I");
42 T->Branch(
"x", &
x,
"x/F");
43 T->Branch(
"y", &
y,
"y/F");
44 T->Branch(
"z", &z,
"z/F");
46 for (
Int_t i=0; i<10000; i++) {
59 Int_t n = T->Draw(
"x:y:z:Run:Event:sin(x):cos(x)",
"Run==1",
"goff");
60 printf(
"The arrays' dimension is %d\n",
n);
69 auto gc =
new TGraph(
n, vx, vxc);
int Int_t
Signed integer 4 bytes (int).
double Double_t
Double 8 bytes.
float Float_t
Float 4 bytes (float).
This is the base class for the ROOT Random number generators.
A TTree represents a columnar dataset.