this is about C++ coding in CERN ROOT. So I have a text file with columns of data. Now I need to make a .root file with all the data in a tree. How would I do this? Also, if the text file has column headers, how would I write my code to get them to be my tree's branch names? Thanks in advance!
this example from the ROOT web page shows how to do exactly what you want:
http://root.cern.ch/root/html534/tutorials/tree/cernbuild.C.html