|
OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
|
#include <ParticleProperties.h>
Static Public Member Functions | |
| static ParticleType | getParticleType (std::string_view str) noexcept |
| static std::string | getParticleTypeString (const ParticleType &type) noexcept |
| static double | getParticleMass (const ParticleType &type) |
| static double | getParticleCharge (const ParticleType &type) |
| static double | getParticleChargeInCoulomb (const ParticleType &type) |
Static Private Attributes | |
| static const std::array< std::pair< ParticleType, std::string_view >, 15 > | particleTypeMap |
| static const std::map< ParticleType, double > | particleMass_m |
| static const std::map< ParticleType, double > | particleCharge_m |
Definition at line 50 of file ParticleProperties.h.
|
static |
Definition at line 34 of file ParticleProperties.cpp.
References particleCharge_m.
Referenced by getParticleChargeInCoulomb(), and Beam::update().
|
static |
Definition at line 38 of file ParticleProperties.cpp.
References getParticleCharge(), and Physics::q_e.
Referenced by BeamStrippingPhysics::transformToSecondary().

|
static |
Definition at line 30 of file ParticleProperties.cpp.
References particleMass_m.
Referenced by BeamStrippingPhysics::transformToSecondary(), and Beam::update().
|
staticnoexcept |
Definition at line 22 of file ParticleProperties.cpp.
References Util::stringToEnum(), and UNNAMED.
Referenced by PartBunchBase< T, Dim >::setPType(), and Beam::update().

|
staticnoexcept |
Definition at line 26 of file ParticleProperties.cpp.
References Util::enumToString().
Referenced by BeamStrippingPhysics::apply(), ScatteringPhysics::apply(), and BeamStrippingPhysics::transformToSecondary().

|
staticprivate |
Definition at line 78 of file ParticleProperties.h.
Referenced by getParticleCharge().
|
staticprivate |
Definition at line 61 of file ParticleProperties.h.
Referenced by getParticleMass().
|
staticprivate |
Definition at line 43 of file ParticleProperties.h.