[Gate-users] Rotation of a gps source

Didier Benoit benoit at imnc.in2p3.fr
Mon Dec 19 09:58:36 CET 2011


Hi Ida,

In Gate v5.0 you can't rotate a source. In Gate v6.1 we have implemented 
the two lines:
/gate/source/[source name]/setRotationAxis 1 0 0
/gate/source/[source name]/setRotationAngle 90 deg

In Gate v5.0, I computed at each time and for each run the position of 
the source in the space. Unfortunately Geant4 doesn't provide a rotation 
of the source too.

King regards,
Didier Benoit

On 12/16/2011 03:55 PM, Ida Häggström wrote:
> Hello!
>
> I wonder if anyone has a way of rotating a source in GATE v.5.0? It's easy
> to rotate a volume, for example a cylinder like:
>
> /gate/phantom/placement/setRotationAxis -1 1 0
> /gate/phantom/placement/setRotationAngle 30 deg
>
> but I cannot find any equivalent for rotation of the source as well to
> coincide with the tilted phantom. My source is a cylinder like:
>
> /gate/source/twogamma/gps/type Volume
> /gate/source/twogamma/gps/shape Cylinder
> /gate/source/twogamma/gps/radius 10 mm
> /gate/source/twogamma/gps/halfz 110 mm
> /gate/source/twogamma/gps/centre 100. 100. 0. mm
>
> and I then want to rotate this cylinder source as well. I've found on the
> GATE wiki v.6.1 that you can write:
>
> /gate/source/ [Source name] /setRotationAxis 1 0 0
> /gate/source/ [Source name] /setRotationAngle 90 deg
>
> but that doesn't seem to work in v.5.0. I haven't found anything useful in
> the GEANT4 forum either...
>
> Thanks for any input!
> Ida
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.opengatecollaboration.org
> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
>    


-- 
----------------------------------------------------------------
Didier BENOIT, GATE Engineer
Imagerie et Modélisation en Neurobiologie et Cancérologie (IMNC)
IMNC – UMR 8165 CNRS – Université Paris 7 – Université Paris 11
Campus d’Orsay
Bâtiment 440
91406 ORSAY Cedex

Tél : (33) 1 69 15 68 76
E-mail : benoit at imnc.in2p3.fr
http://www.imnc.in2p3.fr
----------------------------------------------------------------



More information about the Gate-users mailing list