Warning, /geant4/examples/advanced/stim_pixe_tomography/vis.mac is written in an unsupported language. File is not indexed.
0001 # Macro file for the visualization setting for the initialization phase
0002 #
0003
0004 # Open a viewer
0005 /vis/open
0006 # This opens the default viewer - see examples/basic/B1/vis.mac for a
0007 # more comprehensive overview of options. Also the documentation.
0008 #
0009 # Disable auto refresh and quieten vis messages whilst scene and
0010 # trajectories are established:
0011 /vis/viewer/set/autoRefresh false
0012 /vis/verbose errors
0013 #
0014 # Draw geometry:
0015 /vis/drawVolume
0016 #
0017 # Specify view angle:
0018 #/vis/viewer/set/viewpointThetaPhi 90. 180.
0019 /vis/viewer/set/viewpointVector 0 -1 0
0020 /vis/viewer/set/upVector 0 0 1
0021 #
0022 # Specify zoom value:
0023 /vis/viewer/zoom 1.2
0024 #
0025 # Specify style (surface, wireframe, auxiliary edges,...)
0026 /vis/viewer/set/style wireframe
0027 #/vis/viewer/set/style surface
0028 #/vis/viewer/set/auxiliaryEdge true
0029 #/vis/viewer/set/lineSegmentsPerCircle 100
0030 #
0031 # Draw coordinate axes:
0032 /vis/scene/add/axes 0 0 0 100 um
0033 #
0034 # Draw smooth trajectories at end of event, showing trajectory points
0035 # as markers 2 pixels wide:
0036 /vis/scene/add/trajectories smooth
0037 /vis/modeling/trajectories/create/drawByCharge
0038 # set the green for e- particles
0039 #/vis/modeling/trajectories/drawByCharge-0/set -1 green
0040 ##################################################################################
0041 #/vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
0042 #/vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 5
0043 #/vis/modeling/trajectories/drawByCharge-0/default/setDrawAuxPts true
0044 #/vis/modeling/trajectories/drawByCharge-0/default/setAuxPtsSize 5
0045 #/vis/modeling/trajectories/drawByCharge-0/default/setTimeSliceInterval 0.1 ns
0046 #/vis/modeling/trajectories/list
0047 ####################################################################################
0048 #/vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
0049 #/vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
0050 # (if too many tracks cause core dump => /tracking/storeTrajectory 0)
0051 #
0052 # Draw hits at end of event:
0053 /vis/scene/add/hits
0054 #
0055 # To draw only gammas:
0056 #/vis/filtering/trajectories/create/particleFilter
0057 #/vis/filtering/trajectories/particleFilter-0/add gamma
0058 #
0059 # To invert the above, drawing all particles except gammas,
0060 # keep the above two lines but also add:
0061 #/vis/filtering/trajectories/particleFilter-0/invert true
0062 #
0063 # Many other options are available with /vis/modeling and /vis/filtering.
0064 # For example, to select colour by particle ID:
0065 #/vis/modeling/trajectories/create/drawByParticleID
0066 #/vis/modeling/trajectories/drawByParticleID-0/default/setDrawStepPts true
0067 # To select or override default colours (note: e+ is blue by default):
0068 #/vis/modeling/trajectories/list
0069 #/vis/modeling/trajectories/create/drawByParticleID
0070 #/vis/modeling/trajectories/drawByParticleID-0/set gamma yellow
0071 #
0072 # To superimpose all of the events from a given run:
0073 /vis/scene/endOfEventAction accumulate
0074 #
0075 # Re-establish auto refreshing and verbosity:
0076 /vis/viewer/set/autoRefresh true
0077 /vis/verbose warnings
0078 #
0079 # set the color of background
0080 #/vis/viewer/set/background white
0081 # set the color of background grey
0082 #/vis/viewer/set/background 0.5 0.5 0.5 1.0
0083 #
0084 # For file-based drivers, use this to create an empty detector view:
0085 #/vis/viewer/flush
0086 # if one wants to visualize the particles, uncomment the following lines:
0087 /gps/energy 3 MeV
0088 /gps/particle proton
0089 /gps/direction 1.0 0.0 0
0090 /gps/pos/centre -50 0 0 um
0091 /run/beamOn 50