[Gate-users] repeaters/insert ring works with box but not trpd

Navid Zeraatkar navid_zeraatkar at yahoo.com
Sat May 8 08:14:55 CEST 2010


Dear Anne,

I suggest you to define a box-shaped mother volume containing your tprd. Then using placement commands arrange the trpd in the box in the way u'd like. Now, repeating the box results in repeating your trpd.

Regards

 

________________________________

Navid Zeraatkar 
MSc Student, Department of Radiation Medicine Engineering, Shahid Beheshti University of Tehran
Member of Medical Imaging Systems Research Group, Research Center for Science and Technology in Medicine (RCSTIM), Tehran University of Medical Sciences
Email: na.zeraatkar at mail.sbu.ac.ir
          navid_zeraatkar at yahoo.com
Tel: +9821 66581563
Mobile: +989102114574




----------------------------------------------------------------------

Message: 1
Date: Thu, 06 May 2010 16:06:28 -0800
From: Anne Sauve <ACSauve at lbl.gov>
Subject: [Gate-users] repeaters/insert ring works with box but not
    trpd
To: gate-users at lists.opengatecollaboration.org
Message-ID: <f0ac05b76be7.4be2e904 at lbl.gov>
Content-Type: text/plain; charset=us-ascii

Hello the collaboration,

I am designing a SPECThead that is trapezoidal so I am using trpd.
my code is below:
/gate/world/daughters/name SPECThead
/gate/world/daughters/insert trpd
/gate/SPECThead/geometry/setX1Length  22.75 cm
/gate/SPECThead/geometry/setY1Length  16.25 cm
/gate/SPECThead/geometry/setX2Length 0.8 cm
/gate/SPECThead/geometry/setY2Length 0.8 cm
/gate/SPECThead/geometry/setZLength 10. cm
/gate/SPECThead/setMaterial Air
/gate/SPECThead/placement/setRotationAxis 0 1 0
/gate/SPECThead/placement/setRotationAngle -90 deg
/gate/SPECThead/placement/setTranslation  8.0 0. 0. cm
#
/gate/SPECThead/repeaters/insert ring
/gate/SPECThead/ring/setRepeatNumber 4

The problem is that the trapezoid is not rotated around the ring it is just translated.

If I do instead:
/gate/world/daughters/name SPECThead
/gate/world/daughters/insert box
/gate/SPECThead/geometry/setXLength  7. cm
/gate/SPECThead/geometry/setYLength 21. cm
/gate/SPECThead/geometry/setZLength 30. cm
/gate/SPECThead/placement/setTranslation  20.0 0. 0. cm
/gate/SPECThead/setMaterial Air
/gate/SPECThead/repeaters/insert ring
/gate/SPECThead/ring/setRepeatNumber 4

Then the box is rotated just fine.

Is there something that I am missing ?

Thank you very much for your help.
Anne



Anne Sauve, Ph.D
Lawrence Berkeley National Laboratory
1 Cyclotron Road., Mail Stop 55R-0121
Berkeley, CA 94720-8119
Email:  ACSauve at lbl.gov
Phone:  510-486-7131 
Fax: 510-486-4768


      


More information about the Gate-users mailing list