I want to suppress the INFO messages, but I can’t find a way to do it.
I already switched on the silent mode.
The code line that creates the messages is the following:
thanks for your response, but unfortunately this doesn’t work out for me, the output is still there. Any further ideas?
I included the info messages below, maybe they give a hint.
[#1] INFO:Eval -- RooRealVar::setRange(mass) new range named 'refrange_fft_bw_cb_conv' created with bounds [66,116]
[#1] INFO:Caching -- RooAbsCachedPdf::getCache(bw_cb_conv) creating new cache 0x1dc0d1a0 with pdf bw_CONV_cb_CACHE_Obs[beta,mass] for nset (mass,eta1,eta2) with code 0
[#1] INFO:NumericIntegration -- RooRealIntegral::init(bw_CONV_cb_CACHE_Obs[beta,mass]_Int[mass]) using numeric integrator RooIntegrator1D to calculate Int(mass)
For example, this might do what you need (or probably be ‘too quiet’):RooFit::RooMsgService::instance().SetStreamStatus(1,false);
or maybe a series of// Remove stream for integration
RooFit::RooMsgService::instance().getStream(1).removeTopic(NumericIntegration) ;
Just a small correction of the first Philippe’s post … in order to get rid of “Info in …” messages, one needs to set: gErrorIgnoreLevel = kWarning;
See [url]How to set output verbosity level in ROOT? and “${ROOTSYS}/include/TError.h” or “${ROOTSYS}/include/root/TError.h” files.
Probably somebody is in the code resetting the default level for the message stream. Are you using RooStats or some other package built on top of RooFit ?
Hi,
RooStats is a a package built on top of libRooFitCore and libRooFit. I was thinking that maybe some RooStats code was re-setting the message level to its default after you have set an higher suppression level.
So, the only way now to help you in this is to have your code, or a minimal part of it, showing this problem
the problem is kind of solved for me. Since I’m doing my analysis in a stand-alone C++ program now using all the root and roofit libs your suggestions worked out for me. So I’m doing