[Gate-users] How to rotate a volume in two direction?

Mery MB mery.mb.mph at gmail.com
Tue Apr 24 15:44:24 CEST 2018


Dear John

NOt at all!!!!!!!!!!!!!!!!!

As you told the below lines are setting the minimum and the maximum angle
of the cylinder. But I want to rotate this cylinder around two axis with
two different angle. At first rotate around x axis for 90 degree and then
rotate it around z axis for 6 degree.
/gate/Jy6-31/geometry/setPhiStart         9 deg
/gate/Jy6-31/geometry/setDeltaPhi         360 deg



I tried to rotation simultaneously but it is not work properly at all!!!!
I tried the below lines :

/gate/Jy6-31/placement/setRotationAxis         1 0 0
/gate/Jy6-31/placement/setRotationAngle        90.0 deg
/gate/Jy6-31/placement/setRotationAxis         0 0 1
/gate/Jy6-31/placement/setRotationAngle        6.0 deg


or


/gate/ Jy6-31/placement/alignToY
/gate/Jy6-31/placement/setRotationAxis         0 0 1
/gate/Jy6-31/placement/setRotationAngle        6.0 deg


both of them do not work properly!!!!!!!!!!!!!!!!!

I will be thankful if someone can help me in this issue.

Best
Mery






On Tue, Apr 24, 2018 at 5:51 PM John Apostolakis <John.Apostolakis at cern.ch>
wrote:

> Dear Mery,
>
> I believe that what you are setting are the minimum and maximum angle of
> the cylinder.  Not a rotation.
>
> Is this what you wanted ?
>
> John
> ===================================================
> John Apostolakis,  EP Department, CERN
> SFT (SoFTware for Experiments) Group
>
> On 24 Apr 2018, at 09:33, Mery MB <mery.mb.mph at gmail.com> wrote:
>
>
> Dear Gate user
>
> I want to rotate a volume in two direction but the result of rotation is
> not sth thant I want?
> Is there any special point for this issue?
>
> For example:
> I want to rotate this cylinder at first 90 degree in x axis and then 6
> degree in z axis?
> How Can I do this rotation?
>
> it is really easy in Geant but I can not found its relation in Gate!!!
>
> # Jawy 6-3 (y2-head)
> /gate/Gantry/daughters/name            Jy6-31
> /gate/Gantry/daughters/insert            cylinder
> /gate/Jy6-31/geometry/setRmax             50.9 cm
> /gate/Jy6-31/geometry/setRmin             43.1 cm
> /gate/Jy6-31/geometry/setHeight             142.35 mm
> /gate/Jy6-31/geometry/setPhiStart         9 deg
> /gate/Jy6-31/geometry/setDeltaPhi         360 deg
> /gate/Jy6-31/placement/setTranslation        0 0 -250 mm
> /gate/Jy6-31/placement/setRotationAxis         1 0 0
> /gate/Jy6-31/placement/setRotationAngle        90.0 deg
>
> /gate/Jy6-31/setMaterial             MLC
> /gate/Jy6-31/vis/forceSolid
> /gate/Jy6-31/vis/setColor                          red
>
> Best
> Mery
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.opengatecollaboration.org
> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20180424/79d97c0f/attachment.html>


More information about the Gate-users mailing list