OPAL (Object Oriented Parallel Accelerator Library)  2024.1
OPAL
Static Public Member Functions | Static Private Attributes | List of all members
ParticleProperties Class Reference

#include <ParticleProperties.h>

Static Public Member Functions

static ParticleType getParticleType (const std::string &str)
 
static std::string getParticleTypeString (const ParticleType &type)
 
static double getParticleMass (const ParticleType &type)
 
static double getParticleCharge (const ParticleType &type)
 
static double getParticleChargeInCoulomb (const ParticleType &type)
 

Static Private Attributes

static const boost::bimap
< ParticleType, std::string > 
bmParticleType_s
 
static const std::map
< ParticleType, double > 
particleMass_m
 
static const std::map
< ParticleType, double > 
particleCharge_m
 

Detailed Description

Definition at line 51 of file ParticleProperties.h.

Member Function Documentation

double ParticleProperties::getParticleCharge ( const ParticleType type)
static

Definition at line 41 of file ParticleProperties.cpp.

References particleCharge_m.

Referenced by getParticleChargeInCoulomb(), and Beam::update().

double ParticleProperties::getParticleChargeInCoulomb ( const ParticleType type)
static

Definition at line 45 of file ParticleProperties.cpp.

References getParticleCharge(), and Physics::q_e.

Referenced by BeamStrippingPhysics::transformToSecondary().

Here is the call graph for this function:

double ParticleProperties::getParticleMass ( const ParticleType type)
static

Definition at line 37 of file ParticleProperties.cpp.

References particleMass_m.

Referenced by BeamStrippingPhysics::transformToSecondary(), and Beam::update().

ParticleType ParticleProperties::getParticleType ( const std::string &  str)
static

Definition at line 24 of file ParticleProperties.cpp.

References bmParticleType_s, it, and UNNAMED.

Referenced by PartBunchBase< T, Dim >::setPType(), and Beam::update().

std::string ParticleProperties::getParticleTypeString ( const ParticleType type)
static

Member Data Documentation

const boost::bimap< ParticleType, std::string > ParticleProperties::bmParticleType_s
staticprivate
Initial value:
=
boost::assign::list_of<const boost::bimap<ParticleType, std::string>::relation>
(ParticleType::UNNAMED, "UNNAMED")
(ParticleType::ELECTRON, "ELECTRON")
(ParticleType::POSITRON, "POSITRON")
(ParticleType::ANTIPROTON, "ANTIPROTON")
(ParticleType::DEUTERON, "DEUTERON")
(ParticleType::HYDROGEN, "HYDROGEN")
(ParticleType::URANIUM, "URANIUM")

Definition at line 63 of file ParticleProperties.h.

Referenced by getParticleType(), and getParticleTypeString().

const std::map< ParticleType, double > ParticleProperties::particleCharge_m
staticprivate
const std::map< ParticleType, double > ParticleProperties::particleMass_m
staticprivate

The documentation for this class was generated from the following files: