Create can ntuple reading data from an ascii file.
This macro is a variant of basic.C
dir.ReplaceAll(
"/./",
"/");
TH1F *
h1 =
new TH1F(
"h1",
"x distribution",100,-4,4);
TTree *T =
new TTree(
"ntuple",
"data from ascii file");
T->Draw("x","z>2");
T->Write();
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
1-D histogram with a float per channel (see TH1 documentation)
A TTree represents a columnar dataset.
- Author
- Rene Brun
Definition in file basic2.C.