[Gate-users] ROOT - Particle Energy by Particle Type
Luca Terray
luca.terray at clermont.in2p3.fr
Wed Jan 29 09:46:09 CET 2020
Hi Christopher,
have a look at section 14.6 of https://root.cern.ch/root/htmldoc/guides/users-guide/Trees.html
In the TBrowser(), click right on the tree you are interested in and open the TreeViewer by clicking on StartViewer. A window with the TreeViewer should appear. Then drag and drop the branch of the tree you want to draw
(energy for instance) into the expression X. Then click on the "purple/green/yellow" icon on the left bottom corner, and you will see the histogram of energy in the Browser window.
Now in order to see only th energy histogram for a type of particle, you have to make a cut. Double click on an empty an expression E(), and enter the following expression strstr(ParticleName,\"gamma\").Don't forget to give an alias name to your expression. Then drag and drop your expression into the cut icon (scissors). And click again on the icon to draw the histogram. You should have the expected result.
Many other things are possible, like combining expressions, 2-D or 3-D plots...
Hope this help
Luca
De: "Christopher Watanabe" <ge69kec at mytum.de>
À: "gate-users" <gate-users at lists.opengatecollaboration.org>
Envoyé: Mardi 28 Janvier 2020 19:27:42
Objet: [Gate-users] ROOT - Particle Energy by Particle Type
Fellow Gate Users,
I’m using an ion source to simulate the decay of I131, but would like to glean more information from the root file. By simply navigating the TBrowser as demonstrated in the Gate User’s manual, I can see things such as what particles were generated, as well as particle energies:
This is nice, because I can basically see that the 364 keV gamma peak of Xe*131 (bi-product from 131I decay) is very prominent, beta energies up to 606 keV, small gamma peak of 723 keV. Moreover, a look at a secondary production graph accessible through the TBrowser is also revealing that the proper decay processes are occurring. Note the presence of Xe-131, betas, and decay gamma particles. (That’s 10^3 on the y-axis)
So everything seems to be in order. About the same number of gamma decay particles are shown in the bottom graph as the above graphs…
BUT what I’d like to see is a harmony of these informations. How could I, for example, see a histogram of gamma particles and energy? Or beta particles and energy? I’ll continue to check the root help files for how to do this, but hopefully someone has experience with this!!
Thanks in advance!
_______________________________________________
Gate-users mailing list
Gate-users at lists.opengatecollaboration.org
http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20200129/549a788f/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 8F378ED51EDB47E2A0BC5D9BABD8C72E.png
Type: image/png
Size: 14967 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20200129/549a788f/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: E32E71B5E4F84E7E9635127D4B1EE3B4.jpg
Type: image/jpeg
Size: 19029 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20200129/549a788f/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 51CBFAE32FF04B23881C4B1592E471FA.png
Type: image/png
Size: 32374 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20200129/549a788f/attachment-0003.png>
More information about the Gate-users
mailing list