[Gate-users] Parameterization of a Parallelepiped

Sebastien JAN sebastien.jan at cea.fr
Fri Mar 21 13:56:38 CET 2008


Hi Gilberto,

You just need to replace the old GateParallelepipedCreatorMessenger.cc 
file by the new one (in attachment - same than yesterday).
Then, you need to recompile, launch Gate and type /control/execute 
yourmacro.mac
I have executed Gate with the following macro, and it works well.

## 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 2
/vis/viewer/zoom 1
/vis/viewer/set/style surface
/vis/drawVolume
/tracking/storeTrajectory 0
/vis/scene/endOfEventAction accumulate
/vis/viewer/update
/gate/geometry/enableAutoUpdate

#WORLD
/gate/world/geometry/setXLength 100. cm
/gate/world/geometry/setYLength 100. cm
/gate/world/geometry/setZLength 100. cm

#SYSTEM
/gate/world/daughters/name SPECThead
/gate/world/daughters/insert box
/gate/SPECThead/geometry/setXLength 133.1 mm
/gate/SPECThead/geometry/setYLength 411.2 mm
/gate/SPECThead/geometry/setZLength 322.1 mm
/gate/SPECThead/placement/setTranslation 226.55 0. 0. mm
/gate/SPECThead/repeaters/insert ring
/gate/SPECThead/ring/setRepeatNumber 2
/gate/SPECThead/setMaterial Air
/gate/SPECThead/vis/forceWireframe


#COLLIMATOR
/gate/SPECThead/daughters/name collimator
/gate/SPECThead/daughters/insert parallelepiped
/gate/collimator/setMaterial LSO
/gate/collimator/vis/setColor red
/gate/collimator/geometry/setDx 100. mm
/gate/collimator/geometry/setDy 411.2 mm
/gate/collimator/geometry/setDz 322.1 mm
/gate/collimator/geometry/setAlpha 0. deg
/gate/collimator/geometry/setTheta 0. deg
/gate/collimator/geometry/setPhi 45. deg

-------------- next part --------------
A non-text attachment was scrubbed...
Name: GateParallelepipedCreatorMessenger.cc
Type: text/x-c++src
Size: 5018 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20080321/913431ce/attachment.cc>


More information about the Gate-users mailing list