i just want to get the detailed information in ICSD.root/ntuple_1/ionisations.
After i named the program above as ‘‘dump.cxx’’ and save it in the same folder of ICSD.root, i use it as : root [0] .> dump.txt root [1] .x dump.cxx root [2] .>
however only to find that:
Thank you for your reply.
After replacing the fancy UTF double quotes with regular ASCII double quotes, i got the result in dump.txt.
However, the result does not seem to be what I wanted. What i want to get is just the information shown in the histogram below (for example: among 100000 Entries, 94000 entries are with zero ionisations, 3000 entries are with 1 ionisations, 200 entries are with 2 ionisations and so on).
however the result shown in the dump.txt is the number of ionisations for each entry(first entry 0 ionisations, second entry 0 ionisations,…tenth entry 1 ionisations). And this will make the dump.txt file very large when entries get larger.
so i would like to know, how can I change something in the program to get the result I want(i.e. just the information of the histogram in the first picture).
You can right-click the histogram and select “SaveAs”. Enter e.g. “hist.C” and you’ll get a C++ version of the file, which contains the bin counts. Is that a good start?