| 1 | ###################################################
|
|---|
| 2 | # Visualization of detector geometry and events
|
|---|
| 3 | ###################################################
|
|---|
| 4 |
|
|---|
| 5 | # create empty scene
|
|---|
| 6 | /vis/scene/create
|
|---|
| 7 |
|
|---|
| 8 | # Create a scene handler for a specific graphics system
|
|---|
| 9 | /vis/open OGLIX
|
|---|
| 10 |
|
|---|
| 11 | # draw scene
|
|---|
| 12 | /vis/viewer/zoom 1.5
|
|---|
| 13 | #/vis/viewer/set/viewpointThetaPhi 45 45 deg
|
|---|
| 14 | /vis/viewer/set/viewpointThetaPhi 90 -25 deg
|
|---|
| 15 | #/vis/viewer/flush
|
|---|
| 16 | /vis/drawVolume
|
|---|
| 17 |
|
|---|
| 18 | #if you want to see trajectories and hits points
|
|---|
| 19 | /vis/scene/add/trajectories
|
|---|
| 20 | /vis/modeling/trajectories/create/drawByCharge
|
|---|
| 21 | /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
|
|---|
| 22 | /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 5
|
|---|
| 23 |
|
|---|
| 24 | #DrawSurface Points
|
|---|
| 25 | /rndm/numPoints 100000
|
|---|
| 26 |
|
|---|
| 27 | # (if you prefer not refreshing each event, uncomment next line)
|
|---|
| 28 | # /vis/scene/endOfEventAction accumulate
|
|---|
| 29 |
|
|---|
| 30 | #hard coded position and direction for gun
|
|---|
| 31 | #/gun/position 400 0 -0.1 mm
|
|---|
| 32 | #/gun/direction 0 0 1
|
|---|
| 33 |
|
|---|
| 34 | #if you want make a run with particle
|
|---|
| 35 |
|
|---|
| 36 | #/run/beamOn 1
|
|---|
| 37 |
|
|---|
| 38 | #if you want to change the detector
|
|---|
| 39 |
|
|---|
| 40 | #/mydet/SelectDetector Polycone
|
|---|
| 41 |
|
|---|
| 42 | #if you want to change number of Points
|
|---|
| 43 | #/rndm/numPoints 100
|
|---|
| 44 |
|
|---|
| 45 | #to draw Points On the Surface
|
|---|
| 46 | /run/beamOn 1
|
|---|
| 47 | /mydet/SelectDetector Sphere
|
|---|
| 48 | /run/beamOn 1
|
|---|
| 49 | /mydet/SelectDetector Shell
|
|---|
| 50 | /run/beamOn 1
|
|---|
| 51 | /mydet/SelectDetector Ellipsoid
|
|---|
| 52 | /run/beamOn 1
|
|---|
| 53 | /mydet/SelectDetector Tubs
|
|---|
| 54 | /run/beamOn 1
|
|---|
| 55 | /mydet/SelectDetector Cons
|
|---|
| 56 | /run/beamOn 1
|
|---|
| 57 | /mydet/SelectDetector Polycone
|
|---|
| 58 | /run/beamOn 1
|
|---|
| 59 | /mydet/SelectDetector Polyhedra
|
|---|
| 60 | /run/beamOn 1
|
|---|
| 61 | /mydet/SelectDetector Para
|
|---|
| 62 | /run/beamOn 1
|
|---|
| 63 | /mydet/SelectDetector Torus
|
|---|
| 64 | /run/beamOn 1
|
|---|
| 65 | /mydet/SelectDetector Box
|
|---|
| 66 | /run/beamOn 1
|
|---|
| 67 | /mydet/SelectDetector Orb
|
|---|
| 68 | /run/beamOn 1
|
|---|
| 69 | /mydet/SelectDetector EllipticalTube
|
|---|
| 70 | /run/beamOn 1
|
|---|
| 71 | /mydet/SelectDetector EllipticalCone
|
|---|
| 72 | /run/beamOn 1
|
|---|
| 73 | /mydet/SelectDetector Hype
|
|---|
| 74 | /run/beamOn 1
|
|---|
| 75 | /mydet/SelectDetector Trap
|
|---|
| 76 | /run/beamOn 1
|
|---|
| 77 | /mydet/SelectDetector Trd
|
|---|
| 78 | /run/beamOn 1
|
|---|
| 79 | #Infinite Loop
|
|---|
| 80 | #/mydet/SelectDetector Tet
|
|---|
| 81 | #/run/beamOn 1
|
|---|
| 82 | /mydet/SelectDetector GenericTrap
|
|---|
| 83 | /run/beamOn 1
|
|---|
| 84 | /mydet/SelectDetector Paraboloid
|
|---|
| 85 | /run/beamOn 1
|
|---|
| 86 | /mydet/SelectDetector TessellatedSolid
|
|---|
| 87 | /run/beamOn 1
|
|---|
| 88 | /mydet/SelectDetector ExtrudedSolid
|
|---|
| 89 | /run/beamOn 1
|
|---|
| 90 | /mydet/SelectDetector TwistedBox
|
|---|
| 91 | /run/beamOn 1
|
|---|
| 92 | /mydet/SelectDetector TwistedTrd
|
|---|
| 93 | /run/beamOn 1
|
|---|
| 94 | /mydet/SelectDetector TwistedTrap
|
|---|
| 95 | /run/beamOn 1
|
|---|
| 96 | /mydet/SelectDetector TwistedTubs
|
|---|
| 97 | /run/beamOn 1
|
|---|
| 98 | /mydet/SelectDetector b1Ub2
|
|---|
| 99 | /run/beamOn 1
|
|---|
| 100 | /mydet/SelectDetector b1Ib2
|
|---|
| 101 | /run/beamOn 1
|
|---|
| 102 | /mydet/SelectDetector b1Sb2
|
|---|
| 103 | /run/beamOn 1
|
|---|
| 104 |
|
|---|
| 105 |
|
|---|