Hello,
I have two questions concerning subclasses in a TBranch. If I have a
pointer to a subclass, like
ClassB * class_b;
(in a ClassA.h)
and fill a tree with a Branch "ClassA", the class_b does not appear as a
folder, even though I defined:
Bool_t IsFolder() {return kTRUE;}
(this has been suggested in a Mail "Re: Can't browse sub objects" 1997
oct)
the data write and re-read works fine, but it would be very nice if one is
able to browse a complete event like I saw this in the web-page of the
atlas simulation programm.
The second question is more important for me. If I define an array of
subclasses in ClassA.h, like
ClassB class_b[5];
it is not able to get the data from this array:
Warning in <TTree::Branch>: Cannot process member:class_b[5]
But it would be difficult for me to switch to TClonesArray (like it is
done in the Event example). Does anybody know a workaround? Or did I made
something wrong?
Thanks for your help & best regards,
Ingo Froehlich
--
Ingo Froehlich, II. Physikalisches Institut, Universitaet Giessen
Heinrich-Buff-Ring 16, D-35392 Giessen | Tel.: 0641 - 99 33250
EMail: Ingo.Froehlich@exp2.physik.uni-giessen.de | Fax : 0641 - 99 33209
Sekretariat II. Physik: 0641 - 99 33261 | :-)
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:38 MET