G4-ExampleB0/auto.mac

51 lines
1.1 KiB
Plaintext

# 多线程设置
/run/numberOfThreads 12
# verbose
/control/verbose 1
/run/verbose 1
/event/verbose 0
/tracking/verbose 0
# 初始化
/run/initialize
# 定义 scoring 网格
/score/create/boxMesh water_box
/score/mesh/boxSize 319. 315. 277.5 mm
/score/mesh/nBin 1 1 555
# 定义需要获取的物理量与过滤器
# 过滤器,本例需要考虑次级粒子
/score/quantity/energyDeposit eDep
/score/quantity/doseDeposit Dose
# /score/filter/particle gammaFilter gamma
/score/close
# 发射粒子
/gun/particle gamma
/gun/energy 1 MeV
/run/beamOn 100000
# 保存数据
/score/dumpQuantityToFile water_box eDep eDep_1.txt
/score/dumpQuantityToFile water_box Dose Dose_1.txt
# 发射粒子
/gun/particle gamma
/gun/energy 5 MeV
/run/beamOn 100000
# 保存数据
/score/dumpQuantityToFile water_box eDep eDep_5.txt
/score/dumpQuantityToFile water_box Dose Dose_5.txt
# 发射粒子
/gun/particle gamma
/gun/energy 10 MeV
/run/beamOn 100000
# 保存数据
/score/dumpQuantityToFile water_box eDep eDep_10.txt
/score/dumpQuantityToFile water_box Dose Dose_10.txt