| 1 | #
|
|---|
| 2 | # GEANT4 SBT Script to test G4Polyhedra
|
|---|
| 3 | # DCW 25/3/99 First try
|
|---|
| 4 | * DCW 23/5/99 Add voxel tests
|
|---|
| 5 | #
|
|---|
| 6 | # Increment the numbers below to **really** consume CPU time
|
|---|
| 7 | #
|
|---|
| 8 | /test/maxPoints 10000
|
|---|
| 9 | /voxel/maxVoxels 500
|
|---|
| 10 | #
|
|---|
| 11 | /test/maxPoints 1000
|
|---|
| 12 | /voxel/maxVoxels 50
|
|---|
| 13 | #
|
|---|
| 14 | # --- polyhedra.a1.log
|
|---|
| 15 | # Start with a nice and easy case
|
|---|
| 16 | #
|
|---|
| 17 | /solid/G4Polyhedra 0 360 8 4 (1.0,1.2,1.4,1.2) (-1.0,-1.0,1.0,1.0)
|
|---|
| 18 | /test/errorFileName log/polyhedra.a1.log
|
|---|
| 19 | /test/run
|
|---|
| 20 | /voxel/errorFileName log/polyhedrav.a1.log
|
|---|
| 21 | /voxel/run
|
|---|
| 22 | #
|
|---|
| 23 | # --- polyhedra.a2.log
|
|---|
| 24 | # Up the ante and generate points on a grid
|
|---|
| 25 | #
|
|---|
| 26 | /test/gridSizes 0.02 0.02 0.02 m
|
|---|
| 27 | /test/errorFileName log/polyhedra.a2.log
|
|---|
| 28 | /test/run
|
|---|
| 29 | #
|
|---|
| 30 | #
|
|---|
| 31 | # --- polyhedra.b1.log
|
|---|
| 32 | # Now add a phi slice
|
|---|
| 33 | #
|
|---|
| 34 | /solid/G4Polyhedra 0 90 8 4 (1.0,1.2,1.4,1.2) (-1.0,-1.0,1.0,1.0)
|
|---|
| 35 | /test/gridSizes 0 0 0 m
|
|---|
| 36 | /test/errorFileName log/polyhedra.b1.log
|
|---|
| 37 | /test/run
|
|---|
| 38 | /voxel/errorFileName log/polyhedrav.b1.log
|
|---|
| 39 | /voxel/run
|
|---|
| 40 | #
|
|---|
| 41 | # --- polyhedra.b2.log
|
|---|
| 42 | # Up the ante and generate points on a grid
|
|---|
| 43 | #
|
|---|
| 44 | /test/gridSizes 0.02 0.02 0.02 m
|
|---|
| 45 | /test/errorFileName log/polyhedra.b2.log
|
|---|
| 46 | /test/run
|
|---|
| 47 | #
|
|---|
| 48 | # --- polyhedra.c1.log
|
|---|
| 49 | # Build a much more complicated polyhedra
|
|---|
| 50 | #
|
|---|
| 51 | /solid/G4Polyhedra 0 360 6 17 (0.0,0.2,0.3,0.32,0.32,0.4,0.4,0.5,0.5,0.8,0.8,0.9,0.9,0.8,0.8,0.3,0.0) (-0.5,-0.5,-1.1,-1.1,-0.4,-0.4,-1.0,-1.0,-0.4,-1.0,0.0,0.0,0.2,0.2,1.0,0.0,1.0)
|
|---|
| 52 | /test/gridSizes 0 0 0 m
|
|---|
| 53 | /test/errorFileName log/polyhedra.c1.log
|
|---|
| 54 | /test/run
|
|---|
| 55 | /voxel/errorFileName log/polyhedrav.c1.log
|
|---|
| 56 | /voxel/run
|
|---|
| 57 | #
|
|---|
| 58 | # --- polyhedra.b2.log
|
|---|
| 59 | # Up the ante and generate points on a grid
|
|---|
| 60 | #
|
|---|
| 61 | /test/gridSizes 0.02 0.02 0.02 m
|
|---|
| 62 | /test/errorFileName log/polyhedra.c2.log
|
|---|
| 63 | /test/run
|
|---|
| 64 | #
|
|---|
| 65 | # --- polyhedra.d1.log
|
|---|
| 66 | # Build a much more complicated polyhedra, now with a slice
|
|---|
| 67 | #
|
|---|
| 68 | /solid/G4Polyhedra 0 90 2 17 (0.0,0.2,0.3,0.32,0.32,0.4,0.4,0.5,0.5,0.8,0.8,0.9,0.9,0.8,0.8,0.3,0.0) (-0.5,-0.5,-1.1,-1.1,-0.4,-0.4,-1.0,-1.0,-0.4,-1.0,0.0,0.0,0.2,0.2,1.0,0.0,1.0)
|
|---|
| 69 | /test/gridSizes 0 0 0 m
|
|---|
| 70 | /test/errorFileName log/polyhedra.d1.log
|
|---|
| 71 | /test/run
|
|---|
| 72 | /voxel/errorFileName log/polyhedrav.d1.log
|
|---|
| 73 | /voxel/run
|
|---|
| 74 | #
|
|---|
| 75 | # --- polyhedra.d2.log
|
|---|
| 76 | # Up the ante and generate points on a grid
|
|---|
| 77 | #
|
|---|
| 78 | /test/gridSizes 0.02 0.02 0.02 m
|
|---|
| 79 | /test/errorFileName log/polyhedra.d2.log
|
|---|
| 80 | /test/run
|
|---|
| 81 | #
|
|---|
| 82 | # --- polyhedra.e1.log
|
|---|
| 83 | # Build a much more complicated polyhedra, now with a thin slice
|
|---|
| 84 | #
|
|---|
| 85 | /solid/G4Polyhedra -1 2 2 17 (0.0,0.2,0.3,0.32,0.32,0.4,0.4,0.5,0.5,0.8,0.8,0.9,0.9,0.8,0.8,0.3,0.0) (-0.5,-0.5,-1.1,-1.1,-0.4,-0.4,-1.0,-1.0,-0.4,-1.0,0.0,0.0,0.2,0.2,1.0,0.0,1.0)
|
|---|
| 86 | /test/gridSizes 0 0 0 m
|
|---|
| 87 | /test/errorFileName log/polyhedra.e1.log
|
|---|
| 88 | /test/run
|
|---|
| 89 | /voxel/errorFileName log/polyhedrav.e1.log
|
|---|
| 90 | /voxel/run
|
|---|
| 91 | #
|
|---|
| 92 | # --- polyhedra.e2.log
|
|---|
| 93 | # Up the ante and generate points on a grid
|
|---|
| 94 | #
|
|---|
| 95 | /test/gridSizes 0.02 0.02 0.02 m
|
|---|
| 96 | /test/errorFileName log/polyhedra.e2.log
|
|---|
| 97 | /test/run
|
|---|
| 98 | #
|
|---|
| 99 | # --- polyhedra.f1.log
|
|---|
| 100 | # One of my old favorites, with a few sharp turns
|
|---|
| 101 | #
|
|---|
| 102 | /solid/G4Polyhedra2 0 270 6 6 (-0.6,0.0,-1.0,0.5,0.5,1.0) (0.5,0.5,0.4,0.4,0.8,0.8) (0.6,0.6,1.0,1.0,1.0,1.1)
|
|---|
| 103 | /test/gridSizes 0 0 0 m
|
|---|
| 104 | /test/errorFileName log/polyhedra.f1.log
|
|---|
| 105 | /test/run
|
|---|
| 106 | /voxel/errorFileName log/polyhedrav.f1.log
|
|---|
| 107 | /voxel/run
|
|---|
| 108 | #
|
|---|
| 109 | /test/gridSizes 0.02 0.02 0.02 m
|
|---|
| 110 | /test/errorFileName log/polyhedra.f2.log
|
|---|
| 111 | /test/run
|
|---|
| 112 | #
|
|---|
| 113 | exit
|
|---|