Geant4 Cross Reference |
1 # 1 # 2 # Open a viewer << 2 # create empty scene 3 /vis/open << 3 # 4 # This opens the default viewer - see examples << 4 /vis/scene/create 5 # more comprehensive overview of options. Also << 5 # >> 6 # Create a scene handler for a specific graphics system >> 7 # (Edit the next line(s) to choose another graphic system) >> 8 # >> 9 /vis/open OGL 6 # 10 # 7 # draw scene 11 # draw scene 8 # 12 # 9 /vis/viewer/reset 13 /vis/viewer/reset 10 /vis/viewer/set/viewpointThetaPhi 180. 90. deg 14 /vis/viewer/set/viewpointThetaPhi 180. 90. deg 11 /vis/viewer/zoom 1.4 15 /vis/viewer/zoom 1.4 12 # 16 # 13 # for drawing the tracks 17 # for drawing the tracks 14 # (if too many tracks cause core dump => store 18 # (if too many tracks cause core dump => storeTrajectory 0) 15 /tracking/storeTrajectory 1 19 /tracking/storeTrajectory 1 16 /vis/scene/endOfEventAction accumulate 20 /vis/scene/endOfEventAction accumulate 17 /vis/scene/add/trajectories 21 /vis/scene/add/trajectories 18 /vis/scene/add/hits 22 /vis/scene/add/hits 19 23 20 24 21 /vis/modeling/trajectories/create/drawByPartic 25 /vis/modeling/trajectories/create/drawByParticleID 22 26 23 27 24 /vis/modeling/trajectories/drawByParticleID-0/ 28 /vis/modeling/trajectories/drawByParticleID-0/set XTPhononSlow Red 25 /vis/modeling/trajectories/drawByParticleID-0/ 29 /vis/modeling/trajectories/drawByParticleID-0/set XTPhononFast Green 26 /vis/modeling/trajectories/drawByParticleID-0/ 30 /vis/modeling/trajectories/drawByParticleID-0/set XLPhonon Blue 27 31 28 /run/beamOn 1 32 /run/beamOn 1