<div dir="ltr">Hello, <div><br></div><div>as a first workaround, Luc's suggestion is done here : </div><div><a href="https://github.com/OpenGATE/Gate/commit/90327e12eb4559dd838d02d2c1d97e5751251fda">https://github.com/OpenGATE/Gate/commit/90327e12eb4559dd838d02d2c1d97e5751251fda</a><br><div><br></div><div>Please test and report. </div><div><br></div><div>Sincerely, </div><div>David</div><div><br></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 2, 2017 at 6:01 PM, Grevillot Loic <span dir="ltr"><<a href="mailto:loic.grevillot@medaustron.at" target="_blank">loic.grevillot@medaustron.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple">
<div class="m_-956619090171563397WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hello,<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">Currently the DoseToWater part is incomplete and should contain other particles, e.g. carbon ions, helium, etc.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">The else part only means at the moment that if the system encounter another type of particle, it will calculate the dose to water assuming this particle is
equivalent to a proton with an energy of 100 MeV.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">If we would remove the if (which could also be an option), then the dose to water would be equal to the dose, as it would not be rescaled by the stopping power
ratio.<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">So currently the DoseToWater works for electrons, photons and proton beams as far as I know.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I have in my to do list to upgrade it for particles up to carbon ions, but did not have time yet, that being said it should not be very difficult, just require
a bit of time and also to find out the correct naming convention used in Geant4 for the different particles that can be generated.<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">Hope this help!<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 lang="DE" style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#1f497d">Best,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="DE" style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#1f497d">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"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Manuel Bardiès [mailto:<a href="mailto:manuel.bardies@inserm.fr" target="_blank">manuel.bardies@inserm.<wbr>fr</a>]
<br>
<b>Sent:</b> Thursday, February 02, 2017 5:27 PM<br>
<b>To:</b> Luc SIMON<br>
<b>Cc:</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-users] Gate dose to water problem<u></u><u></u></span></p>
</div>
</div><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">And thanks to Andreas as well (Luc missed his mail ;-)<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">Le 2 févr. 2017 à 17:23, Luc SIMON <<a href="mailto:uhqd75@gmail.com" target="_blank">uhqd75@gmail.com</a>> a écrit :<u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<p class="MsoNormal">Dear all and in particular:<br>
<b><a href="mailto:david.sarrut@creatis.insa-lyon.fr" target="_blank">david.sarrut@creatis.insa-<wbr>lyon.fr</a><br>
<a href="mailto:gergely.patay@gmail.com" target="_blank">gergely.patay@gmail.com</a><br>
<a href="mailto:alexvergaragil@gmail.com" target="_blank">alexvergaragil@gmail.com</a><br>
<a href="mailto:thomas@deschler.fr" target="_blank">thomas@deschler.fr</a></b><u></u><u></u></p>
</div>
<p class="MsoNormal"><b>and all the authors of <a href="http://doseactor.cc" target="_blank">DoseActor.cc</a> ...</b><u></u><u></u></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><b>Following the mail of Tony Younes we investigated this bug.</b><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><b>We found that the NaN values seem to come from
<a href="http://dosetoactor.cc" target="_blank">DoseToActor.cc</a> 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(<wbr>Energy, PartName, material, cut);<br>
DEDX_Water = emcalc->ComputeTotalDEDX(<wbr>Energy, PartName, "G4_WATER", cut);<br>
doseToWater=edep/density/<wbr>Volume/gray*(DEDX_Water/1.)/(<wbr>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/<wbr>Volume/gray*(DEDX_Water/1.)/(<wbr>DEDX/(density*e_SI));<br>
}<br>
<br>
<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><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...)</b><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">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>
<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Moreover, photons should not contribute to "dose". So why do we need this "else" part ????<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Thank you for your help.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Luc & Tony<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
<br>
<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">2017-01-31 16:22 GMT+01:00 Grevillot Loic <<a href="mailto:loic.grevillot@medaustron.at" target="_blank">loic.grevillot@medaustron.at</a>><wbr>:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Could you send macros and output files?</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="DE" style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#1f497d">Best,</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="DE" style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#1f497d">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"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> 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</span><u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Hi,<u></u><u></u></p>
<p class="MsoNormal">I am simulating high energy photon beams (6 and 10 MeV) for external radiotherapy applications.
<u></u><u></u></p>
<p class="MsoNormal">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 class="MsoNormal">Regards,
<u></u><u></u></p>
<p class="MsoNormal">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 lang="FR" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">(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 lang="DE" style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#1f497d">Best,</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="DE" style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#1f497d">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"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> 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 class="MsoNormal">Dear All,<u></u><u></u></p>
<p class="MsoNormal">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 class="MsoNormal">Kind Regards,<u></u><u></u></p>
<p class="MsoNormal">Tony Younes<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"><b><span lang="EN-GB" style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#112359">Disclaimer:</span></b><span style="font-size:10.0pt"><br>
</span><span lang="EN-GB" style="font-size:10.0pt;font-family:"Verdana","sans-serif"">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>
<p class="MsoNormal"><b><span lang="EN-GB" style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#112359">Disclaimer:</span></b><span style="font-size:10.0pt"><br>
</span><span lang="EN-GB" style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#112359">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>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal"><br>
______________________________<wbr>_________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank">Gate-users@lists.<wbr>opengatecollaboration.org</a><br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">http://lists.<wbr>opengatecollaboration.org/<wbr>mailman/listinfo/gate-users</a><u></u><u></u></p>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<br>
-- <u></u><u></u></p>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal">___________________<br>
<br>
SIMON Luc, Physicien Médical, PhD<br>
Département d'Ingénierie et de Physique Médicale - IUCT-Oncopole - Toulouse, FRANCE<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">INSERM UMR 1037 (CRCT) - Equipe 15 - Toulouse, FRANCE<u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal">______________________________<wbr>_________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank">Gate-users@lists.<wbr>opengatecollaboration.org</a><br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">http://lists.<wbr>opengatecollaboration.org/<wbr>mailman/listinfo/gate-users</a><u></u><u></u></p>
</div>
</blockquote>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div></div></div><div><div class="h5">
<div class="m_-956619090171563397WordSection1">
<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></div></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"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">David Sarrut, Phd<br>Directeur de recherche CNRS<br>CREATIS, UMR CNRS 5220, Inserm U1206<div>Centre de lutte contre le cancer Léon Bérard<br>28 rue Laënnec, 69373 Lyon cedex 08<br>Tel : 04 78 78 51 51 / 06 74 72 05 42<br><a href="http://www.creatis.insa-lyon.fr/~dsarrut" target="_blank">http://www.creatis.insa-lyon.fr/~dsarrut</a><br>_________________________________</div><div> "2 + 2 = 5, for extremely large values of 2"<br>_________________________________</div></div></div></div></div></div></div>
</div>