Reading the branch

I have root file with trees, which consist from branches. How can i read the branch, if i know the name of the tree and name of the branch? The data should be displayed as columns.

_ROOT Version: 6.26/10
_Platform: Pycharm community
Compiler: Not Provided

Hi @Fredrih ,

please check our manual, ROOT Manual - ROOT, in particular Trees - ROOT and Dataframes - ROOT , and the corresponding tutorials that those pages link to.
The RDataFrame users’ guide might also be useful: ROOT: ROOT::RDataFrame Class Reference .

You can also search the forum for similar questions, reading data is a well-discussed topic!


the primer is also a good resources to get started: ROOT Primer - ROOT

1 Like

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