Re: [ROOT] Bug in TChain::MakeClass() ??

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Jan 11 2002 - 16:50:37 MET


Hi Martin,

Thanks for reporting this problem. Now fixed in CVS.

Unfortunately the fix could not go to 3.02/07

Rene

Martin ALEKSA wrote:
> 
> Dear root team,
> 
> When creating the class TreeH0.C and the header file TreeH0.h in the
> following way:
> root[] TChain hits("TreeH0")
> root[] hits.Add("galice.root/TreeH0")
> .
> .
> root[] hits.MakeClass()
> 
> ... TreeH0.C and TreeH0.h are created.
> 
> When compiling TreeH0.C the following error occured:
> TreeH0.h:302: `b_TTRAC' undeclared (first use this function)
> 
> In line 83 (see attachment) there is a definition:
> TBranch *b_TTRAC_;
> 
> When I delete the last underline the thing compiles. So could it be that
> there is an error in naming the branches of the tree?
> 
> Unfortunately I still did not manage to run the thing, because the main()
> that I added in TreeH0.C produces a segmentation fault when declaring
> 
> TreeH0 hit;
> 
> (see attachment)
> 
> Can you please help me??
> 
> Best greetings,
>                         Martin
> 
> 
>   --------------------------------------------------------------------------------
> 
>                   Name: TreeH0.h
>    TreeH0.h       Type: Plain Text (TEXT/plain)
>               Encoding: BASE64
> 
>                   Name: TreeH0.C
>    TreeH0.C       Type: Plain Text (TEXT/PLAIN)
>               Encoding: BASE64



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:38 MET