12.07.2015 Views

Geant4 User's Guide for Application Developers - Geant4 - CERN

Geant4 User's Guide for Application Developers - Geant4 - CERN

Geant4 User's Guide for Application Developers - Geant4 - CERN

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Visualization• ArgumentA logical-volume name.• ActionCreates a scene consisting of the given logical volume and asks the current viewer to draw it. The scene becomescurrent.• Example (visualization of a selected logical volume with coordinate axes)Idle> /vis/specify AbsorberIdle> /vis/scene/add/axes 0 0 0 500 mmIdle> /vis/scene/add/text 0 0 0 mm 40 -100 -200 LogVol:AbsorberIdle> /vis/viewer/flushFor more options, see the Control...UICommands section of this user guide.8.4.6. Visualization of trajectories: /vis/scene/add/trajectoriescommandCommand "/vis/scene/add/trajectories [smooth] [rich]" adds trajectories to the currentscene. The optional parameters "smooth" and/or "rich" (you may specify either, both or neither) invoke, if "smooth"is specified, the storing and displaying of extra points on curved trajectories and, if "rich" is specified, the storing,<strong>for</strong> possible subsequent selection and display, of additional in<strong>for</strong>mation, such as volume names, creator process,energy deposited, global time. Be aware, of course, that this imposes computational and memory overheads. Notethat this automatically issues the appropriate "/tracking/storeTrajectory" command so that trajectoriesare stored (by default they are not). The visualization is per<strong>for</strong>med with the command "/run/beamOn" unlessyou have non-default values <strong>for</strong> /vis/scene/endOfEventAction or /vis/scene/endOfRunAction (described below).Command: /vis/scene/add/trajectories [smooth] [rich]• ActionThe command adds trajectories to the current scene. Trajectories are drawn at end of event when the scene inwhich they are added is current.• Example: Visualization of trajectoriesIdle> /vis/scene/add/trajectoriesIdle> /run/beamOn 10• Additional note 1See the section Section 8.7.3 Enhanced Trajectory Drawing <strong>for</strong> details on how to control how trajectories arecolor-coded.• Additional note 2Events may be kept and reviewed at end of run withIdle> /vis/reviewKeptEventsKeep all events withIdle> /vis/scene/endOfEventAction accumulate [maxNumber](see Section 8.4.11)or keep some chosen subset with237

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!