Particle
A Particle represents a particle type used in transport calculations. Reserved-particle constructors (Photon, Electron, ...) pre-load the mass and charge from physical constants; the generic Particle(tag, mass, charge) constructor creates a user-defined particle.
Structure
Radiant.Particle — Type
ParticleStructure used to define a Particle and its properties.
Setters
Radiant.set_tag — Method
set_tag(this::Particle,tag::String)Set the particle tag (string identifier).
Input Argument(s)
this::Particle: particle.tag::String: tag.
Getters
Radiant.get_tag — Method
get_tag(this::Particle)Get the particle tag (string identifier).
Input Argument(s)
this::Particle: particle.
Output Argument(s)
tag::String: tag.
Radiant.get_mass — Method
get_mass(this::Particle)Get the mass of the particle [in MeV].
Input Argument(s)
this::Particle: particle.
Output Argument(s)
charge::Float64: particle mass.
Radiant.get_charge — Method
get_charge(this::Particle)Get the charge of the particle.
Input Argument(s)
this::Particle: particle.
Output Argument(s)
charge::Float64: particle charge.
Radiant.get_type — Method
get_type(this::Particle)Get the particle type.
Input Argument(s)
this::Particle: particle.
Output Argument(s)
type::Type: type of particle.
Type Predicates
Radiant.is_photon — Method
is_photon(this::Particle)Determines whether the given particle is a photon.
Input Argument(s)
this::Particle: particle.
Output Argument(s)
is_photon::Bool: is it a photon or not.
Radiant.is_electron — Method
is_electron(this::Particle)Determines whether the given particle is an electron.
Input Argument(s)
this::Particle: particle.
Output Argument(s)
is_electron::Bool: is it an electron or not.
Radiant.is_positron — Method
is_positron(this::Particle)Determines whether the given particle is a positron.
Input Argument(s)
this::Particle: particle.
Output Argument(s)
is_positron::Bool: is it a positron or not.
Radiant.is_proton — Method
is_proton(this::Particle)Determines whether the given particle is a proton.
Input Argument(s)
this::Particle: particle.
Output Argument(s)
is_proton::Bool: is it a proton or not.
Radiant.is_antiproton — Method
is_antiproton(this::Particle)Determines whether the given particle is an antiproton.
Input Argument(s)
this::Particle: particle.
Output Argument(s)
is_antiproton::Bool: is it an antiproton or not.
Radiant.is_alpha — Method
is_alpha(this::Particle)Determines whether the given particle is an alpha particle.
Input Argument(s)
this::Particle: particle.
Output Argument(s)
is_alpha::Bool: is it an alpha particle or not.
Radiant.is_muon — Method
is_muon(this::Particle)Determines whether the given particle is a muon.
Input Argument(s)
this::Particle: particle.
Output Argument(s)
is_muon::Bool: is it a muon or not.
Radiant.is_antimuon — Method
is_antimuon(this::Particle)Determines whether the given particle is an antimuon.
Input Argument(s)
this::Particle: particle.
Output Argument(s)
is_antimuon::Bool: is it a antimuon or not.