/gun/

Particle Gun control commands.


Sub-directories :


Commands :


List

List available particles.
Invoke G4ParticleTable.

Available at all Geant4 states.


particle [particleName]

Set particle to be generated.
(geantino is default)
(ion can be specified for shooting ions)

Available at all Geant4 states.

Parameters
particleName type s Omittable : default value = geantino Parameter candidates : B+ B- B0 Bs0 D+ D- D0 Ds+ Ds- J/psi anti_B0 anti_Bs0 anti_D0 anti_kaon0 anti_lambda anti_lambda_c+ anti_neutron anti_nu_e anti_nu_mu anti_nu_tau anti_omega- anti_omega_c0 anti_proton anti_sigma+ anti_sigma- anti_sigma0 anti_sigma_c+ anti_sigma_c++ anti_sigma_c0 anti_xi- anti_xi0 anti_xi_c+ anti_xi_c0 chargedgeantino e+ e- eta gamma geantino kaon+ kaon- kaon0 kaon0L kaon0S lambda lambda_c+ mu+ mu- neutron nu_e nu_mu nu_tau omega- omega_c0 opticalphoton pi+ pi- pi0 proton sigma+ sigma- sigma0 sigma_c+ sigma_c++ sigma_c0 tau+ tau- xi- xi0 xi_c+ xi_c0 ion


direction [Px] [Py] [Pz]

Set momentum direction.
Direction needs not to be a unit vector.

Range : Px != 0 || Py != 0 || Pz != 0

Available at all Geant4 states.

Parameters
Px type d Omittable : current value is used as the default value.
Py type d Omittable : current value is used as the default value.
Pz type d Omittable : current value is used as the default value.


energy [Energy] [Unit]

Set kinetic energy.

Available at all Geant4 states.

Parameters
Energy type d Omittable : current value is used as the default value.
Unit type s Omittable : default value = GeV Parameter candidates : eV keV MeV GeV TeV PeV J electronvolt kiloelectronvolt megaelectronvolt gigaelectronvolt teraelectronvolt petaelectronvolt joule


position [X] [Y] [Z] [Unit]

Set starting position of the particle.

Available at all Geant4 states.

Parameters
X type d Omittable : current value is used as the default value.
Y type d Omittable : current value is used as the default value.
Z type d Omittable : current value is used as the default value.
Unit type s Omittable : default value = cm Parameter candidates : pc km m cm mm um nm Ang fm parsec kilometer meter centimeter millimeter micrometer nanometer angstrom fermi


time [t0] [Unit]

Set initial time of the particle.

Available at all Geant4 states.

Parameters
t0 type d Omittable : current value is used as the default value.
Unit type s Omittable : default value = ns Parameter candidates : s ms mus ns ps second millisecond microsecond nanosecond picosecond


polarization [Px] [Py] [Pz]

Set polarization.

Range : Px>=-1.&&Px<=1.&&Py>=-1.&&Py<=1.&&Pz>=-1.&&Pz<=1.

Available at all Geant4 states.

Parameters
Px type d Omittable : current value is used as the default value.
Py type d Omittable : current value is used as the default value.
Pz type d Omittable : current value is used as the default value.


number [N]

Set number of particles to be generated.

Range : N>0

Available at all Geant4 states.

Parameters
N type i Omittable : current value is used as the default value.


ion [Z] [A] [Q] [E]

Set properties of ion to be generated.
[usage] /gun/ion Z A Q
Z:(int) AtomicNumber
A:(int) AtomicMass
Q:(int) Charge of Ion (in unit of e)
E:(double) Excitation energy (in keV)

Available at all Geant4 states.

Parameters
Z type i
A type i
Q type i Omittable : default value = 0
E type d Omittable : default value = 0.0