G4-ExampleB0/auto.mac

33 lines
689 B
Plaintext

# 多线程设置
/run/numberOfThreads 4
# verbose
/control/verbose 2
/run/verbose 2
/event/verbose 2
/tracking/verbose 2
# 初始化
/run/initialize
# 定义 scoring 网格
/score/create/boxMesh water_box
/score/mesh/boxSize 638. 630. 555. mm
/score/mesh/nBin 50 50 40
# 定义需要获取的物理量与过滤器
/score/quantity/energyDesposit eDep
/score/quantity/doseDesposit Dose
# 过滤器,本例需要考虑次级粒子,不需要
# /score/filter/particle gammaFilter gamma
/score/close
# 发射粒子
/gun/particle gamma
/gun/energy 1 MeV
/run/beamOn 1000
# 保存数据
/score/dumpQuantityToFile water_box eDep eDep.txt
/score/dumpQuantityToFile water_box Dose Dose.txt