How to open/execute .root file


Hello,
I’m trying to open .root file, which is the output file of the classification and parameter optimization that I made in c language. I tried root -l filename which only returns the value of the TFile *. Can you please direct me how to resolve this?
Thank you

ROOT Version: 6.22.08
_Ubuntu Version: 20.04.4 LTS
_WSL

after running root -l filename

write in the terminal:
new TBrowser

and double click on the file on the opened dialog, to access its content.

Alternatively, you can directly run:
rootbrowse filename

1 Like

Thank you very much, everything is working completely fine now!

You are welcome. Please ‘mark’ the post above as ‘solution’.