[ROOT] TTree & pointers

Matevz Tadel (Matevz.Tadel@ijs.si)
Mon, 15 Feb 1999 16:13:04 +0100 (MET)


Hi ...

I have a case like:

class Ev:public TObject{
TOrdCollection *mFoo; // Collection of Bar objects
Bar *mBar; // Points to one of the Bars in mFoo
};

When writing Ev to a tree, Bar that is pointed to by mBar gets written
twice. Have I done sth wrong or is it a feature?

Cheers,
matevz

_____________________________________________________________
Matevz Tadel, E-mail: Matevz.Tadel@ijs.si
Department of Experimental High Energy Physics - F9
Jozef Stefan Institute, Jamova 39, P.o.Box 3000
SI-1001 Ljubljana, Slovenia
Tel.: +386-61-177-3674 Fax: +386-61-125-7074
-------------------------------------------------------------