??? copy constructor of TObjArray

Valeriy Onuchin (onuchin@emcal06.rhic.bnl.gov)
Sat, 20 Feb 1999 15:19:46 -0500


Hi!
I have a problem with copy constructor of TObjArray

see example bellow:

a1 = new TObjArray();
qq1 = new TNamed("qq1");
a1->Add(qq1);
qq2 = new TNamed("qq2");
a1->Add(qq2);

a2 = new TObjArray(*a);
a2->ls()
OBJ: TNamed qq1 : 0
OBJ: TNamed qq2 : 0

// looks good, but

a2->GetEntriesFast()
(Int_t)0

a2->GetLast()
(Int_t)(-1)

So, a2 is not empty, but it seems that the method
TObjArray::GetAbsLast() doesn't work correctly for a2

With best regards, Valery