Hi Alexander,
The example you sent:
printf("--> %s before %p\n", branchName, tree->GetBranch(branchName)); //
prints the location of the branch object itself and __not__ the location of the user object the branch will use to fill in or read from the TTree. The location of the branch object is, of course, not affected by the call to SetBranchAddres. You ought to use
printf("--> %s before %p\n", branchName, tree->GetBranch(branchName)->GetAddress()); //
Cheers,
Philippe.
Alexander Mann wrote:
> Hi Philippe,
>
> thanks for your efforts.
>
>> We will update SetBranchAddress to return a status code.
>
> That would be very useful indeed.
>
>> However, I can not reproduce your example where the address does not
>> change upon a successful call to SetBranchAddress. Could you send
>> a complete running example?
>
> The log output I included in one of my mails was produced by adding
> some debug lines to SCycleBaseNTuple.icc, which is part of the SFrame
> framework I'm using. The part of code affected is attached, for
> illustrational purposes.
>
> cu,
> Alexander
Received on Fri Sep 11 2009 - 17:18:26 CEST
This archive was generated by hypermail 2.2.0 : Fri Sep 11 2009 - 17:50:02 CEST