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