Changing output level

Hello

I would like root not to print out messages such as

Warning in TH1::Build: Replacing existing histogram: key (Potential memory leak).

Info in TCanvas::Print: eps file SingleTop_RecoBTag_Neq1JetLepCutwowRecoJet_Neq2_Defalt/Centrality_Jets_stack.eps has been created

etc. I looked around and found some suggestions but they didn’t work, I’m suspecting there is different way of setting this since I’m using PyRoot. Could you please let me know how to turn this off under PyRoot?

Many thanks in advance.

Cheers
Akira

root.cern.ch/phpBB2/viewtopic.php?t=4530

Jan

Amazing, just what I needed. Thanks a lot. Akira

Hi,

should’ve posted that in the other thread at the time, but if you do “import ROOT” and keep the module, you can set such globals as gErrorIgnoreLevel directly:import ROOT ROOT.gErrorIgnoreLevel = 2000
Cheers,
Wim