[Gate-users] Source not confined

abdellah khallouqi abdelkhallouqi02 at gmail.com
Sun May 2 15:54:22 CEST 2021


Hello!

I'm a PhD student who is doing an assignment of CT simulation with Gate. I
want to run the rotary movement of the tube RX around the Z axis<phantom >
I created a histogram spectrum source.

/gate/source/addSource mybeam gps
/gate/source/mybeam/gps/particle       gamma
/gate/source/mybeam/gps/ene/type       User
/gate/source/mybeam/gps/hist/type      energy
/gate/source/mybeam/gps/pos/halfx      8 mm
/gate/source/mybeam/gps/pos/halfy      8 mm
/gate/source/mybeam/gps/pos/rot1       1 0 0
/gate/source/mybeam/gps/pos/rot2       0 1 0
/gate/source/mybeam/gps/pos/centre     0 0 1060 mm
/gate/source/mybeam/gps/pos/type       Plane
/gate/source/mybeam/gps/pos/shape      Rectangle
/gate/source/mybeam/gps/ang/type       focused
/gate/source/mybeam/gps/ang/focuspoint 0 0 1000 mm
/control/execute mac/100keV.mac

To define sources in movement, the source distribution have to be confined
in a Geant4 volume. This volume will be animated using the usual GATE
command as described in Chapter 4 of Guide V9.0.
/gate/source/mybeam/gps/confine movsource_phys

I'm trying to confine  mybeam , but cannot  work ?????


Geant4 volume >>>

/gate/world/daughters/name movsource
/gate/world/daughters/insert  box
/gate/movsource/geometry/setXLength        0.8 m
/gate/movsource/geometry/setYLength        0.8 m
/gate/movsource/geometry/setZLength        0.8 m
/gate/movsource/placement/setTranslation 0 0 1060 mm
/gate/movsource/setMaterial Air
/gate/movsource/vis/setColor magenta

>>rotation macro
/gate/myvolume/moves/insert    genericMove
/gate/myvolume/genericMove/setPlacementsFilename myvolume.placements


Plz any ideas how to solve this????
Thank you in advance! Sincerely.
-------------- section suivante --------------
Une pièce jointe HTML a été nettoyée...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20210502/b7398805/attachment.html>


More information about the Gate-users mailing list