Warning, /geant4/examples/advanced/medical_linac/vis.mac is written in an unsupported language. File is not indexed.
0001 /control/verbose 2
0002 /run/initialize
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 45. 45.
0019 #
0020 # Specify zoom value:
0021 #/vis/viewer/zoom 2.
0022 #
0023 # Specify style (surface or wireframe):
0024 #/vis/viewer/set/style wireframe
0025 #
0026 # Draw coordinate axes:
0027 /vis/scene/add/axes 0 0 0 1 m
0028 #
0029 # Draw smooth trajectories at end of event, showing trajectory points
0030 # as markers 2 pixels wide:
0031 /vis/scene/add/trajectories smooth
0032 /vis/modeling/trajectories/create/drawByCharge
0033 /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
0034 /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
0035 # (if too many tracks cause core dump => /tracking/storeTrajectory 0)
0036 #
0037 # Draw hits at end of event:
0038 /vis/scene/add/hits
0039 #
0040 # To draw only gammas:
0041 #/vis/filtering/trajectories/create/particleFilter
0042 #/vis/filtering/trajectories/particleFilter-0/add gamma
0043 #
0044 # To invert the above, drawing all particles except gammas,
0045 # keep the above two lines but also add:
0046 #/vis/filtering/trajectories/particleFilter-0/invert true
0047 #
0048 # Many other options are available with /vis/modeling and /vis/filtering.
0049 # For example, to select colour by particle ID:
0050 #/vis/modeling/trajectories/create/drawByParticleID
0051 #/vis/modeling/trajectories/drawByParticleID-0/set e- blue
0052 #
0053 # To superimpose all of the events from a given run:
0054 /vis/scene/endOfEventAction accumulate 1000
0055 #
0056 # Re-establish auto refreshing and verbosity:
0057 /vis/viewer/set/autoRefresh true
0058 /vis/verbose warnings
0059 #
0060 # For file-based drivers, use this to create an empty detector view:
0061 #/vis/viewer/flush
0062
0063 /accelerator/rotation90Y false
0064 /phantom/centre 0 0 0 # phantom centre coordinates in the world [mm]
0065
0066 /accelerator/rotationX 0 deg # angles of rotation along X [deg]
0067 /run/beamOn 1000
0068
0069 /phantom/centre 0 0 200 # phantom centre coordinates in the world [mm]
0070 /accelerator/rotationX 45 deg # angles of rotation along X [deg]
0071 /run/beamOn 1000
0072
0073
0074 /accelerator/rotation90Y true
0075 /phantom/centre 0 0 0 # phantom centre coordinates in the world [mm]
0076
0077 /accelerator/rotationX 0 deg # angles of rotation along X [deg]
0078 /run/beamOn 1000
0079
0080 /phantom/centre 0 0 0 # phantom centre coordinates in the world [mm]
0081 /accelerator/rotationX 45 deg # angles of rotation along X [deg]
0082 /run/beamOn 1000
0083
0084
0085 # all the physical volumes names:
0086 # acceleratorBox
0087 # targetA
0088 # targetB
0089 # BeWTubePV
0090 # ionizationChamberTubeW1PV
0091 # ionizationChamberTubeP1PV
0092 # ionizationChamberTubeW2PV
0093 # ionizationChamberTubeP2PV
0094 # ionizationChamberTubeW3PV
0095 # ionizationChamberTubeP3PV
0096 # FFL1A_1PV
0097 # FFL2_1PV
0098 # MirrorTubePV
0099 # UpperCollimator
0100 # CylMinusCone
0101 # leafA0
0102 # leafA1
0103 # leafA2
0104 # leafA3
0105 # leafA4
0106 # leafA5
0107 # leafA6
0108 # leafA7
0109 # leafA8
0110 # leafA9
0111 # leafB0
0112 # leafB1
0113 # leafB2
0114 # leafB3
0115 # leafB4
0116 # leafB5
0117 # leafB6
0118 # leafB7
0119 # leafB8
0120 # leafB9
0121 # Jaws1XPV
0122 # Jaws2XPV
0123 # Jaws1YPV
0124 # Jaws2YPV
0125 # killerPlaneKPV
0126
0127 # phmWorldPV
0128 # BoxInsidePV
0129 # boxPMMAPV
0130 # OutMinusInBoxPV
0131