[Gate-users] generic trapezoid volume (pinhole)

Tasneem Rahman Tasneem.Rahman at student.adfa.edu.au
Wed May 28 09:48:06 CEST 2014


Hi David,

Thanks for your reply. Can you please clear a bit in detail about ‘inheriting from GateVolume’? I am not very sure about it. Do you mean to do some coding in geant4?
Please feel free to share any links or documents for this to figure out the details for beginners.


Cheers,

Smita

From: david.sarrut at gmail.com [mailto:david.sarrut at gmail.com] On Behalf Of David Sarrut
Sent: Wednesday, 28 May 2014 4:48 PM
To: Tasneem Rahman
Cc: John Apostolakis; <gate-users at lists.opengatecollaboration.org>
Subject: Re: [Gate-users] generic trapezoid volume (pinhole)

Hello,

there is no user macro in Gate allowing objects substraction. The best approach may be to code directly in C++ by creating a specific volume type (inheriting from GateVVolume, look for example GateBox).

Sincerely,
David

On Wed, May 28, 2014 at 6:59 AM, Tasneem Rahman <Tasneem.Rahman at student.adfa.edu.au<mailto:Tasneem.Rahman at student.adfa.edu.au>> wrote:
Hi John,

Can you please tell me how can I subtract objects from one another in Gate_v6.1? For instance if I make one solid box and if I make another cylinder as a daughter of the box, then can I subtract the cylinder from the box? Will it make a hole like that? Please let me know. Thanks.

Cheers,

Smita

From: gate-users-bounces at lists.opengatecollaboration.org<mailto:gate-users-bounces at lists.opengatecollaboration.org> [mailto:gate-users-bounces at lists.opengatecollaboration.org<mailto:gate-users-bounces at lists.opengatecollaboration.org>] On Behalf Of John Apostolakis
Sent: Wednesday, 28 May 2014 3:25 AM
To: Débora Salvado
Cc: <gate-users at lists.opengatecollaboration.org<mailto:gate-users at lists.opengatecollaboration.org>>
Subject: Re: [Gate-users] generic trapezoid volume (pinhole)

I am not sure if this will help:

If all your pinholes are the same shape (or can be created by subtracting the same "generic trapezoid" shape from the bigger shape) then in Geant4 at least you only need to define one 'solid'.

Then you subtract it multiple times, with each copy positioned at a different location and/or with a different orientation.  ( The orientation will be governed by the rotation matrix and the translation that you give it.)

I hope that I understood your issue - or that someone else can add the specialised GATE knowledge necessary to give better advice.

Regards,
John
===================================================

On May 27, 2014, at 5:50 PM, Débora Salvado wrote:

Dear GATE users,
I'm trying to use the "generic trapezoid" volume to define a multi-pinhole collimator, with each pinhole focusing different parts of the FOV.
Consider the following set-up:

/gate/world/daughters/name trap1
/gate/world/daughters/insert  trap
/gate/trap1/geometry/setDx1   26. mm
/gate/trap1/geometry/setDx2   26. mm
/gate/trap1/geometry/setDz    5. mm
/gate/trap1/geometry/setTheta 0. deg
/gate/trap1/geometry/setDy1   26. mm
/gate/trap1/geometry/setDy2   21. mm
/gate/trap1/geometry/setDx3   21. mm
/gate/trap1/geometry/setDx4   21. mm
/gate/trap1/geometry/setPhi   90. deg
/gate/trap1/geometry/setAlp1  0. deg
/gate/trap1/geometry/setAlp2  0. deg
/gate/trap1/setMaterial  Air
/gate/trap1/placement/setTranslation  0. 0. 0. mm
When I change the "theta" parameter, the face at +pDz goes up or down in the Y direction.
How can I make that same face move in the X direction (right or left)?
I tried to modify the phi/Alp1/Alp2 parameters, but the visualization either stays the same or it gives me an error...

Thank you in advance,

Debora Salvado
_______________________________________________
Gate-users mailing list
Gate-users at lists.opengatecollaboration.org<mailto:Gate-users at lists.opengatecollaboration.org>
http://lists.opengatecollaboration.org/mailman/listinfo/gate-users


_______________________________________________
Gate-users mailing list
Gate-users at lists.opengatecollaboration.org<mailto:Gate-users at lists.opengatecollaboration.org>
http://lists.opengatecollaboration.org/mailman/listinfo/gate-users



--
David Sarrut, Phd
Directeur de recherche CNRS
CREATIS, UMR CNRS 5220, Inserm U 1044
Centre de lutte contre le cancer Léon Bérard
28 rue Laënnec, 69373 Lyon cedex 08
Tel : 04 78 78 51 51 / 06 74 72 05 42
http://www.creatis.insa-lyon.fr/~dsarrut
_________________________________
 "2 + 2 = 5,  for extremely large values of 2"
_________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20140528/2b5b2321/attachment-0001.html>


More information about the Gate-users mailing list