> If you have a top level branch corresponding to Event* event, > you need to set the top level branch address only. The address of all the sub > branches will be automatically set, eg: > > Event *event = 0; //important to set teh pointer to 0; > myTree->SetBranchAddress("event",&event); > > myTree->GetEntry(0); This will fill your Event object. You can now use > normal C++ to navigate in your Event object. > This procedure is the same if you use split mode or not. > Yes, I know this works. But I have reasons to go directly to the sub-branch *without* setting the top-level address (due to existing code structure). But I guess this is not expected to work (which was my question), so I'll work things around it. Thanks, Kate.
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:51 MET