Hi Thorsten, Your proposed modification should be OK. Note that the same mod must be done in TTree and TBranchObject. I will introduce your suggestion in the developoment version. Rene Brun thorsten glebe wrote: > > Hello, > > when writing a TTree Branch in split mode, I would like to > have objects inherited from TClonesArray to be treated the same a > TClonesArray's. > > In essence this means one has to modify in > TTree::Branch(const char *name, void *address, const char *leaflist,Int_t > bufsize) > > the line (line 486 in ROOT version 2.25.03) > > if (clobj && !strcmp("TClonesArray",clobj->GetName())) { > > to > if (clobj && clobj->InheritsFrom("TClonesArray")) { > > Of course I can inherit my own TTree class with the above modification, > but maybe it is of general interest... > > Goodbye, > Thorsten > > ---------------------------------------------------- > Dr. Thorsten Glebe <Thorsten.Glebe@mpi-hd.mpg.de> > > Max-Planck-Institut fuer Kernphysik > > Saupfercheckweg 1 Tel: 06221/516-631 > D-69117 Heidelberg Fax: 06221/516-603 > ----------------------------------------------------
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:39 MET