fClassName in TBranchObject

Hi,

I’d like to access the member fClassName in TBranchObject which contains the name of the object in the branch, but it seems this is not possible.

The motivation is the following. My tree has several object branches : TEventDetectorA, TEventDetectorB, … I want to get the branch which contains say TEventDetectorA (I know there’s only one) regardless of the name which the user who wrote the file gave it to it. I need to loop over the branches and “ask” each of them which class object it contains. How can I do that ? Thanks!

Hi,

Call TBranchObject::GetClassName

Rene Brun