#8 closed enhancement (fixed)
GENIE is too noisy
Reported by: | cwilkinson | Owned by: | somebody |
---|---|---|---|
Priority: | trivial | Milestone: | v1r0 |
Component: | component1 | Version: | 1.0 |
Keywords: | Cc: |
Description
Can we suppress GENIE messages when reweighting? It prints reams of unnecessary information. I guess all generators could cause a similar issue, but GENIE seems to be the main culprit.
Change History (4)
comment:1 Changed 8 years ago by
comment:2 Changed 8 years ago by
We can probably redirect the standard out file descriptor before (and return after) calls to GENIE libs so that output is suppressed. Something like:
static std::streambuf CacheBuff* = NULL; void ShhGENIE() { CacheBuff = std::cout.rdbuf(); // save original sbuf std::ofstream fout("/dev/null"); std::cout.rdbuf(fout.rdbuf()); // redirect 'cout' to a 'fout' } void YouCanSpeakNowGENIE(){ std::cout.rdbug(CacheBuff); }
comment:3 Changed 8 years ago by
Milestone: | → milestone1 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Normal std::cout and std::cerr behaviour can be stopped and restored with:
StopTalking?()
StartTalking?()
Note: See
TracTickets for help on using
tickets.
GENIE is too noisy! Those kids keep going on my damn lawn again!