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