Re: TTree::MakeSelector() => ill-defined code

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Wed, 05 Jan 2005 16:10:15 +0100


Hi Troy,

Thanks for reporting this problem with MakeSelector/MakeClass with branches with a name finishing with ".". Problem now fixed in CVS.

Rene Brun

"troy d. straszheim" wrote:
>
> Hi roottalk --
>
> I notice that TTree::MakeSelector() creates ill-defined code when the
> tree contains a branch that was created with a trailing dot (root
> 4.02.00. Similar to the MakeClass() error I sent out a few weeks
> ago):
>
> #include <TTree.h>
>
> struct C { };
>
> void makeselector()
> {
> C c, *cp(&c);
> TTree *t = new TTree("mytree", "tree", 10000);
> t->Branch("c.", "C", &cp);
> t->Fill();
> t->MakeSelector("ill_defined");
> }
>
> the generated file ill_defined.h will then contain:
>
> // Declaration of leave types
> C *c.;
>
> cheers,
>
> troy d. straszheim
Received on Wed Jan 05 2005 - 16:09:02 MET

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:04 MET