|
PARTONS
|
PARtonic Tomography Of Nucleon Software
|
![]() |
Definition of enumeration values for meson polarization state. More...
Public Types | |
| enum | Type { UNDEFINED = 0 , LIN_LONG_PLUS = 1 , LIN_LONG_MINUS = 2 , LIN_TRANS_X_PLUS = 3 , LIN_TRANS_X_MINUS = 4 , LIN_TRANS_Y_PLUS = 5 , LIN_TRANS_Y_MINUS = 6 , CIR_L = 7 , CIR_R = 8 } |
| Definition of enumerate values corresponding to meson polarization state. More... | |
Public Member Functions | |
| PolarizationType () | |
| Default constructor. More... | |
| PolarizationType (Type type) | |
| Assignment constructor. More... | |
| PolarizationType (const PolarizationType &other) | |
| Copy constructor. More... | |
| operator Type () const | |
| Automatic cast to enum. 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 PolarizationType &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 PolarizationType::Type). More... | |
| PolarizationType::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... | |
| double | pol_vectors_product (PolarizationType::Type Pol1, PolarizationType::Type Pol2) |
| double | pol_projected_on_x (PolarizationType::Type Pol) |
Static Public Member Functions | |
| static PolarizationType::Type | fromString (const std::string &polarizationTypeStr) |
| Try to match meson polarization from given string. More... | |
Private Attributes | |
| PolarizationType::Type | m_type |
| Type associated to a declared object of this class. More... | |
Definition of enumeration values for meson polarization state.
This class defines a set of enumeration values that are used to distinguish between meson polarization state. In addition, a declared object of this class is always associated to one meson type (see PolarizationType::m_type), so member functions can act on it.
Definition of enumerate values corresponding to meson polarization state.
| PARTONS::PolarizationType::PolarizationType | ( | ) |
Default constructor.
| PARTONS::PolarizationType::PolarizationType | ( | Type | type | ) |
Assignment constructor.
| type | Type to be assigned. |
| PARTONS::PolarizationType::PolarizationType | ( | const PolarizationType & | other | ) |
Copy constructor.
| other | Object to be copied. |
|
static |
Try to match meson polarization from given string.
| polarizationTypeStr | String to be matched. |
| PolarizationType::Type PARTONS::PolarizationType::getType | ( | ) | const |
Get type being assigned to a declared object of this class.
| PARTONS::PolarizationType::operator PolarizationType::Type | ( | ) | const |
Automatic cast to enum.
| bool PARTONS::PolarizationType::operator< | ( | const PolarizationType & | 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 PolarizationType::Type).
Used by std::sort function.
| other | Right hand value. |
|
inline |
|
inline |
| void PARTONS::PolarizationType::serialize | ( | ElemUtils::Packet & | packet | ) | const |
Serialize into given Packet.
| packet | Target Packet. |
| void PARTONS::PolarizationType::setType | ( | Type | type | ) |
Assign type to a declared object of this class.
| std::string PARTONS::PolarizationType::toString | ( | ) | const |
Get string representation of type being assigned to a declared object of this class.
| void PARTONS::PolarizationType::unserialize | ( | ElemUtils::Packet & | packet | ) |
Retrieve data from given Packet.
| packet | Input Packet. |
|
private |
Type associated to a declared object of this class.