<div dir="ltr">Hi Uwe and thanks for the suggestion!<div><br></div><div>Unfortunately it didn't solve the problem, the source is still only partially confined. I've also tried making a cold volume (in this case the lower half of the cylinder. I only want activity in the top half) and forbid activity in that region, but that doesn't seem to work either. I still get coincidences (and source visualization) in regions where I shouldn't. </div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Mar 10, 2014 at 10:11 PM, Pietrzyk, Uwe <span dir="ltr"><<a href="mailto:u.pietrzyk@fz-juelich.de" target="_blank">u.pietrzyk@fz-juelich.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi Ida,<br>
<br>
we once ran into a similar problem and the solution was<br>
to use (now for your example) the line<br>
<br>
/gate/source/F18_upper/gps/confine upperinterior<br>
<br>
instead of your original<br>
/gate/source/F18_upper/gps/confine upperinterior_P<br>
<br>
Hence, simply remove the "_P". We checked it and it<br>
works for our examples<br>
<br>
Kind regards and best wishes,<br>
<br>
Uwe Pietrzyk<br>
/----------------------------------------------------------------------<br>
Prof. Dr. Uwe Pietrzyk<br>
Diplom-Physiker<br>
Institut für Neurowissenschaften und Medizin / INM-4<br>
Forschungszentrum Jülich GmbH<br>
52425 Jülich<br>
Tel: <a href="tel:%2B49-2461-61%204763" value="+492461614763">+49-2461-61 4763</a><br>
Fax: <a href="tel:%2B49-2461-61%202820" value="+492461612820">+49-2461-61 2820</a><br>
Mobil: <a href="tel:%2B49-162-103-4871" value="+491621034871">+49-162-103-4871</a><br>
eMail: <a href="mailto:U.Pietrzyk@fz-juelich.de">U.Pietrzyk@fz-juelich.de</a><mailto:<a href="mailto:U.Pietrzyk@fz-juelich.de">U.Pietrzyk@fz-juelich.de</a>><br>
<a href="http://www.fz-juelich.de/inm" target="_blank">http://www.fz-juelich.de/inm</a><<a href="http://www.fz-juelich.de/inb/inb-3/" target="_blank">http://www.fz-juelich.de/inb/inb-3/</a>><br>
&<br>
Bergische Universität Wuppertal<br>
Fachbereich C - Physik / D.08.01<br>
Gaußstr. 20<br>
42097 Wuppertal<br>
Tel: <a href="tel:%2B49-%280%29202-439-3523" value="+492024393523">+49-(0)202-439-3523</a><br>
Fax: <a href="tel:%2B49-%280%29202-439-2811" value="+492024392811">+49-(0)202-439-2811</a><br>
eMail: <a href="mailto:Uwe.Pietrzyk@physik.uni-wuppertal.de">Uwe.Pietrzyk@physik.uni-wuppertal.de</a><mailto:<a href="mailto:Uwe.Pietrzyk@physik.uni-wuppertal.de">Uwe.Pietrzyk@physik.uni-wuppertal.de</a>><br>
<a href="http://www.medizinphysik.uni-wuppertal.de" target="_blank">http://www.medizinphysik.uni-wuppertal.de</a><<a href="http://www.medizinphysik.uni-wuppertal.de/" target="_blank">http://www.medizinphysik.uni-wuppertal.de/</a>><br>
----------------------------------------------------------------------/<br>
<div class=""><br>
<br>
On 10.03.2014, at 20:52, Ida Häggström wrote:<br>
<br>
Hello and thanks for your reply!<br>
<br>
Yes, I did run a short simulation (I also thought it might have been just the visualization), but unfortunately when looking at the *.raw output images it shows that the source has indeed spilled out. I get scattered and true coincidences originating from the spilled out areas.<br>
<br>
If I can't find a solution I guess I'm left with doing a voxelized source...<br>
<br>
Thanks again!<br>
Ida<br>
<br>
<br>
<br>
</div><div class="">On Mon, Mar 10, 2014 at 6:34 PM, Marc Chamberland <<a href="mailto:MarcChamberland@cmail.carleton.ca">MarcChamberland@cmail.carleton.ca</a><mailto:<a href="mailto:MarcChamberland@cmail.carleton.ca">MarcChamberland@cmail.carleton.ca</a>>> wrote:<br>
Hi Ida,<br>
<br>
Did you try a short simulation with your macro and did you confirm that the source is not properly confined? (For example, by looking at the source position distribution in the Root output.)<br>
<br>
The reason I'm asking is that, in the past, I've found limitations in the Geant4 visualization code. For example, see this thread from the mailing list: <a href="http://article.gmane.org/gmane.comp.science.opengate.user/3109/match=source+visualize" target="_blank">http://article.gmane.org/gmane.comp.science.opengate.user/3109/match=source+visualize</a><br>
<br>
My first instinct is that this may be related.<br>
<br>
Marc<br>
<br>
<br>
<br>
__________________________<br>
<br>
Marc Chamberland, MSc<br>
PhD candidate<br>
Department of Physics<br>
Carleton University<br>
Ottawa (ON)<br>
<br>
</div><div><div class="h5">On Mar 10, 2014, at 11:34, Ida Häggström <<a href="mailto:ida.haggstrom@radfys.umu.se">ida.haggstrom@radfys.umu.se</a><mailto:<a href="mailto:ida.haggstrom@radfys.umu.se">ida.haggstrom@radfys.umu.se</a>><mailto:<a href="mailto:ida.haggstrom@radfys.umu.se">ida.haggstrom@radfys.umu.se</a><mailto:<a href="mailto:ida.haggstrom@radfys.umu.se">ida.haggstrom@radfys.umu.se</a>>>> wrote:<br>
<br>
Hello!<br>
<br>
I'm trying to confine a source to a particular phantom geometry, but cannot get it to work properly. Part of the source spills out outside the confinement volume. Below are codes for the phantom + source and a visualization image where you can see the issue.<br>
<br>
Any ideas how to solve this?<br>
<br>
Thank you in advance! Sincerely,<br>
Ida<br>
<br>
# P H A N T O M<br>
/gate/world/daughters/name upperinterior<br>
/gate/world/daughters/insert cylinder<br>
/gate/upperinterior/placement/setTranslation 0.0 -3.5 -3.7 cm<br>
/gate/upperinterior/geometry/setRmax 14.7 cm<br>
/gate/upperinterior/geometry/setRmin 0.0 cm<br>
/gate/upperinterior/geometry/setHeight 21.4 cm<br>
/gate/upperinterior/geometry/setPhiStart 0. deg<br>
/gate/upperinterior/geometry/setDeltaPhi 180. deg<br>
/gate/upperinterior/setMaterial Water<br>
/gate/upperinterior/vis/forceWireframe<br>
/gate/upperinterior/vis/setColor blue<br>
<br>
# S O U R C E<br>
/gate/source/addSource F18_upper<br>
/gate/source/F18_upper/setActivity 1 becquerel<br>
/gate/source/F18_upper/gps/particle e+<br>
/gate/source/F18_upper/setForcedUnstableFlag true<br>
/gate/source/F18_upper/setForcedHalfLife 6586.2 s<br>
/gate/source/F18_upper/gps/energytype Fluor18<br>
/gate/source/F18_upper/gps/type Volume<br>
/gate/source/F18_upper/gps/shape Cylinder<br>
/gate/source/F18_upper/gps/radius 14.7 cm<br>
/gate/source/F18_upper/gps/halfz 10.7 cm<br>
/gate/source/F18_upper/gps/angtype iso<br>
/gate/source/F18_upper/gps/centre 0.0 -3.5 -3.7 cm<br>
/gate/source/F18_upper/gps/confine upperinterior_P<br>
/gate/source/F18_upper/visualize 1000 cyan 2<br>
<br>
<br>
<source_confinement.PNG>_______________________________________________<br>
Gate-users mailing list<br>
</div></div><a href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.opengatecollaboration.org</a><mailto:<a href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.opengatecollaboration.org</a>><mailto:<a href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.opengatecollaboration.org</a><mailto:<a href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.opengatecollaboration.org</a>>><br>
<div class=""><a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a><br>
<br>
<br>
_______________________________________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.opengatecollaboration.org</a><mailto:<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>
<br>
<br>
<br>
</div>------------------------------------------------------------------------------------------------<br>
------------------------------------------------------------------------------------------------<br>
Forschungszentrum Juelich GmbH<br>
52425 Juelich<br>
Sitz der Gesellschaft: Juelich<br>
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498<br>
Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher<br>
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),<br>
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,<br>
Prof. Dr. Sebastian M. Schmidt<br>
------------------------------------------------------------------------------------------------<br>
------------------------------------------------------------------------------------------------<br>
<br>
</blockquote></div><br></div>