[ROOT] TObject::Clone and TH1F question

From: Thomas Bretz (tbretz@uni-sw.gwdg.de)
Date: Mon Oct 01 2001 - 13:24:52 MEST


Hello,

I have an object (derived from TObject) which containes some histograms,
like:
class A {
TH1F *hist1;
TH1F *hist2;
}

The histograms are instantiated in the constructor. After constructing
an object of Type A with
A* a;
I'm going to 'clone' it using something like:
A* b = (A*)a->Clone();

Now I get many many warnings like (the object contains about 1000
histograms)
Warning in <TH1::Build>: Replacing existing histogram: HiGain000

Is there a simple way to get rid of this warnings when cloning my object
(more than once)?

Thanks in advance,
Thomas.



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:01 MET