Switching off: Warning in <TFile::Append>: Replacing existing TH1:

Dear ROOT’ers
I have code that use many histograms in the same name. However during initliaziation I get a lot of warnings like:
"Warning in TFile::Append: Replacing existing TH1: "
Is there any way to temporary block such warning? I store such histograms in array so I don’t need unique names for them.

_ROOT Version: 6.10/08
Platform: Not Provided
Compiler: Not Provided


It’s not possible to disable this warning. And I’m not sure it is a good idea to keep the same name for several histograms, since you can always access histogram by name… (it’s like trying to have several files with the same name in the same directory…)

Cheers, Bertrand.

If you do not rely on the histogram being attached to the file but instead are storing them indirectly by storing the collection (or even not storing them at all), you can use


This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.