Does anyone know of a simple way to write a TTree to a TXT (CSV) file? Reading a TXT file into a TTree can be accomplished in one line and I was curious if anyone knows of an equivalent way to do this in “reverse.”
For example, to read a tab/space delimited text that has 4 columns file into a TTree (T):
T->ReadFile ("Data.txt","var1:var2:var3:var4");
Is there a simple way to take T and write the text file?