Re: [ROOT] TTree::MakeClass producing none compilable code

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Oct 31 2002 - 12:25:15 MET


Hi Caius,

I cannot reproduce this problem.

Could you tell me which version of ROOT you are using?
Could you send the result of
  mytree.Print();
and the corresponding .h file generated by MakeClass ?

Rene Brun

On Thu, 31 Oct 2002, Caius Howcroft wrote:

> 
> Maybe I'm missing something here, but when I run MakeClass on a tree that
> contains an object with TClonesArray's root is producing code with typos
> (i assuem unless I'm missing something) in it, meaning you cant compile
> the resulting classes.
> 
> e.g
> I have a tress with Class MyEvt
> 
> class MyEvt: public TObject{
> ....
> private:
>  TClonesArray* stp; //poiter to MyStp
> 
> 
> };
> 
> class MyStp: public TObject{
> ...
>  Int_t adc;
> ...
> };
> 
> in the class created my MakeClass this branch is defined as:
> 
> TBranch* b_stp;
> 
> however  it is used in Notify() as
> b_stp_->SetBranchAddress
> 
> 
> Cheers
> Caius
> 
> 
> ____________________________
> CAIUS HOWCROFT
> +44 (0)1223 764 128      UK(office)
> AOL IM:                  sumsmug
> Yahoo IM:                sumsmug
> 



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