Last active
September 5, 2019 15:48
-
-
Save wiso/e263b8663432871a0b62137587475663 to your computer and use it in GitHub Desktop.
Silence RooFit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ROOT | |
ROOT.RooMsgService.instance().getStream(1).removeTopic(ROOT.RooFit.NumIntegration) | |
ROOT.RooMsgService.instance().getStream(1).removeTopic(ROOT.RooFit.Fitting) | |
ROOT.RooMsgService.instance().getStream(1).removeTopic(ROOT.RooFit.Minimization) | |
ROOT.RooMsgService.instance().getStream(1).removeTopic(ROOT.RooFit.InputArguments) | |
ROOT.RooMsgService.instance().getStream(1).removeTopic(ROOT.RooFit.Eval) | |
ROOT.RooMsgService.instance().getStream(1).removeTopic(ROOT.RooFit.DataHandling) | |
ROOT.RooMsgService.instance().setGlobalKillBelow(ROOT.RooFit.ERROR) | |
ROOT.RooMsgService.instance().setSilentMode(True) |
You can add
ROOT.RooMsgService.instance().setSilentMode(True)to completely suppress all the outputs
thanks, done
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can add
to completely suppress all the outputs