<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div><style>/*<![CDATA[*/p.MsoNormal, li.MsoNormal, div.MsoNormal {
margin: 0.0in;
font-size: 11.0pt;
font-family: Calibri , sans-serif;
}
*.MsoChpDefault {
}
div.WordSection1 {
page: WordSection1;
}
/*]]>*/</style></div><div>Hi Christopher,<br></div><div><br data-mce-bogus="1"></div><div>have a look at section 14.6 of https://root.cern.ch/root/htmldoc/guides/users-guide/Trees.html<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>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 <div>(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.<br></div><div><br data-mce-bogus="1"></div><div>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.<code><br></code></div><div><br data-mce-bogus="1"></div><div>Many other things are possible, like combining expressions, 2-D or 3-D plots...<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Hope this help<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Luca<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><b>De: </b>"Christopher Watanabe" <ge69kec@mytum.de><br><b>À: </b>"gate-users" <gate-users@lists.opengatecollaboration.org><br><b>Envoyé: </b>Mardi 28 Janvier 2020 19:27:42<br><b>Objet: </b>[Gate-users] ROOT - Particle Energy by Particle Type<br></div><div><br></div><div data-marker="__QUOTED_TEXT__"><div><p class="MsoNormal">Fellow Gate Users, <br><br>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:<br><br><img id="Picture_x0020_3" src="cid:image003.png@01D5D611.011E51D0" width="452" height="294"><img id="Picture_x0020_4" src="cid:image005.jpg@01D5D611.011E51D0" width="654" height="311"></p><p class="MsoNormal">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) <br><img id="Picture_x0020_5" src="cid:image008.png@01D5D611.011E51D0" width="627" height="311"> </p><p class="MsoNormal">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…<br><br>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!! <br><br>Thanks in advance!</p><p class="MsoNormal"> </p></div><br>_______________________________________________<br>Gate-users mailing list<br>Gate-users@lists.opengatecollaboration.org<br>http://lists.opengatecollaboration.org/mailman/listinfo/gate-users<br></div></div></body></html>