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