PARTONS
|
PARtonic Tomography Of Nucleon Software
|
Definition of units. More...
Public Types | |
enum | Type { UNDEFINED = 0 , NONE = 1 , EV = 2 , KEV = 3 , MEV = 4 , GEV = 5 , TEV = 6 , EV2 = 7 , KEV2 = 8 , MEV2 = 9 , GEV2 = 10 , TEV2 = 11 , EVm1 = 12 , KEVm1 = 13 , MEVm1 = 14 , GEVm1 = 15 , TEVm1 = 16 , FM = 17 , PM = 18 , NM = 19 , UM = 20 , MM = 21 , M = 22 , FS = 23 , PS = 24 , NS = 25 , US = 26 , MS = 27 , S = 28 , GEVm2 = 29 , FM2 = 30 , FB = 31 , PB = 32 , NB = 33 , UB = 34 , MB = 35 , B = 36 , DEG = 37 , RAD = 38 , MRAD = 39 } |
Enum types. More... | |
Public Member Functions | |
PhysicalUnit () | |
Default constructor. More... | |
PhysicalUnit (Type type) | |
Assignment constructor. More... | |
PhysicalUnit (const std::string &type) | |
Assignment constructor. More... | |
PhysicalUnit (const PhysicalUnit &other) | |
Copy constructor. More... | |
operator Type () const | |
Automatic cast to enum. More... | |
std::string | toString () const |
Get string representing class content. More... | |
std::string | getShortName () |
Get short string representing PhysicalUnit::m_type. More... | |
void | serialize (ElemUtils::Packet &packet) const |
Serialize into given Packet. More... | |
void | unserialize (ElemUtils::Packet &packet) |
Retrieve data from given Packet. More... | |
UnitCategory::Type | getUnitCategory () const |
Get unit category. More... | |
double | getConversionFactor () const |
Get conversion factor. More... | |
PhysicalUnit::Type | getType () const |
Get PhysicalUnit::m_type. More... | |
void | setType (Type type) |
Set PhysicalUnit::m_type. More... | |
Private Attributes | |
PhysicalUnit::Type | m_type |
Type. More... | |
Definition of units.
Enum types.
PARTONS::PhysicalUnit::PhysicalUnit | ( | ) |
Default constructor.
PARTONS::PhysicalUnit::PhysicalUnit | ( | Type | type | ) |
Assignment constructor.
type | Type to be assigned. |
PARTONS::PhysicalUnit::PhysicalUnit | ( | const std::string & | type | ) |
Assignment constructor.
type | Type to be assigned. |
PARTONS::PhysicalUnit::PhysicalUnit | ( | const PhysicalUnit & | other | ) |
Copy constructor.
other | Object to be copied. |
double PARTONS::PhysicalUnit::getConversionFactor | ( | ) | const |
Get conversion factor.
std::string PARTONS::PhysicalUnit::getShortName | ( | ) |
Get short string representing PhysicalUnit::m_type.
PhysicalUnit::Type PARTONS::PhysicalUnit::getType | ( | ) | const |
Get PhysicalUnit::m_type.
UnitCategory::Type PARTONS::PhysicalUnit::getUnitCategory | ( | ) | const |
Get unit category.
PARTONS::PhysicalUnit::operator PhysicalUnit::Type | ( | ) | const |
Automatic cast to enum.
void PARTONS::PhysicalUnit::serialize | ( | ElemUtils::Packet & | packet | ) | const |
Serialize into given Packet.
packet | Target Packet. |
void PARTONS::PhysicalUnit::setType | ( | Type | type | ) |
Set PhysicalUnit::m_type.
std::string PARTONS::PhysicalUnit::toString | ( | ) | const |
Get string representing class content.
void PARTONS::PhysicalUnit::unserialize | ( | ElemUtils::Packet & | packet | ) |
Retrieve data from given Packet.
packet | Input Packet. |
|
private |
Type.