> > for(Int_t entry = 0; entry < theSize; ++entry) theData->AddrAt(entry);
> > //AddrAt(Int_t) just return the Object* in specified slot, so it
> > //does nothing here?
> >
> > AddrAt simply returns the pointer to the object in the slot entry.
> You mean this line actually change the TClonesArray internal struct,
> so that theData->GetEntries() or GetEntriesFast will return orignal value
> (theSize)? This confused me.
Yes. Calling theData->AddrAt(entry); for the first (after creation of the TClonesArray or after Clear) will increase the number of entries by one.
Cheers,
Philippe.
Received on Thu Nov 10 2005 - 23:31:12 MET
This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:13 MET