Dear Rene
Thank you for your fast reply.
The output you have sent me is exactly the output I get when I use:
tree->SetBranchStyle(0); (see the second output in my mail)
I have also tried split=0 with the same result.
Sorrowly, I do not have access to CVS yet, so I have to wait for
your next source code release.
Best regards
Christian
Rene Brun wrote:
> Hi Christian,
>
> The correct output of your test program should be:
> Filling tree
> ******************************************************************************
> *Tree :stuff : MyClass entries
> *
> *Entries : 10 : Total = 0 bytes File Size =
> 0 *
> * : : Tree compression factor = 1.00
> *
> ******************************************************************************
> *Branch :MyClass
> *
> *Entries : 10 : BranchElement (see below)
> *
> *............................................................................*
> *Br 0 :TObject :
> *
> *Entries : 10 : Total Size= 0 bytes File Size =
> 0 *
> *Baskets : 0 : Basket Size= 64000 bytes Compression= 1.00
> *
> *............................................................................*
> *Br 1 :fA :
> *
> *Entries : 10 : Total Size= 0 bytes File Size =
> 0 *
> *Baskets : 0 : Basket Size= 64000 bytes Compression= 1.00
> *
> *............................................................................*
> *Br 2 :fS :
> *
> *Entries : 10 : Total Size= 0 bytes File Size =
> 0 *
> *Baskets : 0 : Basket Size= 64000 bytes Compression= 1.00
> *
> *............................................................................*
> Reading tree
> 0: size = 1 aap
> 1: size = 2 aap
> 2: size = 3 aap
> 3: size = 4 aap
> 4: size = 5 aap
> 5: size = 6 aap
> 6: size = 7 aap
> 7: size = 8 aap
> 8: size = 9 aap
> 9: size = 10 aap
>
> In version 3, TArray objects are not split (does not make too much sense).
> Same for TString objects.
>
> Could you start from the CVS version? I fixed a problem connected
> with TArray objects in split mode a few weeks ago.
>
> Rene Brun
>
On Tue, 14 Aug 2001, cstrato@EUnet.at wrote:
------------snip---------
>
> > IMPORTANT: This means that I can recreate my problem with the new
> > branch style with the demo example, since when I add the following
> > line in function CreateOutput(...) just before setting the branch:
> > tree->SetBranchStyle(0); // <== new line added to use BranchOld()
> > TBranch *br = tree->Branch("MyClass","MyClass",&c,bsize,split);
> > then everything works as expected:
> > [christian@pbook eddy]$ ./doit
> > Filling tree
> > ******************************************************************************
> >
> > *Tree :stuff : MyClass entries
> > *
> > *Entries : 10 : Total = 0 bytes File Size = 0
> > *
> > * : : Tree compression factor = 1.00
> > *
> > ******************************************************************************
> >
> > *Branch :MyClass : MyClass
> > *
> > *Entries : 10 : BranchObject (see below)
> > *
> > *............................................................................*
> >
> > *Br 0 :fA.fArray : fA.fArray[fA.fN]/D
> > *
> > *Entries : 10 : Total Size= 0 bytes File Size = 0
> > *
> > *Baskets : 0 : Basket Size= 64000 bytes Compression= 1.00
> > *
> > *............................................................................*
> >
> > *Br 1 :fA.fN :
> > *
> > *Entries : 10 : Total Size= 0 bytes File Size = 0
> > *
> > *Baskets : 0 : Basket Size= 64000 bytes Compression= 1.00
> > *
> > *............................................................................*
> >
> > *Br 2 :fS.fData : fData/C
> > *
> > *Entries : 10 : Total Size= 0 bytes File Size = 0
> > *
> > *Baskets : 0 : Basket Size= 64000 bytes Compression= 1.00
> > *
> > *............................................................................*
> >
> > *Br 3 :fUniqueID :
> > *
> > *Entries : 10 : Total Size= 0 bytes File Size = 0
> > *
> > *Baskets : 0 : Basket Size= 64000 bytes Compression= 1.00
> > *
> > *............................................................................*
> >
> > *Br 4 :fBits :
> > *
> > *Entries : 10 : Total Size= 0 bytes File Size = 0
> > *
> > *Baskets : 0 : Basket Size= 64000 bytes Compression= 1.00
> > *
> > *............................................................................*
> >
> > Reading tree
> > 0: size = 1 aap
> > 1: size = 2 aap
> > 2: size = 3 aap
> > 3: size = 4 aap
> > 4: size = 5 aap
> > 5: size = 6 aap
> > 6: size = 7 aap
> > 7: size = 8 aap
> > 8: size = 9 aap
> > 9: size = 10 aap
> >
> > Now I have the following questions:
> > What could be the reason that on my machine the new branch()
> > function does not work?
> > I suppose, the code works fine on Linux for Intelx86?
> > Could this be a processor-specific problem?
> > Since the Mac uses a PowerPC processor, do you know if the
> > code runs fine on an IBM RS6000?
> >
> > Thank you very much in advance.
> >
> > Best regards
> > Christian
> >
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:57 MET