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

Definition of enumeration values for pQCD orders of calculation. More...

Inheritance diagram for PARTONS::PerturbativeQCDOrderType:
PARTONS::BaseObject

Public Types

enum  Type {
  UNDEFINED = 0 , LO = 1 , NLO = 2 , NNLO = 3 ,
  LL = 4 , NLL = 5
}
 

Public Member Functions

 PerturbativeQCDOrderType ()
 Default constructor. More...
 
 PerturbativeQCDOrderType (Type type)
 Assignment constructor. More...
 
 PerturbativeQCDOrderType (const std::string &perturbativeQCDOrderTypeString)
 Assignment constructor trying to match pQCD order type from given string. More...
 
std::string toString () const
 Get string representation of type being assigned to a declared object of this class. More...
 
PerturbativeQCDOrderType::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...
 
- Public Member Functions inherited from PARTONS::BaseObject
 BaseObject (const std::string &className)
 Constructor. More...
 
virtual ~BaseObject ()
 Default destructor. More...
 
virtual BaseObjectclone () const
 Virtual clone function to allow the factory to clone all derived members object stored in the BaseObjectRegistry. More...
 
virtual void resolveObjectDependencies ()
 Because of the initialization step order of the program, objects are registered in a total random order and some objects depend on others. More...
 
void serialize (ElemUtils::Packet &packet) const
 Used to split a complex C++ object into a concatenation of simple types. More...
 
void unserialize (ElemUtils::Packet &packet)
 Used to rebuild a complex C++ object from a concatenation of simple type. More...
 
bool operator< (const BaseObject &other) const
 Overload of < operator to sort BaseObject object by its indexId value. More...
 
const std::string & getClassName () const
 
unsigned int getObjectId () const
 
int getIndexId () const
 
void setIndexId (int indexId)
 

Static Public Attributes

static const std::string PARAMETER_NAME_PERTURBATIVE_QCD_ORDER_TYPE
 

Private Attributes

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

Additional Inherited Members

- Protected Member Functions inherited from PARTONS::BaseObject
 BaseObject (const BaseObject &other)
 Copy constructor. More...
 
void info (const std::string &functionName, const std::string &message) const
 Print info message into logger. More...
 
void debug (const std::string &functionName, const std::string &message) const
 Print debug message into logger. More...
 
void warn (const std::string &functionName, const std::string &message) const
 Print warning message into logger. More...
 
void errorMissingParameter (const std::string &parameterName) const
 Use in automation process to throw exception when a parameter is missing from the XML scenario file. More...
 

Detailed Description

Definition of enumeration values for pQCD orders of calculation.

This class defines a set of enumeration values that are used to distinguish between pQCD orders of calculation. In addition, a declared object of this class is always associated to one pQCD order (see PerturbativeQCDOrderType::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 PerturbativeQCDOrderType::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
std::string enum_string_2 = PerturbativeQCDOrderType(PerturbativeQCDOrderType::NLO).toString();
Partons::getInstance()->getLoggerManager()->info("example", __func__, ElemUtils::Formatter() << "pQCD order is: " << enum_string_1);
Partons::getInstance()->getLoggerManager()->info("example", __func__, ElemUtils::Formatter() << "pQCD order 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: PerturbativeQCDOrderType.h:54
@ LO
Leading Order.
Definition: PerturbativeQCDOrderType.h:56
@ NLO
Next-to-Leading Order.
Definition: PerturbativeQCDOrderType.h:57
PerturbativeQCDOrderType()
Default constructor.
Definition: PerturbativeQCDOrderType.cpp:12

which gives via Logger:

20-05-2017 12:13:02 [INFO] (example::main) pQCD order is: LO
20-05-2017 12:13:02 [INFO] (example::main) pQCD order is: NLO

Member Enumeration Documentation

◆ Type

Enumerator
UNDEFINED 

Undefined type.

LO 

Leading Order.

NLO 

Next-to-Leading Order.

NNLO 

Next-to-Next-to-Leading Order.

LL 

Leading Logarithm.

NLL 

Next-to-Leading Logarithm.

Constructor & Destructor Documentation

◆ PerturbativeQCDOrderType() [1/3]

PARTONS::PerturbativeQCDOrderType::PerturbativeQCDOrderType ( )

Default constructor.

◆ PerturbativeQCDOrderType() [2/3]

PARTONS::PerturbativeQCDOrderType::PerturbativeQCDOrderType ( Type  type)

Assignment constructor.

Parameters
typeType to be assigned.

◆ PerturbativeQCDOrderType() [3/3]

PARTONS::PerturbativeQCDOrderType::PerturbativeQCDOrderType ( const std::string &  perturbativeQCDOrderTypeString)

Assignment constructor trying to match pQCD order type from given string.

If unable to match set PerturbativeQCDOrderType::UNDEFINED.

Parameters
perturbativeQCDOrderTypeStringString to be matched.

Member Function Documentation

◆ getType()

PerturbativeQCDOrderType::Type PARTONS::PerturbativeQCDOrderType::getType ( ) const

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

◆ setType()

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

Assign type to a declared object of this class.

◆ toString()

std::string PARTONS::PerturbativeQCDOrderType::toString ( ) const
virtual

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

Returns
String representation of assigned type, like "LO" for PerturbativeQCDOrderType::LO.

Reimplemented from PARTONS::BaseObject.

Member Data Documentation

◆ m_type

PerturbativeQCDOrderType::Type PARTONS::PerturbativeQCDOrderType::m_type
private

Type associated to a declared object of this class.

◆ PARAMETER_NAME_PERTURBATIVE_QCD_ORDER_TYPE

const std::string PARTONS::PerturbativeQCDOrderType::PARAMETER_NAME_PERTURBATIVE_QCD_ORDER_TYPE
static
Initial value:
=
"qcd_order_type"

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