Warning, /geant4/examples/advanced/gammaknife/defaultMacro.mac is written in an unsupported language. File is not indexed.
0001 #----------------------------------------------------------------------------
0002 # DEFAULT MACRO FOR THE
0003 # GAMMAKNIFE EXAMPLE
0004 #
0005 #
0006 # THIS MACRO SIMPLY PERMIT TO RUN A SIMULATION
0007 # WITH THE VISUALISATION
0008 #
0009 # --------------------------------------------------------------------------------
0010
0011 /control/verbose 1
0012 /tracking/verbose 0
0013 /run/verbose 1
0014 /event/verbose 0
0015
0016
0017 /control/execute GPS.in # Defaults for the GeneralParticleSource
0018
0019 /score/create/boxMesh boxMesh_1
0020 /score/mesh/boxSize 22.5 22.5 22.5 mm
0021 /score/mesh/rotate/rotateX 360 deg # Note: Hack to enable rotation (as of 10.3)
0022 /score/mesh/nBin 45 45 45
0023 /score/quantity/energyDeposit eDep
0024 /score/close
0025 /score/list
0026
0027 /run/initialize
0028
0029 # Set a very high time threshold to allow all decays to happen
0030 /process/had/rdm/thresholdForVeryLongDecayTime 1.0e+60 year
0031
0032 # SET OF THE VISUALISATION CHARACTERISTICS
0033
0034 # Open a viewer
0035 /vis/open
0036 # This opens the default viewer - see examples/basic/B1/vis.mac for a
0037 # more comprehensive overview of options. Also the documentation.
0038
0039 /vis/viewer/set/viewpointThetaPhi 80 10 deg
0040 /vis/viewer/zoom 0.7
0041 /vis/viewer/pan -20 0 cm
0042 /vis/scene/add/trajectories
0043 /tracking/storeTrajectory 1
0044 /vis/scene/endOfEventAction accumulate -1
0045 #/vis/viewer/update
0046 #/vis/viewer/set/lightsMove camera
0047 /vis/viewer/flush
0048
0049
0050 # /run/setCutForRegion PatientLog 100000 m
0051 /run/setCut 1000000000 mm
0052
0053 /calorimeter/helmetSize 14
0054
0055 #/gammaknife/loadAngles MachineAngle.in
0056 #/gammaknife/beamOn 10
0057
0058 # To change the number of threads in multi-threading mode
0059 #/run/numberOfThreads <nThread>
0060
0061 /run/beamOn 100
0062
0063 /score/dumpQuantityToFile boxMesh_1 eDep eDep_scorer.out
0064
0065
0066