|
PARTONS
|
PARtonic Tomography Of Nucleon Software
|
![]() |
Definition of enumeration values for GPD types. More...
Public Types | |
| enum | Type { UNDEFINED = 0 , ALL = 1 , H = 2 , E = 3 , Ht = 4 , Et = 5 , HTrans = 6 , ETrans = 7 , HtTrans = 8 , EtTrans = 9 , H3p = 10 , E3p = 11 , Ht3p = 12 , Et3p = 13 , H3m = 14 , E3m = 15 , Ht3m = 16 , Et3m = 17 , EbarTrans = 18 , HL = 19 , EL = 20 , END } |
| Definition of enumerate values corresponding to GPD types. More... | |
Public Member Functions | |
| GPDType () | |
| Default constructor. More... | |
| GPDType (Type type) | |
| Assignment constructor. More... | |
| GPDType (const GPDType &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 GPDType &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 GPDType::Type). More... | |
| GPDType::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 GPDType::Type | fromString (const std::string &gpdTypeStr) |
| Try to match GPD type from given string. More... | |
| static List< GPDType > | getListOfGPDTypeFromString (const std::string &gpdTypeListAsString) |
| Try to match list of GPD types from given string. More... | |
Private Attributes | |
| GPDType::Type | m_type |
| Type associated to a declared object of this class. More... | |
Definition of enumeration values for GPD types.
This class defines a set of enumeration values that are used to distinguish between GPD types. In addition, a declared object of this class is always associated to one GPD type (see GPDType::m_type), so member functions can act on it.
Definition of enumerate values corresponding to GPD types.
| PARTONS::GPDType::GPDType | ( | ) |
Default constructor.
| PARTONS::GPDType::GPDType | ( | Type | type | ) |
Assignment constructor.
| type | Type to be assigned. |
| PARTONS::GPDType::GPDType | ( | const GPDType & | other | ) |
Copy constructor.
| other | Object to be copied. |
|
static |
Try to match GPD type from given string.
| gpdTypeStr | String to be matched. |
| GPDType::Type PARTONS::GPDType::getType | ( | ) | const |
Get type being assigned to a declared object of this class.
| PARTONS::GPDType::operator GPDType::Type | ( | ) | const |
Automatic cast to enum.
| bool PARTONS::GPDType::operator< | ( | const GPDType & | 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 GPDType::Type).
Used by std::sort function.
| other | Right hand value. |
| void PARTONS::GPDType::serialize | ( | ElemUtils::Packet & | packet | ) | const |
Serialize into given Packet.
| packet | Target Packet. |
| void PARTONS::GPDType::setType | ( | Type | type | ) |
Assign type to a declared object of this class.
| std::string PARTONS::GPDType::toString | ( | ) | const |
Get string representation of type being assigned to a declared object of this class.
| void PARTONS::GPDType::unserialize | ( | ElemUtils::Packet & | packet | ) |
Retrieve data from given Packet.
| packet | Input Packet. |
|
private |
Type associated to a declared object of this class.