Hi Philippe,
> In your simple case, the following might work:
> MyTree2->SetBranchAddress("Obj.data2",&obj->data2);
> And of course, read MyTree first then MyTree2.
Unfortunately your solution did not work.
I found a way to make this work, -- in short I am doing this:
Double_t Array[500];
Tree1->SetBranchAddress( "Obj", &Obj );
Tree2->SetBranchAddress( "m_Array2", &Array );
As far as I see it your solution also requires that the data members are public not private as I would prefer it in oo programming.
Thanks again for your help!
regards
Thomas
-- Thomas Lauf MPE - Halbleiterlabor E-Mail: thl_at_hll.mpg.deReceived on Fri Apr 27 2007 - 11:57:42 CEST
This archive was generated by hypermail 2.2.0 : Fri Apr 27 2007 - 17:50:01 CEST