Printing in TTree::ReadStream

Hi ROOTers,

I am trying to use TTree::ReadFile to create a tree from a rather large text file containing > 10 million rows. This can take some time, so I was hoping there was a way to have the method print out a status message every X number of rows so that I now it is running as expected. I looked in the source code for TTree::ReadStream and found that if I set gDebug > 2, it would print on every line. This is an excessive amount of printing, however. Does anybody know if there is a simple way to get the method to print status messages occasionally?


I asked our TTree expert .

Hi Dan,

Without modifying the code in TTree::ReadStream, I am afraid this is not possible.

On the other, you could indeed propose a patch adding a parameter to ReadStream (some verbose level) to allow users to explicitly request this kind of output.


PS. You can also monitor the size of the file the TTree is being stored in.