TTree::ReadStream does not work as intended when used on std::cin and receiving input from another program.
Please consider the attached files (testmaketree.cxx and test.csv). The first one can be compiled using
g++ $(root-config --libs --cflags) -o testmaketree testmaketree.cxx
The following line works flawlessly executed from a linux shell:
But the this line fails with the following error message:
cat test.csv | ./testmaketree
Error in <TTree::ReadStream>: Error reading stream