文章目录
一、G4GeneralParticleSource配置方式
- 从/gps命令树输入命令
- 在g4macro文件中包含/gps命令
二、G4ParticleGun的等价命令
表2.2: G4ParticleGun equivalent commands
Command | Arguments | Description and restrictions |
---|---|---|
/gps/List | List available incident particles 列出可用的事件粒子 | |
/gps/particle | name | Defines the particle type [default geantino], using GEANT4 naming convention. 使用GEANT4 命名约定定义粒子类型[默认geantin]。 |
/gps/direction | Px Py Pz | Set the momentum direction [default (1,0,0)] of generated particles using (2.1) 设置生成粒子的动量方向 |
/gps/energy | E unit | Sets the energy [default 1 MeV] for mono-energetic sources. The units can be eV, keV, MeV,GeV, TeV or PeV. (NB: it is recommended to use /gps/ene/mono instead.) 为单能源设置能量[默认1 MeV] |
/gps/position | X Y Z | unit Sets the centre co-ordinates (X,Y,Z) of the source [default (0,0,0) cm]. The units can be micron, mm, cm, m or km. (NB: it is recommended to use /gps/pos/centre instead.) 设置源的中心坐标[默认(0,0,0)cm] |
/gps/ion | Z A Q E | After /gps/particle ion, sets the properties (atomic number Z, atomic mass A, ionic charge Q, excitation energy E in keV) of the ion. |
/gps/ionLvl | Z A Q lvl | After /gps/particle ion, sets the properties (atomic number Z, atomic mass A, ionic chargeQ, Number of metastable state excitation level (0-9) of the ion. / gps /粒子离子后,设定离子的性质(原子序数Z,原子质量A,离子电荷Q,亚稳状态激发能级数(0-9))。 |
/gps/time | t0 unit | Sets the primary particle (event) time [default 0 ns]. The units can be ps, ns, us, ms, or s.设置主要粒子(事件)时间[默认0 纳秒] |
/gps/polarization | Px Py Pz | Sets the polarization vector of the source, which does not need to be a unit vector. 设置源的偏振矢量,该矢量不需要是单位矢量。 |
/gps/number | N | Sets the number of particles [default 1] to simulate on each event. |
/gps/verbose | level | Control the amount of information printed out by the GPS code. Larger values produce more detailed output. 控制GPS 代码打印的信息量。较大的值会产生更详细的输出. |
/gps/polarization | Px Py Pz | Sets the polarization vector of the source, which does not need to be a unit vector. 设置源的偏振矢量,该矢量不需要是单 |