<div dir="ltr"><div><div><div>Hi Daniel,<br></div>The spectrum is normalized by Gate to obtain a probability distribution. For every new primary photon, Gate randomly chose a photon energy according to this PDF. So only the relative importance of the numbers matter, their unit does not.</div><div>You may want to chose a number of primaries in your simulation to simulate a given irradiation. For this, I suggest to integrate the SpekCalc spektrum for given distance, mA and ms settings, this should give you the total number of primaries. Another option is to chose the number of primaries to reach a given dose (see eq 2 in <a href="https://doi.org/10.1002/mp.12448" target="_blank">https://doi.org/10.1002/mp.<wbr>12448</a>).<br></div>Best regards,<br></div>Simon<br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 8, 2017 at 5:15 AM, Daniel J Sandoval <span dir="ltr"><<a href="mailto:DJSandoval@salud.unm.edu" target="_blank">DJSandoval@salud.unm.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="#0563C1" vlink="#954F72" lang="EN-US">
<div class="m_2737068647874691877m_8799127648595855296WordSection1">
<p class="MsoNormal">Hello Simon,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I am attempting a project where I simulate a spectrum using SpekCalc and then run it in GATE. I stumbled upon the below message, and am truly grateful for your script. However, I do not quite understand what it is doing to the fluence.
In your example, for the first line, you have an energy of 0.012 MeV, and a fluence of 2.591082e-126. However, when I create a sample spectrum of 120kev, my first line has an energy of 0.012MeV, but a fluence of 0.2479699. I have tried to look into the GATE
manual to see what it expects for units of fluence, but have been unsuccessful. <u></u>
<u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">If you could please help me understand what units the fluence are for GATE it would be greatly appreciated.<u></u><u></u></p>
<p class="MsoNormal"><br>
Thank you,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span style="color:#1f497d">Daniel<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<pre><span style="color:black">Hi,<u></u><u></u></span></pre>
<pre><span style="color:black"><u></u> <u></u></span></pre>
<pre><span style="color:black">I have written the enclosed script to convert a SpekCalc output to a <u></u><u></u></span></pre>
<pre><span style="color:black">Gate macro. It produces a file like<u></u><u></u></span></pre>
<pre><span style="color:black"><u></u> <u></u></span></pre>
<pre><span style="color:black"><a href="https://github.com/OpenGATE/GateContrib/blob/master/imaging/CT/fixedForcedDetectionCT/mac/120keV.mac" target="_blank">https://github.com/OpenGATE/Ga<wbr>teContrib/blob/master/imaging/<wbr>CT/fixedForcedDetectionCT/mac/<wbr>120keV.mac</a><u></u><u></u></span></pre>
<pre><span style="color:black"><u></u> <u></u></span></pre>
<pre><span style="color:black">The output macro file can be called like in<u></u><u></u></span></pre>
<pre><span style="color:black"><u></u> <u></u></span></pre>
<pre><span style="color:black"><a href="https://github.com/OpenGATE/GateContrib/blob/master/imaging/CT/fixedForcedDetectionCT/mac/fixedForcedDetectionCT.mac#L73" target="_blank">https://github.com/OpenGATE/Ga<wbr>teContrib/blob/master/imaging/<wbr>CT/fixedForcedDetectionCT/mac/<wbr>fixedForcedDetectionCT.mac#L73</a><u></u><u></u></span></pre>
<pre><span style="color:black"><u></u> <u></u></span></pre>
<pre><span style="color:black">Simon<u></u><u></u></span></pre>
<pre><span style="color:black"><u></u> <u></u></span></pre>
<pre><span style="color:black"><u></u> <u></u></span></pre>
<pre><span style="color:black">On 14/05/2017 13:10, Emmanuel Marfo wrote:<u></u><u></u></span></pre>
<pre><span style="color:black">><i><u></u> <u></u></i></span></pre>
<pre><span style="color:black">><i> Hi Sir,<u></u><u></u></i></span></pre>
<pre><span style="color:black">><i><u></u> <u></u></i></span></pre>
<pre><span style="color:black">><i> Please am a beginner trying to use Gate to do my simulations as part <u></u><u></u></i></span></pre>
<pre><span style="color:black">><i> of my thesis. So far I have been learning Gate v7.2 user guide. I want <u></u><u></u></i></span></pre>
<pre><span style="color:black">><i> to use x-ray energy spectrum from SpekCalc as GPS in my simulation but <u></u><u></u></i></span></pre>
<pre><span style="color:black">><i> don't know how to go about it and the explanation in the user guide is <u></u><u></u></i></span></pre>
<pre><span style="color:black">><i> hard to understand. Can anyone help or suggest any way I could do <u></u><u></u></i></span></pre>
<pre><span style="color:black">><i> this. Thanks<u></u><u></u></i></span></pre>
<pre><span style="color:black">><i><u></u> <u></u></i></span></pre>
<pre><span style="color:black">><i> Best regards,<u></u><u></u></i></span></pre>
<pre><span style="color:black">><i><u></u> <u></u></i></span></pre>
<pre><span style="color:black">><i> Emmanuel Marfo<u></u><u></u></i></span></pre>
<pre><span style="color:black">><i><u></u> <u></u></i></span></pre>
<pre><span style="color:black">><i> Student<u></u><u></u></i></span></pre>
<pre><span style="color:black">><i><u></u> <u></u></i></span></pre>
<pre><span style="color:black">><i> University of Otago<u></u><u></u></i></span></pre>
<pre><span style="color:black">><i><u></u> <u></u></i></span></pre>
<pre><span style="color:black">><i><u></u> <u></u></i></span></pre>
<pre><span style="color:black">><i><u></u> <u></u></i></span></pre>
<pre><span style="color:black">><i> ______________________________<wbr>_________________<u></u><u></u></i></span></pre>
<pre><span style="color:black">><i> Gate-users mailing list<u></u><u></u></i></span></pre>
<pre><span style="color:black">><i> <a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">Gate-users at lists.opengatecollaboration.or<wbr>g</a><u></u><u></u></i></span></pre>
<pre><span style="color:black">><i> <a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">http://lists.opengatecollabora<wbr>tion.org/mailman/listinfo/<wbr>gate-users</a><u></u><u></u></i></span></pre>
<pre><span style="color:black"><u></u> <u></u></span></pre>
<pre><span style="color:black">-------------- next part --------------<u></u><u></u></span></pre>
<pre><span style="color:black">An HTML attachment was scrubbed...<u></u><u></u></span></pre>
<pre><span style="color:black">URL: <<a href="http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20170515/7829b0f5/attachment-0001.html" target="_blank">http://lists.opengatecollabor<wbr>ation.org/mailman/private/<wbr>gate-users/attachments/<wbr>20170515/7829b0f5/attachment-<wbr>0001.html</a>><u></u><u></u></span></pre>
<pre><span style="color:black">-------------- next part --------------<u></u><u></u></span></pre>
<pre><span style="color:black">A non-text attachment was scrubbed...<u></u><u></u></span></pre>
<pre><span style="color:black">Name: spekcalc_to_gate.sh<u></u><u></u></span></pre>
<pre><span style="color:black">Type: application/x-sh<u></u><u></u></span></pre>
<pre><span style="color:black">Size: 533 bytes<u></u><u></u></span></pre>
<pre><span style="color:black">Desc: not available<u></u><u></u></span></pre>
<pre><span style="color:black">URL: <<a href="http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20170515/7829b0f5/attachment-0001.sh" target="_blank">http://lists.opengatecollabor<wbr>ation.org/mailman/private/<wbr>gate-users/attachments/<wbr>20170515/7829b0f5/attachment-<wbr>0001.sh</a>><u></u><u></u></span></pre>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<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/<wbr>gate-users</a><br></blockquote></div><br></div></div>