I would like to run a ROOT script in batch mode and write all the output that is generated to a text file for later reference. The command line I’ve been using is
root -b RunSignalPoint.cpp > output.txt
This seems to work, but it takes a really long time – much longer than it would just to run the script interactively (without writing to a file). Is there a better way to do this?
Here is RunSignalPoint.cpp and the files that go with it. The output mostly consists of some lines as it reads the data files as well as several 5x5 TMatrixT objects. Sample.h (5.75 KB) Sample.cpp (40.4 KB) SimPipeline.h (994 Bytes) SimPipeline.cpp (7.35 KB) RunSignalPoint.cpp (5.71 KB)