Find a way to intercept errors from ROOT when writing
Sometimes, when writing ROOT files to EOS, if something goes wrong, a lot of errors are printed on stdout/stderr but the software doesn't stop, leaving a corrupted raw data file. Investigate if this can be detected somehow and how to suppress the output.
Two things to be done:
- Maybe check the return values for calls to ROOT functions
- For the unreasonable output, consider redirecting stdout when calling them https://github.com/zpasternack/Redirector
Edited by Ettore Zaffaroni