69 lines
1.7 KiB
Plaintext
69 lines
1.7 KiB
Plaintext
#----------------------------------------------------------------------------
|
|
# DEFAULT MACRO FOR THE
|
|
# GAMMAKNIFE EXAMPLE
|
|
#
|
|
#
|
|
# THIS MACRO SIMPLY PERMIT TO RUN A SIMULATION
|
|
# WITH THE VISUALISATION
|
|
#
|
|
# --------------------------------------------------------------------------------
|
|
|
|
/control/verbose 1
|
|
/tracking/verbose 0
|
|
/run/verbose 1
|
|
/event/verbose 0
|
|
|
|
|
|
/control/execute GPS.in # Defaults for the GeneralParticleSource
|
|
|
|
/score/create/boxMesh boxMesh_1
|
|
/score/mesh/boxSize 22.5 22.5 22.5 mm
|
|
/score/mesh/rotate/rotateX 360 deg # Note: Hack to enable rotation (as of 10.3)
|
|
/score/mesh/nBin 45 45 45
|
|
/score/mesh/translate/xyz 0. 0. 0. cm # position boxmesh at the location of "patient"
|
|
/score/quantity/energyDeposit eDep
|
|
/score/close
|
|
/score/list
|
|
|
|
/run/initialize
|
|
|
|
# Set a very high time threshold to allow all decays to happen
|
|
/process/had/rdm/thresholdForVeryLongDecayTime 1.0e+60 year
|
|
|
|
# SET OF THE VISUALISATION CHARACTERISTICS
|
|
|
|
# Open a viewer
|
|
/vis/open
|
|
/vis/drawVolume
|
|
# This opens the default viewer - see examples/basic/B1/vis.mac for a
|
|
# more comprehensive overview of options. Also the documentation.
|
|
|
|
/vis/viewer/set/viewpointThetaPhi 80 10 deg
|
|
/vis/viewer/zoom 0.7
|
|
/vis/viewer/pan -20 0 cm
|
|
/vis/scene/add/trajectories
|
|
/tracking/storeTrajectory 1
|
|
/vis/scene/endOfEventAction accumulate -1
|
|
#/vis/viewer/update
|
|
#/vis/viewer/set/lightsMove camera
|
|
/vis/viewer/flush
|
|
|
|
|
|
# /run/setCutForRegion PatientLog 100000 m
|
|
/run/setCut 1000000000 mm
|
|
|
|
/calorimeter/helmetSize 14
|
|
|
|
#/gammaknife/loadAngles MachineAngle.in
|
|
#/gammaknife/beamOn 10
|
|
|
|
# To change the number of threads in multi-threading mode
|
|
#/run/numberOfThreads <nThread>
|
|
|
|
/run/beamOn 100
|
|
|
|
/score/dumpQuantityToFile boxMesh_1 eDep eDep_scorer.out
|
|
|
|
|
|
|