PARTONS  
PARtonic Tomography Of Nucleon Software
Public Types | Public Member Functions | Private Attributes | List of all members
PARTONS::QuarkNonSingletCombination Class Reference

Definition of enumeration values for quark non-singlet combinations. More...

Public Types

enum  Type {
  UNDEFINED = 0 , UP_NONSINGLET = 1 , DOWN_NONSINGLET = 2 , STRANGE_NONSINGLET = 3 ,
  CHARM_NONSINGLET = 4 , BOTTOM_NONSINGLET = 5 , TOP_NONSINGLET = 6 , UP_MINUS_DOWN = 7 ,
  UP_MINUS_STRANGE = 8 , UP_MINUS_CHARM = 9 , UP_MINUS_BOTTOM = 10 , UP_MINUS_TOP = 11
}
 Definition of enumerate values corresponding to quark flavors. More...
 

Public Member Functions

 QuarkNonSingletCombination ()
 Default constructor. More...
 
 QuarkNonSingletCombination (const QuarkNonSingletCombination &other)
 Copy constructor. More...
 
 QuarkNonSingletCombination (Type type)
 Assignment constructor. More...
 
virtual ~QuarkNonSingletCombination ()
 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...
 
QuarkNonSingletCombination::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

QuarkNonSingletCombination::Type m_type
 Type associated to a declared object of this class. More...
 

Detailed Description

Definition of enumeration values for quark non-singlet combinations.

This class defines a set of enumeration values that are used to distinguish between quark non-singlet combinations. In addition, a declared object of this class is always associated to one quark flavor combination type (see QuarkNonSingletCombination::m_type), so member functions can act on it. E.g.

//this is single enum variable - nothing to play with
//this is declared object
//let us assign some type (default is QuarkNonSingletCombination::UNDEFINED)
enum_object.setType(enum_variable);
//with objects you can use available functions, e.g. you can represent enumeration type by a corresponding string
std::string enum_string_1 = enum_object.toString();
//you can achieve some basic operations without the explicit declaration of objects by using the assignment constructor
Partons::getInstance()->getLoggerManager()->info("example", __func__, ElemUtils::Formatter() << "Quark non-singlet combination is: " << enum_string_1);
Partons::getInstance()->getLoggerManager()->info("example", __func__, ElemUtils::Formatter() << "Quark non-singlet combination is: " << enum_string_2);
ElemUtils::LoggerManager * getLoggerManager() const
Definition: Partons.cpp:191
static Partons * getInstance()
Share a unique pointer of this class.
Definition: Partons.cpp:27
Type
Definition of enumerate values corresponding to quark flavors.
Definition: QuarkNonSingletCombination.h:53
@ DOWN_NONSINGLET
Non-singlet combination for quark flavor d.
Definition: QuarkNonSingletCombination.h:56
@ UP_NONSINGLET
Non-singlet combination for quark flavor u.
Definition: QuarkNonSingletCombination.h:55
QuarkNonSingletCombination()
Default constructor.
Definition: QuarkNonSingletCombination.cpp:5

which gives via Logger:

20-05-2017 12:09:19 [INFO] (example::main) Quark non-singlet combination is: UP_NONSINGLET
20-05-2017 12:09:19 [INFO] (example::main) Quark non-singlet combination is: DOWN_NONSINGLET

Member Enumeration Documentation

◆ Type

Definition of enumerate values corresponding to quark flavors.

Enumerator
UNDEFINED 

Undefined type.

UP_NONSINGLET 

Non-singlet combination for quark flavor u.

DOWN_NONSINGLET 

Non-singlet combination for quark flavor d.

STRANGE_NONSINGLET 

Non-singlet combination for quark flavor s.

CHARM_NONSINGLET 

Non-singlet combination for quark flavor c.

BOTTOM_NONSINGLET 

Non-singlet combination for quark flavor b.

TOP_NONSINGLET 

Non-singlet combination for quark flavor t.

UP_MINUS_DOWN 

GPD u minus GPD d.

UP_MINUS_STRANGE 

GPD u minus GPD s.

UP_MINUS_CHARM 

GPD u minus GPD c.

UP_MINUS_BOTTOM 

GPD u minus GPD b.

UP_MINUS_TOP 

GPD u minus GPD t.

Constructor & Destructor Documentation

◆ QuarkNonSingletCombination() [1/3]

PARTONS::QuarkNonSingletCombination::QuarkNonSingletCombination ( )

Default constructor.

◆ QuarkNonSingletCombination() [2/3]

PARTONS::QuarkNonSingletCombination::QuarkNonSingletCombination ( const QuarkNonSingletCombination other)

Copy constructor.

Parameters
otherObject to be copied.

◆ QuarkNonSingletCombination() [3/3]

PARTONS::QuarkNonSingletCombination::QuarkNonSingletCombination ( Type  type)

Assignment constructor.

Parameters
typeType to be assigned.

◆ ~QuarkNonSingletCombination()

PARTONS::QuarkNonSingletCombination::~QuarkNonSingletCombination ( )
virtual

Destructor.

Member Function Documentation

◆ getType()

QuarkNonSingletCombination::Type PARTONS::QuarkNonSingletCombination::getType ( ) const

Get type being assigned to a declared object of this class.

◆ operator Type()

PARTONS::QuarkNonSingletCombination::operator QuarkNonSingletCombination::Type ( ) const

Automatic cast to enum.

◆ setType()

void PARTONS::QuarkNonSingletCombination::setType ( Type  type)

Assign type to a declared object of this class.

◆ toString()

std::string PARTONS::QuarkNonSingletCombination::toString ( ) const

Get string representation of type being assigned to a declared object of this class.

Returns
String representation of assigned type, like "UP" for QuarkNonSingletCombination::UP.

Member Data Documentation

◆ m_type

QuarkNonSingletCombination::Type PARTONS::QuarkNonSingletCombination::m_type
private

Type associated to a declared object of this class.


The documentation for this class was generated from the following files: