I would like to know the proper way to access the output of commands such as
TGeoVolume::CheckOverlaps, which returns void but displays the result of the check into the console. I would like to access the information (whether there are any overlaps or not) in order to go further with my code. I have no idea how to do this from root.
I also tried to do this from outside of root via
root macro_with_CheckOverlaps.C > output.txt but the output of the function is not logged into
I guess I could eventually find a solution, since the output exists in the terminal, but I wonder what the proper way to do this would be, preferably without having to parse the output of the terminal (maybe check the nullity of some pointer? like you can do for