<div dir="ltr">Dear Akiv (and others),<div><br></div><div>Here is my few lines of code that I am using for just collecting counts of particle interactions with a simple crystal volume. In my simulation I am also using a source that emits a high amount of betas, but I am only concerned with counting the gamma interactions, and this is the reason for the filter; so that I count ONLY the gamma particles.</div><div><br></div><div>/gate/actor/addActor KillActor counts</div><div>/gate/actor/counts/save output/Detector_Counts.txt</div><div>/gate/actor/counts/attachTo crystal</div><div>/gate/actor/counts/addFilter particleFilter</div><div>/gate/actor/counts/particleFilter/addParticle gamma</div><div><br></div><div>I hope that this helps. I know I wish I would have known about this several months ago, but such is the process. Best of luck to you.</div><div><br></div><div>Cheers,</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><b style="font-size:12.8000001907349px">R. Kevin Wilson</b><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">San Diego State University | <i>2017</i></div><div style="font-size:12.8000001907349px">Department of Physics | <i>M.S <span style="font-size:12.8000001907349px">Medical Physics</span></i></div><div style="font-size:12.8000001907349px">Radiation Detection Measuring & Modeling Laboratory</div><div style="font-size:12.8000001907349px"><i>PET/SPECT Modeling - Gate & GEANT4</i></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><img src="https://docs.google.com/uc?export=download&id=0B6r246QLjtCqeXF0R2VyVjFEUWM&revid=0B6r246QLjtCqWVBkRm1qTjE5L09CMDNYRmRaTnhVSG8rcVVFPQ" width="85" height="96"><br></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Clemson University | <i>2015</i></div><div style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">College of Engineering & Science</span><br></div><div style="font-size:12.8000001907349px">Department of Physics & Astronomy | <i>B.S. Applied Physics</i> </div><div style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">CU EBIT & Atomic Physics Laboratory </span><b style="font-size:12.8000001907349px">|</b><span style="font-size:12.8000001907349px"> </span><i style="font-size:12.8000001907349px">Intern Recipient and Student Researcher</i><br></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><i></i><i><img src="http://math.msstate.edu/events/reu/reu2011/images/clemson_logo.gif" width="200" height="52"><br></i></div><div style="font-size:12.8000001907349px"><a href="mailto:rkwilson@mail.sdsu.edu" target="_blank">rkwilson@mail.sdsu.edu</a></div><div style="font-size:12.8000001907349px"><div><a href="mailto:rkwilso@g.clemson.edu" target="_blank">rkwilso@g.clemson.edu</a><br></div><div>(828) 216-5310</div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Thu, Jun 8, 2017 at 9:45 AM, Robert Wilson <span dir="ltr"><<a href="mailto:rkwilson@mail.sdsu.edu" target="_blank">rkwilson@mail.sdsu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear Akiv,<br><br>I know exactly what you're going through, and I'm glad to know that I'm actually able to help someone else on here. So the simplest solution that you're looking for is the Kill Track actor. It's the actor described in the manual just before the Dose actor. It does exactly what you're wanting. The output is a .txt file that just spits out the number of particles that were stopped by the volume that the actor is attached to. <br>It should be noted that this actor is not energy or particle dependent, so if you have a lot of different particles flying around your simulation, you're going to want to add a particle filter to the actor.<br>I'm currently not at my work computer that has GATE and all of my code, but if you like I can send you a few lines as an example for how I'm doing the exact same thing when I do get to it. I hope this helps, and if you need any other help, please don't hesitate to ask.<div><br></div><div>Best regards,</div></div><div class="gmail_extra"><br clear="all"><div><div class="m_-2079037086055485349gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><b style="font-size:12.8000001907349px">R. Kevin Wilson</b><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">San Diego State University | <i>2017</i></div><div style="font-size:12.8000001907349px">Department of Physics | <i>M.S <span style="font-size:12.8000001907349px">Medical Physics</span></i></div><div style="font-size:12.8000001907349px">Radiation Detection Measuring & Modeling Laboratory</div><div style="font-size:12.8000001907349px"><i>PET/SPECT Modeling - Gate & GEANT4</i></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><img src="https://docs.google.com/uc?export=download&id=0B6r246QLjtCqeXF0R2VyVjFEUWM&revid=0B6r246QLjtCqWVBkRm1qTjE5L09CMDNYRmRaTnhVSG8rcVVFPQ" width="85" height="96"><br></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Clemson University | <i>2015</i></div><div style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">College of Engineering & Science</span><br></div><div style="font-size:12.8000001907349px">Department of Physics & Astronomy | <i>B.S. Applied Physics</i> </div><div style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">CU EBIT & Atomic Physics Laboratory </span><b style="font-size:12.8000001907349px">|</b><span style="font-size:12.8000001907349px"> </span><i style="font-size:12.8000001907349px">Intern Recipient and Student Researcher</i><br></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><i></i><i><img src="http://math.msstate.edu/events/reu/reu2011/images/clemson_logo.gif" width="200" height="52"><br></i></div><div style="font-size:12.8000001907349px"><a href="mailto:rkwilson@mail.sdsu.edu" target="_blank">rkwilson@mail.sdsu.edu</a></div><div style="font-size:12.8000001907349px"><div><a href="mailto:rkwilso@g.clemson.edu" target="_blank">rkwilso@g.clemson.edu</a><br></div><div><a href="tel:(828)%20216-5310" value="+18282165310" target="_blank">(828) 216-5310</a></div></div></div></div></div></div></div></div></div></div></div><div><div class="h5">
<br><div class="gmail_quote">On Thu, Jun 8, 2017 at 1:33 AM, Andreas Resch <span dir="ltr"><<a href="mailto:andreas.resch@meduniwien.ac.at" target="_blank">andreas.resch@meduniwien.ac.<wbr>at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="m_-2079037086055485349HOEnZb"><div class="m_-2079037086055485349h5">Am 2017-06-07 18:46, schrieb Akiv Jhirad:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-2079037086055485349h5">
Hello,<br>
<br>
I have currently been using the DoseActor attached to a small geometry<br>
(representing my detector) with a resolution of 1x1x1 along with the<br>
NumberOfHits parameter, to find the total number of particles<br>
interacting with my detector. Is there a better alternative to achieve<br>
the same task?<br>
<br>
I wanted to try the FluenceActor but don't want my output being of<br>
.mhd format. Will I simply get the number of particles detected in my<br>
detector if I just change the output format to .txt instead of .mhd?<br>
<br>
--<br>
Best Regards,<br>
Akiv Jhirad<br></div></div><span>
______________________________<wbr>_________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank">Gate-users@lists.opengatecolla<wbr>boration.org</a><br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" rel="noreferrer" target="_blank">http://lists.opengatecollabora<wbr>tion.org/mailman/listinfo/gate<wbr>-users</a><br>
</span></blockquote>
<br>
Hi,<br>
<br>
I didn't know that there is the number of Hits option in the dose actor. However, I checked in the source code and this is the line of interest (version 7.2):<br>
if (mIsNumberOfHitsImageEnabled) mNumberOfHitsImage.AddValue(in<wbr>dex, weight);<br>
<br>
so, this is definitely not the fluence, but rather gives you the number of energy depositions in a voxel. You could try to half or double your step limiter, then you should see an increase or decrease of number of hits.<br>
<br>
The second option, the fluence actor implementation is more complex. It seems, that number of particles is scored if a geometry boundary is crossed. So, this actor using the option "/enableNumberOfHits true" would probably give you the total number of particles entering your detector.<br>
<br>
Note that this number of hits is not the fluence, as fluence is according to ICRU report 85 defined as:<br>
"The fluence, Phi, is the quotient of dN by da, where dN is the number of particles incident on a sphere of cross-sectional area da"<br>
<br>
Yes, if you want txt output instead of mhd, just change the extension in the actor.<br>
<br>
<br>
Cheers,<br>
Andreas<div class="m_-2079037086055485349HOEnZb"><div class="m_-2079037086055485349h5"><br>
______________________________<wbr>_________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank">Gate-users@lists.opengatecolla<wbr>boration.org</a><br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" rel="noreferrer" target="_blank">http://lists.opengatecollabora<wbr>tion.org/mailman/listinfo/gate<wbr>-users</a></div></div></blockquote></div><br></div></div></div>
</blockquote></div><br></div>