Loading data from ascii files into root histograms

Hello,

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.

Frank.

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”);
t.ReadFile(“xx.dat”);
t.Draw(“x”,“y<0”);

Rene Brun