Create can ntuple reading data from an ascii file.
This macro is a variant of basic.C
void basic2() {
TH1F *h1 =
new TH1F(
"h1",
"x distribution",100,-4,4);
TTree *T =
new TTree(
"ntuple",
"data from ascii file");
printf(" found %lld points\n",nlines);
}
- Author
- Rene Brun
Definition in file basic2.C.