Back to home page

EIC code displayed by LXR

 
 

    


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/mesh/translate/xyz 0. 0. 0. cm # position boxmesh at the location of "patient"
0024 /score/quantity/energyDeposit eDep
0025 /score/close
0026 /score/list
0027 
0028 /run/initialize
0029 
0030 # Set a very high time threshold to allow all decays to happen
0031 /process/had/rdm/thresholdForVeryLongDecayTime 1.0e+60 year
0032 
0033 # SET OF THE VISUALISATION CHARACTERISTICS
0034 
0035 # Open a viewer
0036 /vis/open
0037 /vis/drawVolume
0038 # This opens the default viewer - see examples/basic/B1/vis.mac for a
0039 # more comprehensive overview of options. Also the documentation.
0040 
0041 /vis/viewer/set/viewpointThetaPhi 80 10 deg
0042 /vis/viewer/zoom 0.7
0043 /vis/viewer/pan -20 0 cm
0044 /vis/scene/add/trajectories
0045 /tracking/storeTrajectory 1
0046 /vis/scene/endOfEventAction accumulate -1
0047 #/vis/viewer/update
0048 #/vis/viewer/set/lightsMove camera
0049 /vis/viewer/flush
0050 
0051 
0052 # /run/setCutForRegion PatientLog 100000 m
0053 /run/setCut 1000000000 mm
0054 
0055 /calorimeter/helmetSize 14
0056 
0057 #/gammaknife/loadAngles MachineAngle.in
0058 #/gammaknife/beamOn 10
0059 
0060 # To change the number of threads in multi-threading mode
0061 #/run/numberOfThreads <nThread>
0062 
0063 /run/beamOn 100
0064 
0065 /score/dumpQuantityToFile boxMesh_1 eDep eDep_scorer.out
0066  
0067 
0068