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