<div dir="ltr"><div><div><div>Hi,<br><br>Also, you may want to use a navigator which is
appropriate for imaging applications (meaning when you want to retrieve
scatter information), as described in the documentation.<br>The
<span style class="">ImageNestedParameterizedVolume</span> is used only for Radiotherapy
Applications as it is included in the section entitled : "Alternative
usage of <span style class="">voxelized</span> geometry (radiation therapy applications)"<br></div>Use the regular navigator for example, it is as fast as the image nested one.<br></div>And by the way <span style class="">Yannick</span>, good trick for attaching a nested volume as <span style class="">phantomSD</span> :-)<br>
<br></div>Regards,<br>Simon<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Mar 6, 2014 at 2:02 PM, Berker, Yannick <span dir="ltr"><<a href="mailto:Yannick.Berker@philips.com" target="_blank">Yannick.Berker@philips.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi Tom,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">which version of GATE are you using? I had my problems with early versions of GATE 6 (like 6.0 or 6.1), and I have managed to get seemingly correct values with
GATE 6.2.<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">First, I recall that for Rayleigh (not Compton) interactions, there was a bug in GATE 6.0 and 6.1 that was fixed in 6.2. In 6.0 and 6.1, an interaction from
a “PenelopeRayleighScattering” (6.0/6.1) or “RayleighScattering” (6.1) process would not be counted as a Rayleigh interaction in the ROOT output since the code checks for a process name with “LowEnRayleigh” in it – this is due to these lines here:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><a href="http://www.opengatecollaboration.org/lxr/source/6.0.0/source/digits_hits/src/GateAnalysis.cc#L278" target="_blank">http://www.opengatecollaboration.org/lxr/source/6.0.0/source/digits_hits/src/GateAnalysis.cc#L278</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><a href="http://www.opengatecollaboration.org/lxr/source/6.1.0/source/digits_hits/src/GateAnalysis.cc#L281" target="_blank">http://www.opengatecollaboration.org/lxr/source/6.1.0/source/digits_hits/src/GateAnalysis.cc#L281</a><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">Here, is it fixed:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><a href="http://www.opengatecollaboration.org/lxr/source/6.2.0/source/digits_hits/src/GateAnalysis.cc#L292" target="_blank">http://www.opengatecollaboration.org/lxr/source/6.2.0/source/digits_hits/src/GateAnalysis.cc#L292</a><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">Here are some physics processes which could have been affected by that bug:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><a href="http://www.opengatecollaboration.org/lxr/source/6.0.0/source/physics/src/GateRayleighPenelopePB.cc" target="_blank">http://www.opengatecollaboration.org/lxr/source/6.0.0/source/physics/src/GateRayleighPenelopePB.cc</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><a href="http://www.opengatecollaboration.org/lxr/source/6.1.0/source/physics/src/GateRayleighPenelopePB.cc" target="_blank">http://www.opengatecollaboration.org/lxr/source/6.1.0/source/physics/src/GateRayleighPenelopePB.cc</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><a href="http://www.opengatecollaboration.org/lxr/source/6.1.0/source/physics/src/GateRayleighPB.cc" target="_blank">http://www.opengatecollaboration.org/lxr/source/6.1.0/source/physics/src/GateRayleighPB.cc</a><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">If you are already using GATE 6.2, the problem (or at least one solution) might be that you can attach the PhantomSD to the subvolumes which are created from
your voxelized phantom. My current code contains this:<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">/gate/patientAT_AG_SI1_31/attachPhantomSD<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">[…, 4 more]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">/gate/patientAT_AG_SI5_36/attachPhantomSD<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">/gate/patientAir_0/attachPhantomSD<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">/gate/patientAir_1/attachPhantomSD<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">/gate/patientConnectiveTissue_40/attachPhantomSD<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">/gate/patientLung_10/attachPhantomSD<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">[…, 27 more]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">/gate/patientLung_9/attachPhantomSD<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">/gate/patientMarrow_Bone01_41/attachPhantomSD<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">[…, 13 more]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">/gate/patientMarrow_Bone08_55/attachPhantomSD<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">/gate/patientSoftTissus_37/attachPhantomSD<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">/gate/patientSoftTissus_38/attachPhantomSD<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">/gate/patientSoftTissus_39/attachPhantomSD<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">/gate/patientworldDefaultAir/attachPhantomSD<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">The complete list depends on your phantom – you should include all subvolumes, but you may only include existing ones. I think the list of volumes generated
is part of the GATE output, so you can grab this from your current simulation, prepend “/gate/patient” (or whatever your generating volume name is), append “/attachPhantomSD” and save this as the phantomSD.mac
<b>specific to that voxelized input and the volume-generation parameters</b>. Should any of these change without yout re-generating the mac file, in the best case you lose one of the volumes you had in your the mac file before and your script returns an error
message. In the worst case, you will get inaccurate results without noticing, for example, when only additional volumes are generated and you miss scatter interactions in those without getting any error message.<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">Best regards<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">Yannick<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 #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> Tom Buitenhuis [mailto:<a href="mailto:h.j.t.buitenhuis@rug.nl" target="_blank">h.j.t.buitenhuis@rug.nl</a>]
<br>
<b>Sent:</b> Thursday, March 06, 2014 12:27 PM<br>
<b>To:</b> Berker, Yannick; <a href="mailto:gate-users@lists.opengatecollaboration.org" target="_blank">gate-users@lists.opengatecollaboration.org</a><br>
<b>Subject:</b> No comptonPhantom or RayleighPhantom entries for voxelized phantom<u></u><u></u></span></p>
</div>
</div><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Dear GATE users,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I am having the same problem as Yannick Berker described on 2011-10-21. I use the ImageNestedParametrisedVolume phantom for a PET simulation. The sources are described using interfiles. Everything seems to be working correctly, i.e. the
sources and phantom are in the right place and coincidences are detected. The effect of phantom attenuation is also clearly visible.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">The problem that I’m having, is that in the ROOT coincidences tree there is no comptonPhantom and RayleighPhantom data. I cannot add the VoxelPhantomSD to the ImageNestedParametrisedVolume, because I get an error message saying the command
is unavailable. I can add the ordinary PhantomSD, but this does not seem to add the comptonPhantom or RayleighPhantom information to the coincidence tree. The comptonCrystal and RayleighCrystal entries are correct, so I think the physics processes are registered
and working correctly. <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I need the comptonPhantom and RayleighPhantom information to get scatter information on coincidences.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Did anyone else come across this problem, and if so, how did you solve it? Or can anyone point me in the direction of a solution?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Regards,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Tom Buitenhuis<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">PhD student<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">KVI - Center for Advanced Radiation Technology<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">University of Groningen<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">The Netherlands<u></u><u></u></p>
</div>
<p class="MsoNormal"><br>
<br>
<u></u><u></u></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<pre>Dear GATE users,<u></u><u></u></pre>
<pre><u></u> <u></u></pre>
<pre>I have some issues using the HounsfieldMaterialGenerator to simulate a PET scan of a patient. The<u></u><u></u></pre>
<pre>simulation itself is running fine, but I am lacking two features that I am used to from other simulations,<u></u><u></u></pre>
<pre>which are scatter information and color visualization. I mainly used the example from<u></u><u></u></pre>
<pre><a href="http://www.creatis.insa-lyon.fr/gate/Example2/" target="_blank"><b><span style="color:#002390;text-decoration:none">http://www.creatis.insa-lyon.fr/gate/Example2/</span></b></a> to generate the following phantom:<u></u><u></u></pre>
<pre><u></u> <u></u></pre>
<pre>/gate/HounsfieldMaterialGenerator/SetMaterialTable CT/Schneider2000MaterialsTable.txt<u></u><u></u></pre>
<pre>/gate/HounsfieldMaterialGenerator/SetDensityTable CT/Schneider2000DensitiesTable.txt<u></u><u></u></pre>
<pre>/gate/HounsfieldMaterialGenerator/SetDensityTolerance 0.03 g/cm3<u></u><u></u></pre>
<pre>/gate/HounsfieldMaterialGenerator/SetOutputMaterialDatabaseFilename CT/p971-HUmaterials.db<u></u><u></u></pre>
<pre>/gate/HounsfieldMaterialGenerator/SetOutputHUMaterialFilename CT/p971-HU2mat.txt<u></u><u></u></pre>
<pre>/gate/HounsfieldMaterialGenerator/Generate<u></u><u></u></pre>
<pre>/gate/world/daughters/name patient<u></u><u></u></pre>
<pre>/gate/world/daughters/insert ImageRegionalizedVolume<u></u><u></u></pre>
<pre>/gate/geometry/setMaterialDatabase CT/p971-HUmaterials.db<u></u><u></u></pre>
<pre>/gate/patient/geometry/SetHUToMaterialFile CT/p971-HU2mat.txt<u></u><u></u></pre>
<pre>/gate/patient/geometry/SetImage CT/p971s3.hdr<u></u><u></u></pre>
<pre>...<u></u><u></u></pre>
<pre><u></u> <u></u></pre>
<pre>The ROOT output shows me that the volume is placed correctly, and the distribution of detected<u></u><u></u></pre>
<pre>coincidences also shows the effect of photon attenuation by the phantom. However, I cannot attach a<u></u><u></u></pre>
<pre><b><span style="background:#ffff66">VoxelPhantomSD</span></b> to the patient - I receive an error message telling me that this command is unavailable:<u></u><u></u></pre>
<pre>[G4-cerr] <b>**</b>*<b>**</b> COMMAND NOT FOUND </gate/patient/attach<b><span style="background:#ffff66">VoxelPhantomSD</span></b>> <b>**</b>*<b>**</b><u></u><u></u></pre>
<pre>Attaching an ordinary PhantomSD seems to work, but only generates 0 entries in ComptonPhantom and<u></u><u></u></pre>
<pre>RayleighPhantom. I also tried using a ImageNestedParametrisedVolume, with no effect. ComptonCrystal<u></u><u></u></pre>
<pre>entries, however, seem to be correct (>= 0).<u></u><u></u></pre>
<pre><u></u> <u></u></pre>
<pre>Apart from that, how can I visualize the voxelized phantom using colors? I was not able to add color<u></u><u></u></pre>
<pre>attributes (like "true 0.5 0.5 0.5 1.0") to p971-HU2mat.txt manually, since this resulted in the<u></u><u></u></pre>
<pre>following error message:<u></u><u></u></pre>
<pre>src/<a href="http://GateVImageVolume.cc" target="_blank">GateVImageVolume.cc</a> (l.332): No Hounsfield material defined in the file<u></u><u></u></pre>
<pre>CT/p971s3_ToSim_OneBP_HU2mat_Colors.txt. Abort<u></u><u></u></pre>
<pre><u></u> <u></u></pre>
<pre>Does anyone have knowledge in this area, or can point to some helpful documentation on this topic? The GATE<u></u><u></u></pre>
<pre>User's Guide has a few, but only incomplete examples for the case of voxelized phantoms and sources.<u></u><u></u></pre>
<pre><u></u> <u></u></pre>
<pre>Best regards,<u></u><u></u></pre>
<pre><u></u> <u></u></pre>
<pre>Yannick Berker<u></u><u></u></pre>
<pre><u></u> <u></u></pre>
<pre>The information contained in this message may be confidential and legally protected under applicable<u></u><u></u></pre>
<pre>law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are<u></u><u></u></pre>
<pre>hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly<u></u><u></u></pre>
<pre>prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return<u></u><u></u></pre>
<pre>e-mail and destroy all copies of the original message.<u></u><u></u></pre>
</div>
</blockquote>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div></div></div>
</div>
<br>_______________________________________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.opengatecollaboration.org</a><br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a><br></blockquote></div><br></div>