<div dir="ltr"><div><div><div>So the general setup of a Gate simulation (which is unfortunately not that clear on the website or wiki) is that you define geometry, source(s) and then actors (which is simply what scorers are called in Gate), which save output. I was not even aware that you could do what you do.<br><br></div>Of course, it is often that you want to score specific particles. You can use existing actors and apply filters to store only the particles you need. The filter might restrict the particles to a certain species (e.g. only photons) or on production processes. I do not know if there's a filter that restricts the particles to only those that underwent Compton scattering (check the wiki to see what's available, or look in the example directories, maybe someone does the same). If you find nothing that helps you, you can write your own filter, or modify/copy an existing actor. <br><br></div>Hope that helps,<br></div>Brent<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-06-02 15:42 GMT+02:00 Pawe  Kowalski <span dir="ltr"><<a href="mailto:pawkowalski@yahoo.com" target="_blank">pawkowalski@yahoo.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"><div><span>Hi Brent,</span></div> <div><br></div><div>Thank you again for your answers.</div><div><br></div><div>I generate my output just using commands:</div><div><div>/gate/output/root/enable</div><div>/gate/output/root/setFileName             output/output</div><div dir="ltr">/gate/output/root/setRootHitFlag          1</div></div><div>After simulation I analyze root files using c++ code.</div><div><br></div><div><div>If I don't specify any actor, is there a default one? Above default root output is also generated using actor?</div><div><br></div><div dir="ltr">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 dir="ltr"><br></div><div dir="ltr">Best regards,</div><div dir="ltr">Paweł</div><div><div class="h5"><div><br></div><div style="display:block"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"> <div dir="ltr"><font face="Arial" size="2"> 11:14 wtorek, 2016-5-31, Brent Huisman <<a href="mailto:brent.huisman@insa-lyon.fr" target="_blank">brent.huisman@insa-lyon.fr</a>> napisał(a):<br></font></div>  <br><br> <div><div><div><div dir="ltr"><div><div>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><br clear="none"><br clear="none"></div></div><div><br clear="none"><div>2016-05-30 21:30 GMT+02:00 Pawe  Kowalski <span dir="ltr"><<a rel="nofollow" shape="rect" href="mailto:pawkowalski@yahoo.com" target="_blank">pawkowalski@yahoo.com</a>></span>:<br clear="none"><div><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"><div><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"><div><span>Hi Brent, </span></div><div><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"><br clear="none"></div><div dir="ltr">In the wiki, I have found this website: <a rel="nofollow" shape="rect" href="http://wiki.opengatecollaboration.org/index.php/Users_Guide_V7.2:Phase_space_concept" target="_blank">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">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">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> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"><div><div> <div dir="ltr"><font face="Arial" size="2"> 15:29 niedziela, 2016-5-29, Brent Huisman <<a rel="nofollow" shape="rect" href="mailto:brent.huisman@insa-lyon.fr" target="_blank">brent.huisman@insa-lyon.fr</a>> napisał(a):<br clear="none"></font></div>  <br clear="none"><br clear="none"> </div></div><div><div><div><div><br clear="none"><br clear="none"></div><div><div><div dir="ltr"><div><div><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><div><br clear="none"><br clear="none"><div><div><div>
----------------------------------------------------------------------<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" href="mailto:pawkowalski@yahoo.com" target="_blank">pawkowalski@yahoo.com</a>><br clear="none">
To: GATE-mailingList <<a rel="nofollow" shape="rect" href="mailto:gate-users@lists.opengatecollaboration.org" target="_blank">gate-users@lists.opengatecollaboration.org</a>>,<br clear="none">
        "<a rel="nofollow" shape="rect" href="mailto:gate-devel@lists.opengatecollaboration.org" target="_blank">gate-devel@lists.opengatecollaboration.org</a>"<br clear="none">
        <<a rel="nofollow" shape="rect" href="mailto:gate-devel@lists.opengatecollaboration.org" target="_blank">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" href="mailto:828474961.263737.1464350691463.JavaMail.yahoo@mail.yahoo.com" target="_blank">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" href="http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20160527/f41a59df/attachment-0001.html" target="_blank">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" href="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank">Gate-users@lists.opengatecollaboration.org</a><br clear="none"><a rel="nofollow" shape="rect" href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">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></div></div></div></blockquote></div><br></div>