PARTONS
|
PARtonic Tomography Of Nucleon Software
|
Definition of enumeration values for meson types. More...
Public Types | |
enum | Type { UNDEFINED = 0 , RHOMINUS = 1 , RHO0 = 2 , RHOPLUS = 3 , OMEGA = 4 , PHI = 5 , JPSI = 6 , UPSILON = 7 , PIMINUS = 8 , PI0 = 9 , PIPLUS = 10 } |
Definition of enumerate values corresponding to meson types. More... | |
Public Member Functions | |
MesonType () | |
Default constructor. More... | |
MesonType (Type type) | |
Assignment constructor. More... | |
MesonType (const MesonType &other) | |
Copy constructor. More... | |
operator Type () const | |
Automatic cast to enum. More... | |
List< GPDType > | getPossibleGPDTypes () const |
Get list of GPD types probed by the meson. More... | |
double | getMass () const |
Get mass associated to set meson type. More... | |
std::string | toString () const |
Get string representation of type being assigned to a declared object of this class. More... | |
void | serialize (ElemUtils::Packet &packet) const |
Serialize into given Packet. More... | |
void | unserialize (ElemUtils::Packet &packet) |
Retrieve data from given Packet. More... | |
bool | operator< (const MesonType &other) const |
Relation operator that checks if the value of left operand is less than the value of right operand (based on values assigned in the definition of MesonType::Type). More... | |
MesonType::Type | getType () const |
Get type being assigned to a declared object of this class. More... | |
void | setType (Type type) |
Assign type to a declared object of this class. More... | |
Static Public Member Functions | |
static MesonType::Type | fromString (const std::string &mesonTypeStr) |
Try to match meson type from given string. More... | |
Private Attributes | |
MesonType::Type | m_type |
Type associated to a declared object of this class. More... | |
Definition of enumeration values for meson types.
This class defines a set of enumeration values that are used to distinguish between meson types. In addition, a declared object of this class is always associated to one meson type (see MesonType::m_type), so member functions can act on it.
PARTONS::MesonType::MesonType | ( | ) |
Default constructor.
PARTONS::MesonType::MesonType | ( | Type | type | ) |
Assignment constructor.
type | Type to be assigned. |
PARTONS::MesonType::MesonType | ( | const MesonType & | other | ) |
Copy constructor.
other | Object to be copied. |
|
static |
Try to match meson type from given string.
mesonTypeStr | String to be matched. |
double PARTONS::MesonType::getMass | ( | ) | const |
Get mass associated to set meson type.
Get list of GPD types probed by the meson.
MesonType::Type PARTONS::MesonType::getType | ( | ) | const |
Get type being assigned to a declared object of this class.
PARTONS::MesonType::operator MesonType::Type | ( | ) | const |
Automatic cast to enum.
bool PARTONS::MesonType::operator< | ( | const MesonType & | other | ) | const |
Relation operator that checks if the value of left operand is less than the value of right operand (based on values assigned in the definition of MesonType::Type).
Used by std::sort function.
other | Right hand value. |
void PARTONS::MesonType::serialize | ( | ElemUtils::Packet & | packet | ) | const |
Serialize into given Packet.
packet | Target Packet. |
void PARTONS::MesonType::setType | ( | Type | type | ) |
Assign type to a declared object of this class.
std::string PARTONS::MesonType::toString | ( | ) | const |
Get string representation of type being assigned to a declared object of this class.
void PARTONS::MesonType::unserialize | ( | ElemUtils::Packet & | packet | ) |
Retrieve data from given Packet.
packet | Input Packet. |
|
private |
Type associated to a declared object of this class.