<div dir="ltr"><div>Dear all and in particular:<br><b><a href="mailto:david.sarrut@creatis.insa-lyon.fr">david.sarrut@creatis.insa-lyon.fr</a><br><a href="mailto:gergely.patay@gmail.com">gergely.patay@gmail.com</a><br><a href="mailto:alexvergaragil@gmail.com">alexvergaragil@gmail.com</a><br><a href="mailto:thomas@deschler.fr">thomas@deschler.fr</a><br></b></div><b>and all the authors of DoseActor.cc ...<br></b><div><br><b><br></b></div><div><b>Following the mail of Tony Younes we investigated this bug.<br></b></div><div><b>We found that the NaN values seem to come from DoseToActor.cc at this level (l 360)<br></b><br><br><br><br> // Other particles should be taken into account (Helium etc), but bug ? FIXME<br> if (PartName== "proton" || PartName== "e-" || PartName== "e+" || PartName== "deuteron") {<br> <br> DEDX = emcalc->ComputeTotalDEDX(Energy, PartName, material, cut);<br> DEDX_Water = emcalc->ComputeTotalDEDX(Energy, PartName, "G4_WATER", cut);<br> doseToWater=edep/density/Volume/gray*(DEDX_Water/1.)/(DEDX/(density*e_SI));<br> }<br> else {<br> DEDX = emcalc->ComputeTotalDEDX(100, "proton", material, cut);<br> DEDX_Water = emcalc->ComputeTotalDEDX(100, "proton", "G4_WATER", cut);<br> doseToWater=edep/density/Volume/gray*(DEDX_Water/1.)/(DEDX/(density*e_SI));<br> }<br><br><br></div><div><b>In this "if" section sometimes DEDX <u>and </u>DEDX_Water are 0.0 and the division 0 / 0 is NaN (please note that 3 / 0 is infinite, which is not a NaN value...)<br></b><br></div><div>This problem is fixed. But now another question : why in the "else" part DEDX_water is computed for proton ????? (while proton should be considered in the first part... )<br><br><br></div><div>Moreover, photons should not contribute to "dose". So why do we need this "else" part ????<br><br></div><div>Thank you for your help.<br><br></div><div>Luc & Tony<br></div><div><br><br></div><div><br></div><div><br><br><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-01-31 16:22 GMT+01:00 Grevillot Loic <span dir="ltr"><<a href="mailto:loic.grevillot@medaustron.at" target="_blank">loic.grevillot@medaustron.at</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="white" link="blue" vlink="purple" lang="EN-US">
<div class="m_-6703093031588237583WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Could you send macros and output files?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#1f497d" lang="DE">Best,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#1f497d" lang="DE">Loïc</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext"> tony youness [mailto:<a href="mailto:tony_youness@live.com" target="_blank">tony_youness@live.com</a>]
<br>
<b>Sent:</b> Tuesday, January 31, 2017 3:14 PM<br>
<b>To:</b> Grevillot Loic; <a href="mailto:gate-users@lists.opengatecollaboration.org" target="_blank">gate-users@lists.<wbr>opengatecollaboration.org</a><br>
<b>Subject:</b> Re: Gate dose to water problem<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<p>Hi,<u></u><u></u></p>
<p>I am simulating high energy photon beams (6 and 10 MeV) for external radiotherapy applications.
<u></u><u></u></p>
<p>I tried both ("Water" and "G4_WATER") and I am still getting NAN values (only when the absorbed dose is reported as absorbed dose to water). The voxel values between both absorbed dose report (Dose to medium and Dose to water) are also different even though
that the medium is WATER.<u></u><u></u></p>
<p>Regards, <u></u><u></u></p>
<p>Tony<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On 31/01/17 8:37 am, Grevillot Loic wrote:<u></u><u></u></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hello,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Which beam are you simulating?
</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="FR">(photons, electrons, light ions, etc.)</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Which water did you define in your simulation? “Water” is different from “GEANT4_WATER” -> could you try using GEANT4_WATER?</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#1f497d" lang="DE">Best,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#1f497d" lang="DE">Loïc</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext"> Gate-users [<a href="mailto:gate-users-bounces@lists.opengatecollaboration.org" target="_blank">mailto:gate-users-bounces@<wbr>lists.opengatecollaboration.<wbr>org</a>]
<b>On Behalf Of </b>tony youness<br>
<b>Sent:</b> Monday, January 30, 2017 1:04 PM<br>
<b>To:</b> <a href="mailto:gate-users@lists.opengatecollaboration.org" target="_blank">gate-users@lists.<wbr>opengatecollaboration.org</a><br>
<b>Subject:</b> [Gate-users] Gate dose to water problem</span><u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
<p>Dear All,<u></u><u></u></p>
<p>I am facing a problem with gate dose actor. When enabling dose to water i get Nan values in some of the voxels in the water region of my phantom. I also get different values in the water voxels between both dose reports (dose to medium and dose to water).
It seems like there's a bug when gate tries to converts dose to medium into the dose to water
<u>when in the water region</u>. Has anyone already faced this problem? Any help would be much appreciated.<u></u><u></u></p>
<p>Kind Regards,<u></u><u></u></p>
<p>Tony Younes<u></u><u></u></p>
<p> <u></u><u></u></p>
<p> <u></u><u></u></p>
<p> <u></u><u></u></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#112359" lang="EN-GB">Disclaimer:</span></b><span style="font-size:10.0pt"><br>
</span><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"" lang="EN-GB">Please notice our E-Mail Disclaimer <a href="http://www.medaustron.at/email-disclaimer/" target="_blank"><span style="color:#112359">http://www.<wbr>medaustron.at/email-<wbr>disclaimer/</span></a></span> <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</blockquote>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div class="m_-6703093031588237583WordSection1">
<p class="MsoNormal"><small><span><u></u><u></u></span><b><span style="font-family:"Verdana","sans-serif";color:rgb(17,35,89)" lang="EN-GB">Disclaimer:</span></b><br>
<span style="font-family:"Verdana","sans-serif";color:rgb(17,35,89)" lang="EN-GB">Please notice our E-Mail Disclaimer <a href="http://www.medaustron.at/email-disclaimer/" target="_blank"><span style="color:rgb(17,35,89)">http://www.<wbr>medaustron.at/email-<wbr>disclaimer/</span></a></span></small><span><u></u><u></u></span><u></u> <u></u></p>
</div>
<br>
</div>
<br>______________________________<wbr>_________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.<wbr>opengatecollaboration.org</a><br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" rel="noreferrer" target="_blank">http://lists.<wbr>opengatecollaboration.org/<wbr>mailman/listinfo/gate-users</a><br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>___________________<br><br>SIMON Luc, Physicien Médical, PhD<br>Département d'Ingénierie et de Physique Médicale - IUCT-Oncopole - Toulouse, FRANCE</div><div>INSERM UMR 1037 (CRCT) - Equipe 15 - Toulouse, FRANCE</div></div></div></div></div>
</div>