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 revisionBoth sides next revision
root:loadtext [2010/11/10 12:18] nchiaproot:loadtext [2010/11/12 15:09] nchiap
Line 7: Line 7:
  
  
-=== Dynamic Tree Structure ===+=== Dynamic Branche Names ===
  
 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 29: Line 29:
   T->SetBranchAddress(col1Name.Data(),&hist1);   T->SetBranchAddress(col1Name.Data(),&hist1);
   T->SetBranchAddress(col2Name.Data(),&hist2);   T->SetBranchAddress(col2Name.Data(),&hist2);
 +</code>
 +
 +=== Dynamic Tree Structure ===
 +You can extend this idea to plot all histograms in an unknown tree.
 +The following code reads a tree form a datafile with a arbitrary number of columns
 +and creats a histogram for each of them.
 +
 +<code C++>
 </code> </code>
root/loadtext.txt · Last modified: 2010/11/15 17:17 by nchiap