User Tools

Site Tools


root:loadtext

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
root:loadtext [2010/11/10 12:17] nchiaproot:loadtext [2010/11/10 12:18] nchiap
Line 6: Line 6:
 </code> </code>
  
 +
 +=== Dynamic Tree Structure ===
  
 If you do not give the structure, the first line of your file must contain the tree definition If you do not give the structure, the first line of your file must contain the tree definition
Line 15: Line 17:
  
 To use this tree you then need to get the branch names To use this tree you then need to get the branch names
-<code c++>+<code C++>
   TTree *myTree = new TTree("mytree","data from ascii file");   TTree *myTree = new TTree("mytree","data from ascii file");
   Long64_t nlines = myTree->ReadFile(filename);   Long64_t nlines = myTree->ReadFile(filename);
root/loadtext.txt · Last modified: 2010/11/15 17:17 by nchiap