Can you please be more concise about the issue that you are having? Also, you have some tutorials that you can use for reference here. Maybe you find useful this particular one.
It seems to me that you are misusing the TBranch API. Please look at the aforementioned tutorial -it looks similar to what you are trying to accomplish-. Also, please read this documentation on TTree.
I am sorry. I applied the example code uploaded by @brun for this question. Can you please forward some example of reading sub-branches of tree in root file.