Hi Anton,
you could do the following:
#include <TError.h>
{
gErrorIgnoreLevel=kError;
TH1F *h = new TH1F(...);
gErrorIgnoreLevel=kWarning;
}
Cheers, Fons.
On Sun, Jan 28, 2001 at 12:58:51PM +0100, Anton Fokin wrote:
> Hi rooters,
>
> how can I turn off different warning messages in ROOT like replacing hist
> warning, file doesn't exist warning etc.?
>
> Regards,
> Anton
>
--
Org: CERN, European Laboratory for Particle Physics.
Mail: 1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248
WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7677910
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:34 MET