<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1464845011308_5928"><span>Hi Brent,</span></div> <div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1464845011308_6039"><br></div><div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1464845011308_6039">Thank you again for your answers.</div><div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1464845011308_6039"><br></div><div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1464845011308_6039">I generate my output just using commands:</div><div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1464845011308_6039"><div id="yui_3_16_0_ym19_1_1464845011308_6332">/gate/output/root/enable</div><div id="yui_3_16_0_ym19_1_1464845011308_6333">/gate/output/root/setFileName output/output</div><div dir="ltr" id="yui_3_16_0_ym19_1_1464845011308_6334">/gate/output/root/setRootHitFlag 1</div></div><div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1464845011308_6039">After simulation I analyze root files using c++ code.</div><div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1464845011308_6039"><br></div><div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1464845011308_6039"><div id="yui_3_16_0_ym19_1_1464845011308_6828">If I don't specify any actor, is there a default one? Above default root output is also generated using actor?</div><div id="yui_3_16_0_ym19_1_1464845011308_6829"><br id="yui_3_16_0_ym19_1_1464845011308_6830"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1464845011308_6831">I've tried PhaseSpaceActor. As far as I understand this actor saves information about all particles in a given volume. But is this possible to save, using this (or other) actor, only particles which interacted with matter with for example Compton scattering? I would like to save only some specific hits.</div></div><div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1464845011308_6039" dir="ltr"><br></div><div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1464845011308_6039" dir="ltr">Best regards,</div><div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1464845011308_6039" dir="ltr">Paweł</div><div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1464845011308_6039"><br></div><div class="yahoo_quoted" id="yui_3_16_0_ym19_1_1464845011308_6036" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_ym19_1_1464845011308_6035"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_ym19_1_1464845011308_6034"> <div dir="ltr" id="yui_3_16_0_ym19_1_1464845011308_6038"><font size="2" face="Arial" id="yui_3_16_0_ym19_1_1464845011308_6037"> 11:14 wtorek, 2016-5-31, Brent Huisman <brent.huisman@insa-lyon.fr> napisał(a):<br></font></div> <br><br> <div class="y_msg_container" id="yui_3_16_0_ym19_1_1464845011308_6033"><div id="yiv0116210480"><div id="yui_3_16_0_ym19_1_1464845011308_6032"><div dir="ltr" id="yui_3_16_0_ym19_1_1464845011308_6031"><div id="yui_3_16_0_ym19_1_1464845011308_6030"><div id="yui_3_16_0_ym19_1_1464845011308_6029">If you do not use actors, then how exactly is that Root file generated? You just add code to Gate somewhere?<br clear="none"><br clear="none"></div>The idea of the PhaseSpace is to take a snapshot of your simulation and then resume at some later time. This requires you to record all their relevant properties, which is why many (at least me) use it to get info on particles. See the code of the actor or the option-descriptions for what it stores, and if you need more, you can just adapt the output (look how for instance the energy is stored for an idea of where you might start for your quantity).<br clear="none"><br clear="none"></div>Brent<br clear="none"><div id="yui_3_16_0_ym19_1_1464845011308_6997"><br clear="none"><br clear="none"></div></div><div class="yiv0116210480gmail_extra" id="yui_3_16_0_ym19_1_1464845011308_7007"><br clear="none"><div class="yiv0116210480gmail_quote" id="yui_3_16_0_ym19_1_1464845011308_7006">2016-05-30 21:30 GMT+02:00 Pawe Kowalski <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:pawkowalski@yahoo.com" target="_blank" href="mailto:pawkowalski@yahoo.com">pawkowalski@yahoo.com</a>></span>:<br clear="none"><div class="yiv0116210480yqt0921524764" id="yiv0116210480yqt36381"><blockquote class="yiv0116210480gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;" id="yui_3_16_0_ym19_1_1464845011308_7005"><div id="yui_3_16_0_ym19_1_1464845011308_7004"><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;" id="yui_3_16_0_ym19_1_1464845011308_7003"><div id="yui_3_16_0_ym19_1_1464845011308_7002"><div id="yui_3_16_0_ym19_1_1464845011308_7001"><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;" id="yui_3_16_0_ym19_1_1464845011308_7000"><div><span>Hi Brent, </span></div><div id="yui_3_16_0_ym19_1_1464845011308_7026"><span><br clear="none"></span></div><div><span>Thank you very much for your answer.</span></div><div><span><br clear="none"></span></div><div dir="ltr"><span>In fact, I am not using any actors in my analysis. I save all hits to ROOT file and after that I make offline analysis using code developed in c++.</span></div><div dir="ltr"><span><br clear="none"></span></div><div dir="ltr"><span>As far as I understand, actors may be used to store some additional information but it is something 'parallel' to output enabled using command /gate/output/root/enable. So in fact when I use actor I have two outputs. Am I right?</span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1464845011308_6999"><br clear="none"></div><div dir="ltr">In the wiki, I have found this website: <a rel="nofollow" shape="rect" target="_blank" href="http://wiki.opengatecollaboration.org/index.php/Users_Guide_V7.2:Phase_space_concept">http://wiki.opengatecollaboration.org/index.php/Users_Guide_V7.2:Phase_space_concept</a></div><div dir="ltr">Does it contain full list of information that may be stored?</div><div dir="ltr" id="yui_3_16_0_ym19_1_1464845011308_7008">I would also like to save in my output file information about energy deposited and time of interaction. Is this possible using this actor?</div><div dir="ltr" id="yui_3_16_0_ym19_1_1464845011308_7009">How does the 'EnableCompact' option work? I haven't found any information about it in the documentation.</div><div><br clear="none"></div><div>Thank you once again.</div><div><br clear="none"></div><div>Best regards,</div><div>Paweł Kowalski</div><div><br clear="none"><br clear="none"></div></div></div></div><div id="yui_3_16_0_ym19_1_1464845011308_7018"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;" id="yui_3_16_0_ym19_1_1464845011308_7017"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;" id="yui_3_16_0_ym19_1_1464845011308_7016"><div><div class="yiv0116210480h5"> <div dir="ltr"><font face="Arial" size="2"> 15:29 niedziela, 2016-5-29, Brent Huisman <<a rel="nofollow" shape="rect" ymailto="mailto:brent.huisman@insa-lyon.fr" target="_blank" href="mailto:brent.huisman@insa-lyon.fr">brent.huisman@insa-lyon.fr</a>> napisał(a):<br clear="none"></font></div> <br clear="none"><br clear="none"> </div></div><div id="yui_3_16_0_ym19_1_1464845011308_7015"><div id="yui_3_16_0_ym19_1_1464845011308_7014"><div class="yiv0116210480h5" id="yui_3_16_0_ym19_1_1464845011308_7013"><div><br clear="none"><br clear="none"></div><div id="yui_3_16_0_ym19_1_1464845011308_7012"><div id="yui_3_16_0_ym19_1_1464845011308_7011"><div dir="ltr" id="yui_3_16_0_ym19_1_1464845011308_7010"><div id="yui_3_16_0_ym19_1_1464845011308_7025"><div id="yui_3_16_0_ym19_1_1464845011308_7024"><div>Hello Pawel,<br clear="none"><br clear="none"></div>Which actor are you using? Assuming it's the PhaseSpaceActor, there is an option called EnableCompact that reduces the number of saved fields. It reduces to the ones I care about, so it may not be what you need. I suppose per-field switches could be better. Storage space taken up is quite little though, so the easiest solution is to simply ignore the fields you don't use. Alternatively, you can adapt the actor to suit your needs. Perhaps using filters will help you with some of the things you need, but for coincidence selection you either record time and do some post-processing or dig down into the actor that you use to record.<br clear="none"><br clear="none"></div>Cheers,<br clear="none"></div>Brent<br clear="none"><div id="yui_3_16_0_ym19_1_1464845011308_7023"><div id="yui_3_16_0_ym19_1_1464845011308_7022"><br clear="none"><br clear="none"><div id="yui_3_16_0_ym19_1_1464845011308_7021"><div id="yui_3_16_0_ym19_1_1464845011308_7020"><div id="yui_3_16_0_ym19_1_1464845011308_7019">
----------------------------------------------------------------------<br clear="none">
<br clear="none">
Date: Fri, 27 May 2016 12:04:51 +0000 (UTC)<br clear="none">
From: Pawe Kowalski <<a rel="nofollow" shape="rect" ymailto="mailto:pawkowalski@yahoo.com" target="_blank" href="mailto:pawkowalski@yahoo.com">pawkowalski@yahoo.com</a>><br clear="none">
To: GATE-mailingList <<a rel="nofollow" shape="rect" ymailto="mailto:gate-users@lists.opengatecollaboration.org" target="_blank" href="mailto:gate-users@lists.opengatecollaboration.org">gate-users@lists.opengatecollaboration.org</a>>,<br clear="none">
"<a rel="nofollow" shape="rect" ymailto="mailto:gate-devel@lists.opengatecollaboration.org" target="_blank" href="mailto:gate-devel@lists.opengatecollaboration.org">gate-devel@lists.opengatecollaboration.org</a>"<br clear="none">
<<a rel="nofollow" shape="rect" ymailto="mailto:gate-devel@lists.opengatecollaboration.org" target="_blank" href="mailto:gate-devel@lists.opengatecollaboration.org">gate-devel@lists.opengatecollaboration.org</a>><br clear="none">
Subject: [Gate-users] Modification of GATE output<br clear="none">
Message-ID:<br clear="none">
<<a rel="nofollow" shape="rect" ymailto="mailto:828474961.263737.1464350691463.JavaMail.yahoo@mail.yahoo.com" target="_blank" href="mailto:828474961.263737.1464350691463.JavaMail.yahoo@mail.yahoo.com">828474961.263737.1464350691463.JavaMail.yahoo@mail.yahoo.com</a>><br clear="none">
Content-Type: text/plain; charset="utf-8"<br clear="none">
<br clear="none">
Hi,<br clear="none">
I have few questions about modifying Root output from GATE simulations.<br clear="none">
1. Is this possible to disable some branches in root file? For example I don't need branches called baseID or levelXID. What part of the code should I modify to disable them??<br clear="none">
2. On the other side, I would like to save to file information about components of four-momentum of gamma quanta in the moment of interaction with matter (for example Compton scattering). Is this possible??<br clear="none">
3. Is this possible to simulate and save optical photons only when there was a coincidence?<br clear="none">
Best regards,Pawe? Kowalski<br clear="none">
-------------- next part --------------<br clear="none">
An HTML attachment was scrubbed...<br clear="none">
URL: <<a rel="nofollow" shape="rect" target="_blank" href="http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20160527/f41a59df/attachment-0001.html">http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20160527/f41a59df/attachment-0001.html</a>><br clear="none">
<br clear="none">
------------------------------<br clear="none"><br clear="none"></div></div></div></div></div></div></div></div><br clear="none"></div></div>_______________________________________________<br clear="none">Gate-users mailing list<br clear="none"><a rel="nofollow" shape="rect" ymailto="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank" href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.opengatecollaboration.org</a><br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a><br clear="none"><br clear="none"></div> </div> </div> </div></div></div></blockquote></div></div><br clear="none"></div></div></div><br><br></div> </div> </div> </div></div></body></html>