I am a new user.
I could read a *.root file, which is output of simulation, by “TBrowser” command. I could see the result of the simulation, such as energy spectrum, in graphical figures. How could i convert the graphically result into the numerical table. Indeed, I want to transform the results into a Excel file.
Thank you in advance for your attention,
in general, copying a ROOT tree in an excel file would imply a rather big loss of flexibility and functionality.
Said that, you can do that in several ways. The fundamental step is the loop over the events of the tree.
You can look at the TTreeReader class or at how one can perform a loop over a tree with PyROOT, page 78 onwards of this tutorial: indico.cern.ch/event/395198/mat … ides/2.pdf
Many thanks for the reply.