Geant4 Cross Reference |
1 #Macro for the visualization 2 3 # Open a viewer 4 /vis/open 5 # This opens the default viewer - see examples/basic/B1/vis.mac for a 6 # more comprehensive overview of options. Also the documentation. 7 8 #Draw the scene 9 /vis/viewer/reset 10 /vis/viewer/set/viewpointThetaPhi 135. 45. deg 11 /vis/viewer/zoom 0.5 12 13 #Specify style (surface, wireframe, auxiliary edges,...) 14 /vis/viewer/set/style wireframe 15 /vis/viewer/set/lineSegmentsPerCircle 100 16 17 #Geometry 18 #/vis/geometry/set/lineWidth all 1 3 19 #/vis/geometry/set/colour PhantomLogic 1 0 0 0 20 21 #Decoration 22 #Axes 23 /vis/set/lineWidth 3 24 /vis/scene/add/axes 0 0 0 0.10 m #Simple axes: x=red, y=green, z=blue. 25 #Name 26 #/vis/set/textColour red 27 #/vis/set/textLayout right 28 #/vis/scene/add/text2D 0.9 -.9 24 ! ! saxs 29 #Frame 30 #/vis/set/colour red 31 #/vis/set/lineWidth 2 32 #/vis/scene/add/frame #Simple frame around the view 33 #/vis/set/colour #Revert to default colour (white) 34 #/vis/set/lineWidth #Revert to default line width (1.) 35 36 #Commands for the drawing the tracks 37 /vis/scene/add/eventID #Drawn at end of event 38 /tracking/storeTrajectory 0 #(if too many tracks cause core dumped => storeTrajectory 0) 39 /vis/scene/endOfEventAction accumulate 40 /vis/scene/add/trajectories smooth rich 41 #/vis/modeling/trajectories/create/drawByParticleID 42 /vis/modeling/trajectories/create/drawByCharge 43 /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true 44 /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2 45 46 #Draw hits at end of event: 47 /vis/scene/add/hits 48 49 #Geometry test (it can cause a "core dumped") 50 /geometry/navigator/reset 51 /geometry/test/run