Geant4 Cross Reference |
1 ############################################## 2 # Macro executed by default in radiobiology ex 3 # Just creates a teest geometry and opens visu 4 # 5 6 ############################################## 7 # Set an example geometry 8 # 9 /detectorGeom/setMat G4_WATER 10 /detectorGeom/setSize 9 cm 11 /detectorGeom/setSizeX 9 cm 12 /detectorGeom/setSizeY 3 cm 13 /detectorGeom/setSizeZ 3 cm 14 15 ############################################## 16 # Set voxel sizes, than change on the transver 17 # 18 /voxels/setVoxelSizes 3 3 3 cm 19 /voxels/setSizeX 1.5 cm 20 /voxels/setSizeY 1 cm 21 /voxels/setSizeZ 1 cm 22 23 ############################################## 24 # Initialize and start visualization 25 # 26 /run/initialize 27 28 ############################################## 29 # Change voxel dimensions after initializatio 30 # 31 /voxels/setSizeX 1.5 cm 32 /voxels/setSizeY 1 cm 33 /voxels/setSizeZ 1 cm 34 /voxels/update 35 36 ############################################## 37 # Open visualization 38 # 39 # Open a viewer 40 /vis/open 41 # This opens the default viewer - see examples 42 # more comprehensive overview of options. Also 43 ## To open OGLSQt driver 44 #/vis/open OGLSQt 45 /vis/drawVolume 46 47 /vis/scene/endOfEventAction accumulate 48 /vis/scene/add/trajectories smooth