Warning, /tutorials/eventgenerator_display/vis.mac is written in an unsupported language. File is not indexed.
0001 # $Id: vis.mac,v 1.4 2010/04/14 18:32:59 lindenle Exp $
0002 #
0003 # Macro file for the initialization phase of "exampleN03.cc"
0004 # when running in interactive mode
0005 #
0006 # Sets some default verbose
0007 #
0008 /control/verbose 2
0009 /control/saveHistory
0010 /run/verbose 2
0011 #
0012 # create empty scene
0013 #
0014 /vis/scene/create
0015 #
0016 # Create a scene handler for a specific graphics system
0017 # (Edit the next line(s) to choose another graphic system)
0018 #
0019 # Use this open statement to get an .eps and .prim files
0020 # suitable for viewing in DAWN.
0021 ###/vis/open DAWNFILE
0022 #
0023 # Use this open statement instead for OpenGL in immediate mode.
0024 # OGLIX works on the desktops in 1008 while OGLSX terminates
0025 # the X server. I've heard similar stories about OGLIX on other
0026 # machines. You might have to play with it. GEANT prints out a
0027 # list of available graphics systems at some point.
0028 #/vis/open OGLIX
0029 /vis/open OGLIX 1200x900-0+0
0030 # stop redrawing for every command
0031 /vis/viewer/set/autoRefresh false
0032 # increase display limit for more complex detectors
0033 #/vis/ogl/set/displayListLimit 500000
0034 /vis/viewer/set/viewpointThetaPhi 240 -10
0035 #/vis/viewer/set/background white
0036 # our world is 4x4 meters, the detector is about 1m across
0037 # zooming by 4 makes it fill the display
0038 /vis/viewer/zoom 1.5
0039 #
0040 # Use this open statement instead to get a HepRep version 1 file
0041 # suitable for viewing in WIRED.
0042 #/vis/open HepRepFile
0043 #
0044 # Use this open statement instead to get a HepRep version 2 file
0045 # suitable for viewing in WIRED.
0046 #/vis/open HepRepXML
0047 #
0048 # Output an empty detector
0049 /vis/viewer/flush
0050 #
0051 # Draw trajectories at end of event, showing trajectory points as
0052 # markers of size 2 pixels
0053 /vis/scene/add/trajectories smooth
0054 /vis/modeling/trajectories/create/drawByCharge
0055 /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
0056 /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
0057 # (if too many tracks cause core dump => /tracking/storeTrajectory 0)
0058 #
0059 # To draw gammas only
0060 #/vis/filtering/trajectories/create/particleFilter
0061 #/vis/filtering/trajectories/particleFilter-0/add gamma
0062 #
0063 # To draw charged particles only
0064 #/vis/filtering/trajectories/particleFilter-0/invert true
0065 #
0066 # Many other options available with /vis/modeling and /vis/filtering.
0067 # For example, select colour by particle ID
0068 /vis/modeling/trajectories/create/drawByParticleID
0069 /vis/modeling/trajectories/drawByParticleID-0/set e- yellow
0070 /vis/modeling/trajectories/drawByParticleID-0/set pi- blue
0071 /vis/modeling/trajectories/drawByParticleID-0/set pi+ blue
0072 /vis/modeling/trajectories/drawByParticleID-0/set kaon- red
0073 /vis/modeling/trajectories/drawByParticleID-0/set kaon+ red
0074 /vis/modeling/trajectories/drawByParticleID-0/set proton cyan
0075 /vis/modeling/trajectories/drawByParticleID-0/set anti_proton cyan
0076 /vis/modeling/trajectories/drawByParticleID-0/set neutron white
0077 /vis/modeling/trajectories/drawByParticleID-0/set anti_neutron white
0078 /vis/modeling/trajectories/drawByParticleID-0/set gamma green
0079 # remove low energy stuff
0080 #/vis/filtering/trajectories/create/attributeFilter
0081 #/vis/filtering/trajectories/attributeFilter-0/setAttribute IMag
0082 #/vis/filtering/trajectories/attributeFilter-0/addInterval 2 MeV 1000 GeV
0083 # reenable auto refresh
0084 /vis/viewer/set/autoRefresh true
0085 #
0086 # At end of each run, an automatic flush causes graphical output.
0087 #/run/beamOn 1
0088 # When you exit Geant4, you will find a file called scene-0.heprep.zip.
0089 # Unzipping this will give you three separate HepRep files suitable for
0090 # viewing in WIRED.
0091 # The first file will contain just detector geometry.
0092 # The second file will contain the detector plus one event.
0093 # The third file will contain the detector plus ten events.