Re: TPad::Print()

From: Rene Brun <brun_at_pcroot.cern.ch>
Date: Tue, 7 Jun 2005 21:48:01 +0200 (MEST)


Hi Dmitry,

You can use the global variable gErrorIgnoreLevel that controls the level at which Info messages are printed. By default gErrorIgnoreLevel=0. If you gErrorIgnoreLevel=1 the message printed by TPad::Print will disappear.

gErrorIgnoreLevel is in "TError.h"

Rene Brun

On Tue, 7
Jun 2005, Dmitry Naumov wrote:

> Dear ROOTers,
>
> would it be possible to have a possibility to switch off/on Print message
> when a picture
> is printed by TPad::Print() method? Sometimes in loops it is very convinient
> to get this (generally
> usefull) message. I looked the code and it seems this possibility is not
> foreseen:
>
> TPad::Print(...)
> if (!gSystem <http://root.cern.ch/root/html/TSystem.html>->AccessPathName
> <http://root.cern.ch/root/html/TSystem.html#TSystem:AccessPathName>(psname.Data()))
> {
> Info("Print", "file %s has been created", psname.Data());
>
> If I am not mistaken a small "if" could easily handle this.
>
> Thank you,
> Dmitry
>
Received on Tue Jun 07 2005 - 21:48:06 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:09 MET