Warning, /geant4/examples/advanced/microelec_SEY/vis.mac is written in an unsupported language. File is not indexed.
0001 # Use this open statement to create an OpenGL view:
0002 /vis/open OGL 600x400-0+0
0003 #
0004 # Use this open statement to create a .prim file suitable for
0005 # viewing in DAWN:
0006 #/vis/open DAWNFILE
0007 #
0008 # Use this open statement to create a .wrl file suitable for
0009 # viewing in a VRML viewer:
0010 #/vis/open VRML2FILE
0011 #
0012 # Disable auto refresh and quieten vis messages whilst scene and
0013 # trajectories are established:
0014 /vis/viewer/set/autoRefresh false
0015 /vis/verbose errors
0016 #
0017 # Draw geometry:
0018 /vis/drawVolume
0019 #
0020 # Specify view angle:
0021 /vis/viewer/set/viewpointThetaPhi 100. 35.
0022 #
0023 # Specify zoom value:
0024 /vis/viewer/zoom 4.
0025 #
0026 # Specify style (surface or wireframe):
0027 #/vis/viewer/set/style wireframe
0028 #
0029 # Draw coordinate axes:
0030 #/vis/scene/add/axes 0 0 0 1 m
0031 #
0032 # Draw smooth trajectories at end of event, showing trajectory points
0033 # as markers 2 pixels wide:
0034 /vis/scene/add/trajectories smooth
0035 /vis/modeling/trajectories/create/drawByCharge
0036 #/vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
0037 #/vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
0038 # (if too many tracks cause core dump => /tracking/storeTrajectory 0)
0039 #
0040 # Draw hits at end of event:
0041 #/vis/scene/add/hits
0042 #
0043 # To draw only gammas:
0044 #/vis/filtering/trajectories/create/particleFilter
0045 #/vis/filtering/trajectories/particleFilter-0/add gamma
0046 #
0047 # To invert the above, drawing all particles except gammas,
0048 # keep the above two lines but also add:
0049 #/vis/filtering/trajectories/particleFilter-0/invert true
0050 #
0051 # Many other options are available with /vis/modeling and /vis/filtering.
0052 # For example, to select colour by particle ID:
0053 #/vis/modeling/trajectories/create/drawByParticleID
0054 #/vis/modeling/trajectories/drawByParticleID-0/set e- blue
0055 #
0056 # To superimpose all of the events from a given run:
0057 /vis/scene/endOfEventAction accumulate
0058 #
0059 # Re-establish auto refreshing and verbosity:
0060 /vis/viewer/set/autoRefresh true
0061 /vis/verbose warnings
0062 #
0063 # For file-based drivers, use this to create an empty detector view:
0064 #/vis/viewer/flush
0065 /vis/scene/add/scale
0066 /vis/viewer/set/projection p
0067
0068 /vis/geometry/set/colour Target ! 1 0 0
0069 /vis/geometry/set/colour World ! 0.5 0.5 0.9 1