[Gate-users] trouble with ring repeater
Ruud Vinke
Vinke at kvi.nl
Fri Nov 24 13:56:33 CET 2006
Hello GATE users,
I installed Gate_v3.0.0 together with Geant4.8.1.p01 successfully a few days ago on SUSE Linux 10.1 OS. I am new to Gate and first tested the installation by running a few test macros.
As soon as ring repeater commands are implemented, the system does not function as expected: the rotation is performed along the center axis of the object resulting in multiple rotated copies at the same location after the following two commands:
# R E P E A T R S E C T O R
/gate/box1/repeaters/insert ring
/gate/box1/ring/setRepeatNumber 30
I have included an example macro from the Gate Users Guide below.
I regularly get the following output:
========================================
world_L is registered to the default region.
Volume of the same name and copy number ("world_P", copy 0) still exists and is being used.
Be warned that this does not necessarily guarantee it's the same
volume you originally specified in /vis/scene/add/.
========================================
Is it possible that the above commands are not valid anymore, as was the case for the
/vis/viewer/viewpointThetaPhi command which had to be adjusted to /vis/viewer/set/viewpointThetaPhi ?
I also made a second install of Gate_v3.0.0 linked to Geant4.8.0.p01 libraries, but this did not resolve the issue. Does this sound familiar to anyone?
Regards,
Ruud
test.mac
==============================================
# V I S U A L I Z A T I O N
/vis/open OGLSX
/vis/viewer/reset
/vis/viewer/set/viewpointThetaPhi 60 60
/vis/viewer/zoom 1
/vis/viewer/set/style surface
/vis/drawVolume
/tracking/storeTrajectory 1
/vis/scene/endOfEventAction accumulate
/vis/viewer/update
/gate/geometry/enableAutoUpdate
# W O R L D
/gate/world/geometry/setXLength 40. cm
/gate/world/geometry/setYLength 40. cm
/gate/world/geometry/setZLength 40. cm
# S Y S T E M
/gate/world/daughters/name cylindricalPET
/gate/world/daughters/insert cylinder
/gate/cylindricalPET/setMaterial Water
/gate/cylindricalPET/geometry/setRmax 100 mm
/gate/cylindricalPET/geometry/setRmin 86 mm
/gate/cylindricalPET/geometry/setHeight 18 mm
/gate/cylindricalPET/vis/forceWireframe
/vis/viewer/zoom 3
# FIRST LEVEL OF the system
/gate/cylindricalPET/daughters/name box1
/gate/cylindricalPET/daughters/insert box
/gate/box1/placement/setTranslation 91. 0 0 mm
/gate/box1/geometry/setXLength 10. mm
/gate/box1/geometry/setYLength 17.75 mm
/gate/box1/geometry/setZLength 17.75 mm
/gate/box1/setMaterial Water
/gate/box1/vis/setColor yellow
/gate/box1/vis/forceWireframe
# C R Y S T A L
/gate/box1/daughters/name box2
/gate/box1/daughters/insert box
/gate/box2/geometry/setXLength 10. mm
/gate/box2/geometry/setYLength 2. mm
/gate/box2/geometry/setZLength 2. mm
/gate/box2/setMaterial LSO
/gate/box2/vis/setColor red
/gate/box2/vis/forceWireframe
# Z O O M
/vis/viewer/zoom 4
/vis/viewer/panTo 60 -40 mm
# R E P E A T C R Y S T A L
/gate/box2/repeaters/insert cubicArray
/gate/box2/cubicArray/setRepeatNumberX 1
/gate/box2/cubicArray/setRepeatNumberY 8
/gate/box2/cubicArray/setRepeatNumberZ 8
/gate/box2/cubicArray/setRepeatVector 0. 2.25 2.25 mm
# A T T A C H Volumes To a S Y S T E M
/gate/systems/cylindricalPET/rsector/attach box1
/gate/systems/cylindricalPET/module/attach box2
# R E P E A T R S E C T O R
/gate/box1/repeaters/insert ring
/gate/box1/ring/setRepeatNumber 30
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20061124/1684556c/attachment.htm>
More information about the Gate-users
mailing list