Capture root message when plotting
When files are plotted in the visualize.py
step with a file path retrieved by TQPathManager::getLocalPath(...)
, the standard ROOT message is not very useful for the user. It shows the temporary location, which the user should not have to know about. Example:
TCanvas::Print INFO pdf file /tmp/kolehman/18499_15_results-flatNTuple_Example-plots-mm-CutEtaFakeElec-fakeElectronPt-lin.pdf has been created
My suggestion: Capture this message. If it is the expected message, suppress it, otherwise print it. In addition, add a CAF message indicating the output location where the plot will be copied to.