<HTML>
<HEAD>
<TITLE>Re: [Gate-users] using source "confine" option</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana"><SPAN STYLE='font-size:12.0px'>Dear Bosky,<BR>
<BR>
I tried your macro (with a larger sphere) and it looks OK to me, i.e. the background is confined to the cylinder minus the sphere (see attached picture). How did you determine that the background was not confined ?<BR>
<BR>
Richard<BR>
<BR>
On 5/8/08 7:01 AM, "Ravindranath, Bosky" <bosky@bnl.gov> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Monaco"><SPAN STYLE='font-size:9.0px'><TT>To Giovanni Santin and Gate users,<BR>
<BR>
I have a couple of questions about the "confine" option when defining a source in GATE. I am trying to define a warm background with a hot spot in the center and I want to keep these two sources independent of one another, i.e have no overlap in the source emission points. <BR>
I tried using the "confine" command in the following way:<BR>
<BR>
#Phantom 1: Warm background phantom<BR>
/gate/world/daughters/name phantom<BR>
/gate/world/daughters/insert cylinder<BR>
/gate/phantom/setMaterial Water <BR>
/gate/phantom/vis/forceWireframe<BR>
/gate/phantom/vis/setColor white<BR>
/gate/phantom/geometry/setRmax 72.65923 mm <BR>
/gate/phantom/geometry/setRmin 0. mm <BR>
/gate/phantom/geometry/setHeight 96.46 mm #array only. increase for OFOV<BR>
/gate/phantom/attachPhantomSD<BR>
<BR>
#Phantom 2: Hot Spot Phantom <BR>
/gate/phantom/daughters/name phantom_sp1<BR>
/gate/phantom/daughters/insert sphere<BR>
/gate/phantom_sp1/setMaterial Water<BR>
/gate/phantom_sp1/vis/forceWireframe<BR>
/gate/phantom_sp1/vis/setColor blue<BR>
/gate/phantom_sp1/geometry/setRmax 7.5 mm <BR>
/gate/phantom_sp1/geometry/setRmin 0. mm <BR>
/gate/phantom_sp1/placement/setTranslation 0. 0. 0. mm <BR>
<BR>
Followed by my Source definition:<BR>
# background Source<BR>
/gate/source/addSource background<BR>
/gate/source/background/setActivity 3851374 becquerel<BR>
/gate/source/background/setType backtoback<BR>
/gate/source/background/gps/particle gamma<BR>
/gate/source/background/gps/energytype Mono<BR>
/gate/source/background/gps/monoenergy 0.511 MeV<BR>
/gate/source/background/setForcedUnstableFlag true<BR>
/gate/source/background/setForcedHalfLife 6586 s<BR>
/gate/source/background/gps/type Volume<BR>
/gate/source/background/gps/shape Cylinder<BR>
/gate/source/background/gps/radius 72.65923 mm <BR>
/gate/source/background/gps/halfz 48.23 mm<BR>
/gate/source/background/gps/centre 0. 0. 0. cm<BR>
/gate/source/background/gps/confine phantom<BR>
/gate/source/background/gps/angtype iso<BR>
<BR>
# hotspot Source<BR>
/gate/source/addSource twogamma<BR>
/gate/source/twogamma/setActivity 35958.45 becquerel <BR>
/gate/source/twogamma/setType backtoback<BR>
/gate/source/twogamma/gps/particle gamma<BR>
/gate/source/twogamma/gps/energytype Mono<BR>
/gate/source/twogamma/gps/monoenergy 0.511 MeV<BR>
/gate/source/twogamma/setForcedUnstableFlag true<BR>
/gate/source/twogamma/setForcedHalfLife 6586 s<BR>
/gate/source/twogamma/gps/type Volume<BR>
/gate/source/twogamma/gps/shape Sphere<BR>
/gate/source/twogamma/gps/radius 20 mm <BR>
/gate/source/twogamma/gps/centre 0. 0. 0. mm<BR>
/gate/source/twogamma/gps/confine phantom_sp1<BR>
/gate/source/twogamma/gps/angtype iso<BR>
<BR>
The hot spot source gets confined to its confinement volume(phantom_sp1), however the background source is uniformly distributed over the regions of "phantom" as well as "phantom_sp1". I expected that the background source will be confined to the area of (phantom-phantom_sp1)..which in this case should be a cylinder with a hole in the center. I also tried defining the two phantoms as the daughters of the world, but that did not confine the background activity either.<BR>
<BR>
<BR>
Any suggestions appreciated.<BR>
<BR>
Thanks.<BR>
Bosky<BR>
_______________________________________________<BR>
Gate-users mailing list<BR>
Gate-users@lists.healthgrid.org<BR>
<a href="http://lists.healthgrid.org/mailman/listinfo/gate-users">http://lists.healthgrid.org/mailman/listinfo/gate-users</a><BR>
</TT></SPAN></FONT></BLOCKQUOTE><FONT FACE="Monaco"><SPAN STYLE='font-size:9.0px'><TT><BR>
</TT></SPAN></FONT><FONT FACE="Verdana"><SPAN STYLE='font-size:12.0px'><BR>
-- <BR>
<FONT COLOR="#0000FF"><I>Richard Taschereau, Ph.D.<BR>
Crump Institute for Molecular Imaging<BR>
University of California Los Angeles<BR>
700 Westwood Plaza, A222<BR>
Los Angeles, CA 90095-1770<BR>
Phone: (310) 825-0697<BR>
Fax: (310) 206-8975<BR>
email: RTaschereau@mednet.ucla.edu<BR>
</I></FONT><BR>
</SPAN></FONT>
<br>----------------------------------------------------------<br>IMPORTANT WARNING: This email (and any attachments) is only intended for the use of the person or entity to which it is addressed, and may contain information that is privileged and confidential. You, the recipient, are obligated to maintain it in a safe, secure and confidential manner. Unauthorized redisclosure or failure to maintain confidentiality may subject you to federal and state penalties. If you are not the intended recipient, please immediately notify us by return email, and delete this message from your computer.<br>----------------------------------------------------------<br></BODY>
</HTML>