Geant4 sometimes spams prints in an unguarded/inconvenient/unneeded way. This PR adds functionality from Chroma to temporarily redirect output, as discussed in #66. I basically just plopped this in and tested that it works and verified it works to turn on/off, but a few points remain:
Since this is from Chroma, do we need the Chroma license now, or is this so small/non-specific as to be negligible?
Is this the appropriate way to include this code? Again, I just dropped it in the RAT namespace and went off to the races, so it's possible there is a more proper/consistent way to implement this (on closer look I guess I've now initialized some variables in a header, which is probably very bad...)
So anyway, happy to take suggestions as to how to make this better integrated into RAT.
Geant4 sometimes spams prints in an unguarded/inconvenient/unneeded way. This PR adds functionality from Chroma to temporarily redirect output, as discussed in #66. I basically just plopped this in and tested that it works and verified it works to turn on/off, but a few points remain:
So anyway, happy to take suggestions as to how to make this better integrated into RAT.