Warning, /geant4/examples/advanced/STCyclotron/Macro/Vis/vis.mac is written in an unsupported language. File is not indexed.
0001 # Macro file for the visualization setting in the initialization phase
0002 # of the example when running in interactive mode
0003 #
0004 #/vis/disable
0005 # Open a viewer
0006 /vis/open
0007 # This opens the default viewer - see examples/basic/B1/vis.mac for a
0008 # more comprehensive overview of options. Also the documentation.
0009 #
0010 # Disable auto refresh and quieten vis messages whilst scene and
0011 # trajectories are established:
0012 /vis/viewer/set/autoRefresh false
0013 /vis/verbose 1
0014 #
0015 # Draw geometry:
0016 /vis/drawVolume
0017 #
0018 # Specify view angle:
0019 /vis/viewer/set/viewpointVector -1 0 0
0020 /vis/viewer/set/lightsVector -1 0 0
0021 #zoom the whole target part
0022 #/vis/viewer/set/targetPoint 0 0 0.1 m
0023 #/vis/viewer/zoomTo 10
0024 #zoom just the target element
0025 /vis/viewer/set/targetPoint 0 0 0 mm
0026 /vis/viewer/zoomTo 1
0027 #
0028 #
0029 # Specify style (surface, wireframe, auxiliary edges,...)
0030 /vis/viewer/set/style surface
0031 #/vis/viewer/set/auxiliaryEdge true
0032 #/vis/viewer/set/lineSegmentsPerCircle 500
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 /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
0039 /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
0040 # (if too many tracks cause core dump => /tracking/storeTrajectory 0)
0041 #
0042 # Draw hits at end of event:
0043 /vis/scene/add/hits
0044 #
0045 # Many other options are available with /vis/modeling and /vis/filtering.
0046 # For example, to select colour by particle ID:
0047 /vis/modeling/trajectories/create/drawByParticleID
0048 /vis/modeling/trajectories/drawByParticleID-0/default/setDrawStepPts true
0049 # To select or override default colours (note: e+ is blue by default):
0050 /vis/modeling/trajectories/list
0051 /vis/modeling/trajectories/drawByParticleID-0/set e+ yellow
0052 #
0053 # To superimpose all of the events from a given run:
0054 #/vis/scene/endOfEventAction accumulate
0055 #
0056 # Decorations
0057 # Name
0058 /vis/set/textColour green
0059 /vis/set/textLayout right
0060 /vis/scene/add/text2D 0.9 -.9 24 ! ! sahmri_Simulation
0061 #/vis/scene/add/axes 0 0 0 186.14 mm
0062 #
0063 #
0064 # Set geometry attributes
0065 /vis/geometry/set/visibility World 0 0
0066 /vis/geometry/set/colour Layer_PART1 0 1. 0.1 0.5 0.3 #Al
0067 /vis/geometry/set/colour Layer_PART2 0 1. 0.1 0.5 0.3 #Al
0068 /vis/geometry/set/colour Layer_PART3 0 1. 0.2 0.4 0.3 #Al
0069 /vis/geometry/set/colour Layer_PART4 0 0. 0.2 0.7 0.3 #Al
0070 /vis/geometry/set/colour Layer1_PART4 0 1. 0. 0. 0.3 #Pt
0071 /vis/geometry/set/colour Layer1_PART5 0 0. 0.2 0.7 0.3 #Pt
0072 /vis/geometry/set/colour Layer2_PART5 0 1. 0. 0. 0.3 #Al
0073 /vis/geometry/set/colour Layer3_PART5 0 1. 0. 0. 0.3 #Al
0074 /vis/geometry/set/colour Foil 0 1. 0.8 0.4 0.3 #foil
0075 /vis/geometry/set/colour Target 0 0.1 0.8 0.4 0.6 #target
0076 /vis/geometry/set/colour Tube_PART1 0 1. 1. 0. 0.3 #beam
0077 /vis/geometry/set/colour Tube_PART2 0 1. 1. 0. 0.3 #beam
0078 /vis/geometry/set/colour Tube_PART3 0 1. 1. 0. 0.3 #beam
0079 /vis/geometry/set/colour Tube_PART4 0 1. 1. 0. 0.3 #beam
0080 /vis/geometry/set/colour Grid 0 0.1 0.5 1. 0.9 #Al
0081 #
0082 #/run/verbose 0
0083 #/tracking/verbose 1
0084 #/control/verbose 0
0085
0086 # Re-establish auto refreshing and verbosity:
0087 /vis/viewer/set/autoRefresh true
0088 /vis/verbose warnings
0089 #
0090 # For file-based drivers, use this to create an empty detector view:
0091 #/vis/viewer/flush