Warning, /geant4/examples/extended/hadronic/Hadr06/vis.mac is written in an unsupported language. File is not indexed.
0001 #
0002 # Macro file for the initialization phase of "TestEm6.cc"
0003 #
0004 # Sets some default verbose
0005 # and initializes the graphic.
0006 #
0007 /control/verbose 2
0008 /run/verbose 2
0009 #
0010 /run/initialize
0011 #
0012 # Open a viewer
0013 /vis/open
0014 # This opens the default viewer - see examples/basic/B1/vis.mac for a
0015 # more comprehensive overview of options. Also the documentation.
0016 #
0017 # Disable auto refresh and quieten vis messages whilst scene and
0018 # trajectories are established:
0019 /vis/viewer/set/autoRefresh false
0020 /vis/verbose errors
0021 #
0022 # Draw geometry:
0023 /vis/drawVolume
0024 #
0025 # Specify view angle:
0026 #/vis/viewer/set/viewpointThetaPhi 90. 0.
0027 #
0028 # Specify zoom value:
0029 /vis/viewer/zoom 1.4
0030 #
0031 # Specify style (surface or wireframe):
0032 /vis/viewer/set/style surface
0033 # To get nice view
0034 /vis/geometry/set/visibility World 0 false
0035 #
0036 # Draw coordinate axes:
0037 #/vis/scene/add/axes 0 0 0 1 m
0038 #
0039 # Draw smooth trajectories at end of event, showing trajectory points
0040 # as markers 2 pixels wide:
0041 /vis/scene/add/trajectories smooth
0042 /vis/modeling/trajectories/create/drawByCharge
0043 /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts false
0044 /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 1
0045 # (if too many tracks cause core dump => /tracking/storeTrajectory 0)
0046 #
0047 # Draw hits at end of event:
0048 #/vis/scene/add/hits
0049 #
0050 # To draw only gammas:
0051 #/vis/filtering/trajectories/create/particleFilter
0052 #/vis/filtering/trajectories/particleFilter-0/add gamma
0053 #
0054 # To invert the above, drawing all particles except gammas,
0055 # keep the above two lines but also add:
0056 #/vis/filtering/trajectories/particleFilter-0/invert true
0057 #
0058 # Many other options are available with /vis/modeling and /vis/filtering.
0059 # For example, to select colour by particle ID:
0060 /vis/modeling/trajectories/create/drawByParticleID
0061 /vis/modeling/trajectories/drawByParticleID-0/set e- red
0062 /vis/modeling/trajectories/drawByParticleID-0/set gamma green
0063 /vis/modeling/trajectories/drawByParticleID-0/set neutron yellow
0064 /vis/modeling/trajectories/drawByParticleID-0/set alpha blue
0065 /vis/modeling/trajectories/drawByParticleID-0/set GenericIon blue
0066 #
0067 # To superimpose all of the events from a given run:
0068 /vis/scene/endOfEventAction accumulate
0069 #
0070 # Re-establish auto refreshing and verbosity:
0071 /vis/viewer/set/autoRefresh true
0072 /vis/verbose warnings
0073 #
0074 # For file-based drivers, use this to create an empty detector view:
0075 #/vis/viewer/flush