[Gate-users] A couple of contributions
Jose L. Rubio
jlrubio at die.upm.es
Wed Mar 5 19:54:40 CET 2008
Hello everybody,
This email is just to make available to the GATE community a couple of
modifications that our group has developed as part of our simulations
with GATE, and that we consider could be useful for other GATE users.
For each of them, we attach patches valid for GATE v3.0.0 and v3.1.2,
which can be applied like this:
cd /path/to/your/gate/source/
patch -p1 < /path/to/the/patch/gate-v3.1.2-FreeAngularRepeater.patch
and then rebuild GATE.
The first contribution is called 'FreeAngularRepeater' (a modification of
GATE's ring repeater) and allows for free positioning of the angular
replicas instead of equal-spaced replicas in GATE's ring repeater.
As an example, the code for repeating a volume at angular positions
0º, 15º, 60º and 75º around Z axis would be the following:
/gate/object/repeaters/name FreeAngularRepeater
/gate/object/repeaters/insert angle
/gate/object/FreeAngularRepeater/setang 0 deg
/gate/object/FreeAngularRepeater/setang 15 deg
/gate/object/FreeAngularRepeater/setang 60 deg
/gate/object/FreeAngularRepeater/setang 75 deg
A list of currently set angles is shown by executing
/gate/object/FreeAngularRepeater/describe
And it can be reset with:
/gate/object/FreeAngularRepeater/resetAng
As for the second contribution, it implements the opposite of the
'Confine' option available for GATE sources. That is, it allows
to define cold regions inside activity sources, which can be
useful for instance for simulating a Cold Derenzo phantom.
The sintaxis is similar to the 'Confine' option, but using 'Forbid'
instead. For instance the following code:
...
/gate/world/daughters/name bigCylinder
/gate/world/daughters/insert cylinder
/gate/bigCylinder/geometry/setRmax 40 mm
/gate/bigCylinder/geometry/setHeight 40 mm
/gate/bigCylinder/daughters/name smallCylinder
/gate/bigCylinder/daughters/insert cylinder
/gate/smallCylinder/geometry/setRmax 20 mm
/gate/smallCylinder/geometry/setHeight 20 mm
...
/run/initialize
...
/gate/source/addSource mySource
/gate/source/mySource/gps/type Volume
/gate/source/mySource/gps/shape Cylinder
/gate/source/mySource/gps/radius 40 mm
/gate/source/mySource/gps/halfz 20. mm
/gate/source/mySource/gps/Forbid smallCylinder
defines an activity source in the 40x40 cylinder 'bigCylinder' volume,
excluding the 'smallCylinder' sub-volume, in which no activity at all will be generated.
We hope you find it useful, if you have questions about its usage, feel
free to send an email either to jlrubio at die.upm.es or
aurora.gonzalez at die.upm.es .
Best regards,
Jose & Aurora
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gate_v3.0.0-ForbidSourceActivity.patch
Type: text/x-patch
Size: 7370 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20080305/53fe6246/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gate_v3.1.2-ForbidSourceActivity.patch
Type: text/x-patch
Size: 6926 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20080305/53fe6246/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gate_v3.0.0-FreeAngularRepeater.patch
Type: text/x-patch
Size: 23531 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20080305/53fe6246/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gate_v3.1.2-FreeAngularRepeater.patch
Type: text/x-patch
Size: 22931 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20080305/53fe6246/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jlrubio.vcf
Type: text/x-vcard
Size: 527 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20080305/53fe6246/attachment.vcf>
More information about the Gate-users
mailing list