Back to home page

EIC code displayed by LXR

 
 

    


Warning, /geant4/examples/advanced/eFLASH_radiotherapy/vis.mac is written in an unsupported language. File is not indexed.

0001 # Open a viewer
0002 /vis/open
0003 # This opens the default viewer - see examples/basic/B1/vis.mac for a
0004 # more comprehensive overview of options. Also the documentation.
0005 
0006 # Disable auto refresh and quieten vis messages whilst scene and
0007 # trajectories are established:
0008 /vis/viewer/set/autoRefresh false
0009 /vis/verbose errors
0010 #
0011 # Draw geometry:
0012 /vis/drawVolume
0013 #
0014 # Specify view angle:
0015 /vis/viewer/set/viewpointVector -1 0 0
0016 /vis/viewer/set/lightsVector -1 0 0
0017 #
0018 # Specify style (surface, wireframe, auxiliary edges,...)
0019 /vis/viewer/set/style wireframe
0020 /vis/viewer/set/auxiliaryEdge true
0021 /vis/viewer/set/lineSegmentsPerCircle 100
0022 
0023 # Axes, scale, etc.
0024 #/vis/scene/add/scale   # Simple scale line
0025 #/vis/scene/add/axes    # Simple axes: x=red, y=green, z=blue.
0026 /vis/scene/add/trajectories
0027 /vis/scene/endOfEventAction accumulate 50000
0028 
0029 #
0030 /vis/viewer/set/style wireframe
0031 /vis/viewer/set/hiddenMarker true
0032 /vis/viewer/set/viewpointThetaPhi 90
0033 #
0034 # Re-establish auto refreshing and verbosity:
0035 /vis/viewer/set/autoRefresh true
0036 /vis/verbose warnings
0037 /vis/scene/add/trajectories
0038 
0039 ##BEAM
0040 /control/execute 9MeVEF.mac
0041 
0042 
0043 # Scoring mesh is used to calculate
0044 #  the dose in the phantom
0045 
0046 /score/create/boxMesh boxMesh_1
0047 
0048 /score/mesh/boxSize 5 0.05 0.5 cm
0049 /score/mesh/nBin 100 1 1
0050 /score/mesh/translate/xyz 50 0 0 mm 
0051 /score/quantity/doseDeposit dose Gy
0052 
0053 #
0054 /score/close
0055 
0056 #/score/dumpQuantityToFile boxMesh_1 dose dose.out
0057 
0058 ##to visualize the scoring mesh:
0059 
0060 #/score/drawProjection boxMesh_1 dose
0061