Loading data from ascii files into root histograms


I just started out with root, one of the things I am trying to do is reading data from an ascii file with several columns of data into a root histogram (one column per histogram).

Is that possible? I was looking at some examples that would explain this but could not find it. Could somebody point me to an example regarding this, or point out where in the manual or root examples I can find this.


Hi Frank,

Assuming an ascii file “xx.dat” with 5
columns (say x,y,z,u,w), do:

TNtuple t(“t”,“test”,“x:y:z:u:w”);

Rene Brun