Reading a .root file converted from .lhe

As I am new to ROOT, I’m a bit confused with certain things.
For my analysis, I converted my .lhe file generated by MG5, to .root using ExRootLHEFConverter.
I wanted to know if there is any way to read the contents of the .root file to look at the contents of the files like we are able to look at the .lhe files using simply ‘gedit’ or ‘vim’ text-editor in Linux.

Is there a way? I will be very grateful if get a way out.



Try to run: rootbrowse YourFile.root

Hi Wile,
I tried with this command, but the following error:

saumyen@saumyen-DL-H61M-VS3:~/codes$ rootbrowse bg.root
Traceback (most recent call last):
  File "/usr/local/bin/rootbrowse", line 10, in <module>
    import cmdLineUtils
ImportError: No module named cmdLineUtils

I tried to see via TBrowser also. There I can see the LHEF Tree. Inside that I can see Particles directory kind of thing inside of which I see branches like ‘Particle.Px’, ‘Particle.Py’, ‘Particle.M’, ‘Particle.PT’ etc.
Now I wanted to know if the values of these variables are saved alongwith the particle information or not, like in the .lhe file we can see informations about Px, Py, Pz, P, E, M for every particle distinctly.

I hope I could explain it correctly (I’m not sure).

Basically, I am trying to generate distributions of certain variable of all the visible final state particles, especially with TMVA. Now I can’t how do I distinguish between several particles.