User Tools

Site Tools


root:loadtext

This is an old revision of the document!


Read data from text file

To read data from a text file into a tree all you need are the following two lines

  TTree *myTree = new TTree("ntuple","data from ascii file");
  Long64_t nlines = myTree->ReadFile(filename,"col1:col2:col3");
root/loadtext.1289316788.txt.gz · Last modified: 2010/11/09 16:33 by nchiap