EpIC 1.1.0
Monte Carlo generator for exclusive processes
|
Definition of enumeration values for particle types. More...
#include <ParticleCodeType.h>
Public Types | |
enum | Type { UNDEFINED = 0 , UNDECAYED = 1 , DECAYED = 2 , DOCUMENTATION = 3 , BEAM = 4 , SCATTERED = 5 , VIRTUAL = 6 } |
Public Member Functions | |
ParticleCodeType () | |
ParticleCodeType (Type type) | |
ParticleCodeType (const ParticleCodeType &other) | |
operator Type () const | |
std::string | toString () const |
ParticleCodeType::Type | getType () const |
void | setType (Type type) |
Static Public Member Functions | |
static ParticleCodeType::Type | fromString (const std::string &str) |
Definition of enumeration values for particle types.
This class defines a set of enumeration values that are used to distinguish between particle code types. In addition, a declared object of this class is always associated to one type (see ParticleCodeType::m_type), so member functions can act on it.
Definition of enumerate values corresponding to particle code types. According to Table 5 from https://arxiv.org/pdf/1912.08005.pdf
Enumerator | |
---|---|
UNDEFINED | Undefined type. |
UNDECAYED | Undecayed. |
DECAYED | Decayed. |
DOCUMENTATION | Documentation. |
BEAM | Beam. |
SCATTERED | Scattered beam. |
VIRTUAL | Virtual. |
EPIC::ParticleCodeType::ParticleCodeType | ( | ) |
Default constructor.
EPIC::ParticleCodeType::ParticleCodeType | ( | Type | type | ) |
Assignment constructor.
type | Type to be assigned. |
EPIC::ParticleCodeType::ParticleCodeType | ( | const ParticleCodeType & | other | ) |
Copy constructor.
other | Object to be copied. |
|
static |
Get type from string.
String. |
ParticleCodeType::Type EPIC::ParticleCodeType::getType | ( | ) | const |
Get type being assigned to a declared object of this class.
EPIC::ParticleCodeType::operator Type | ( | ) | const |
Automatic cast to enum.
void EPIC::ParticleCodeType::setType | ( | Type | type | ) |
Assign type to a declared object of this class.