You can use TBranch::GetAddress. If it returns 0 the SetBranchAddress
was not successful.
Rene Brun
Alexander Mann wrote:
> Hi,
>
> is there a way to determine whether TTree::SetBranchAddress has been
> successful? If I try to call it with the wrong variable type it will
> print an error message, which is useless as long as I cannot catch this
> error in my code. So is there a way to find out if the command has
> been successful?
>
> Best regards,
> Alexander Mann
>
Received on Thu Sep 10 2009 - 10:37:57 CEST
This archive was generated by hypermail 2.2.0 : Fri Sep 11 2009 - 17:50:02 CEST