Check if a tbranch exists

Hi ROOTers,

Given a TTree I want to check If a TBranch of a given name exists, return True if it does false otherwise.
I am not sure how to get this, is there a function for this?

Thank you

I guess GetBranch willl return a null pointer if the branch does not exist.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.