Geant4 Cross Reference |
1 # Macro file for the visualization setting in 2 # of the B1 example when running in interactiv 3 # 4 5 # Open a viewer 6 /vis/open 7 # This opens the default viewer - see examples 8 # more comprehensive overview of options. Also 9 # 10 # Disable auto refresh and quieten vis message 11 # trajectories are established: 12 /vis/viewer/set/autoRefresh false 13 /vis/verbose errors 14 # 15 # Draw geometry: 16 /vis/drawVolume 17 # 18 # Specify view angle: 19 /vis/viewer/set/viewpointVector -1 0 0 20 /vis/viewer/set/lightsVector -1 5 -30 21 /vis/viewer/zoomTo 1.7 22 # 23 # Specify style (surface, wireframe, auxiliary 24 /vis/viewer/set/style wireframe 25 /vis/viewer/set/auxiliaryEdge true 26 /vis/viewer/set/lineSegmentsPerCircle 100 27 # 28 # Draw smooth trajectories at end of event, sh 29 # as markers 2 pixels wide: 30 /vis/scene/add/trajectories rich #smooth 31 #/vis/modeling/trajectories/create/drawByCharg 32 #/vis/modeling/trajectories/drawByCharge-0/def 33 #/vis/modeling/trajectories/drawByCharge-0/def 34 #/vis/modeling/trajectories/drawByCharge-0/def 35 # (if too many tracks cause core dump => /trac 36 37 /vis/modeling/trajectories/create/drawByPartic 38 39 /vis/modeling/trajectories/drawByParticleID-0/ 40 /vis/modeling/trajectories/drawByParticleID-0/ 41 42 /vis/modeling/trajectories/drawByParticleID-0/ 43 /vis/modeling/trajectories/drawByParticleID-0/ 44 /vis/modeling/trajectories/drawByParticleID-0/ 45 /vis/modeling/trajectories/drawByParticleID-0/ 46 47 /vis/modeling/trajectories/drawByParticleID-0/ 48 /vis/modeling/trajectories/drawByParticleID-0/ 49 /vis/modeling/trajectories/drawByParticleID-0/ 50 /vis/modeling/trajectories/drawByParticleID-0/ 51 /vis/modeling/trajectories/drawByParticleID-0/ 52 /vis/modeling/trajectories/drawByParticleID-0/ 53 54 /vis/modeling/trajectories/drawByParticleID-0/ 55 56 #/vis/modeling/trajectories/select drawByCharg 57 58 # Use to draw just selected types of radicals 59 #/vis/filtering/trajectories/create/particleFi 60 #/vis/filtering/trajectories/particleFilter-0/ 61 #/vis/filtering/trajectories/particleFilter-0/ 62 63 # (if too many tracks cause core dump => /trac 64 # 65 # Draw hits at end of event: 66 #/vis/scene/add/hits 67 # 68 # To draw only gammas: 69 #/vis/filtering/trajectories/create/particleFi 70 #/vis/filtering/trajectories/particleFilter-0/ 71 # 72 # To invert the above, drawing all particles e 73 # keep the above two lines but also add: 74 #/vis/filtering/trajectories/particleFilter-0/ 75 # 76 # Many other options are available with /vis/m 77 # For example, to select colour by particle ID 78 #/vis/modeling/trajectories/create/drawByParti 79 #/vis/modeling/trajectories/drawByParticleID-0 80 # To select or override default colours (note: 81 #/vis/modeling/trajectories/list 82 #/vis/modeling/trajectories/drawByParticleID-0 83 # 84 # To superimpose all of the events from a give 85 /vis/scene/endOfEventAction accumulate 86 # 87 # Decorations 88 # Name 89 /vis/set/textColour green 90 /vis/set/textLayout right 91 # or, if your system does not support right-ad 92 #/vis/scene/add/text2D 0.9 -0.9 12 ! ! chem3 93 /vis/set/textLayout # Revert to normal (lef 94 /vis/set/textColour # Revert to default tex 95 # 96 # Axes, scale, etc. 97 #/vis/scene/add/scale # Simple scale line 98 #/vis/scene/add/eventID # Drawn at end of even 99 #/vis/scene/add/date # Date stamp 100 #/vis/scene/add/logo2D # Simple logo 101 #/vis/scene/add/logo # 3D logo 102 #/vis/scene/add/axes -1 -1 -1 1 micrometer 103 #/vis/scene/add/axes 0 0 0 1 nm # Simple axe 104 # 105 # Frame 106 #/vis/set/colour red 107 #/vis/set/lineWidth 2 108 #/vis/scene/add/frame # Simple frame arond t 109 /vis/set/colour # Revert to default col 110 /vis/set/lineWidth # Revert to default lin 111 # 112 # Attach text to one edge of Shape1, with a sm 113 #/vis/scene/add/text 0 6 -4 cm 18 4 4 Shape1 114 # Attach text to one corner of Shape2, with a 115 #/vis/scene/add/text 6 7 10 cm 18 4 4 Shape2 116 # 117 # To get nice view 118 #/vis/geometry/set/visibility World 0 true #ch 119 #/vis/geometry/set/visibility Envelope 0 false 120 #/vis/viewer/set/style wireframe #surface 121 #/vis/viewer/set/hiddenMarker true 122 #/vis/viewer/set/viewpointThetaPhi 95 170 123 /vis/viewer/set/viewpointThetaPhi -70 0 124 125 # 126 # Re-establish auto refreshing and verbosity: 127 /vis/viewer/set/autoRefresh true 128 /vis/verbose warnings 129 # 130 # For file-based drivers, use this to create a 131 #/vis/viewer/flush 132 133 /vis/set/textLayout centre 134 /vis/scene/add/scale 135 /vis/viewer/set/targetPoint 20 10 0 nm 136 /vis/viewer/set/background white 137