PARTONS
|
PARtonic Tomography Of Nucleon Software
|
Definition of enumeration values for channels. More...
Public Types | |
enum | Type { UNDEFINED = 0 , DVCS = 1 , DVMP = 2 , TCS = 3 , GAM2 = 4 , DDVCS = 5 } |
Definition of enumerate values corresponding to channels. More... | |
Public Member Functions | |
ChannelType () | |
Default constructor. More... | |
ChannelType (Type type) | |
Assignment constructor. More... | |
virtual | ~ChannelType () |
Destructor. 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... | |
std::string | getShortName () |
Get short name representation of type being assigned to a declared object of this class. More... | |
ChannelType::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... | |
Private Attributes | |
ChannelType::Type | m_type |
Type associated to a declared object of this class. More... | |
Definition of enumeration values for channels.
This class defines a set of enumeration values that are used to distinguish between channels. In addition, a declared object of this class is always associated to one channel (see ChannelType::m_type), so member functions can act on it. E.g.
which gives via Logger:
Definition of enumerate values corresponding to channels.
Enumerator | |
---|---|
UNDEFINED | Undefined type. |
DVCS | Deeply Virtual Compton Scattering. |
DVMP | Deeply Virtual Meson Production. |
TCS | Time-like Compton Scattering. |
GAM2 | Two photons production. |
DDVCS | Double Deeply Virtual Compton Scattering. |
PARTONS::ChannelType::ChannelType | ( | ) |
Default constructor.
PARTONS::ChannelType::ChannelType | ( | Type | type | ) |
Assignment constructor.
type | Type to be assigned. |
|
virtual |
Destructor.
std::string PARTONS::ChannelType::getShortName | ( | ) |
Get short name representation of type being assigned to a declared object of this class.
ChannelType::Type PARTONS::ChannelType::getType | ( | ) | const |
Get type being assigned to a declared object of this class.
PARTONS::ChannelType::operator ChannelType::Type | ( | ) | const |
Automatic cast to enum.
void PARTONS::ChannelType::setType | ( | Type | type | ) |
Assign type to a declared object of this class.
std::string PARTONS::ChannelType::toString | ( | ) | const |
Get string representation of type being assigned to a declared object of this class.
|
private |
Type associated to a declared object of this class.