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

Implementation of DLMSTW subtraction constant. More...

Inheritance diagram for PARTONS::GPDSubtractionConstantDLMSTW21:
PARTONS::GPDSubtractionConstantModule PARTONS::ModuleObject PARTONS::BaseObject

Public Member Functions

 GPDSubtractionConstantDLMSTW21 (const std::string &className)
 Constructor. More...
 
virtual ~GPDSubtractionConstantDLMSTW21 ()
 Destructor. More...
 
virtual void configure (const ElemUtils::Parameters &parameters)
 Provides a generic method to configure all types of modules by passing a Parameters object. More...
 
virtual GPDSubtractionConstantDLMSTW21clone () const
 Virtual clone function to allow the factory to clone all derived members object stored in the BaseObjectRegistry. More...
 
void loadParameters (size_t replica, bool printInfo=true)
 Load parameters for a given replica index. More...
 
void getMeanAndUncertainty (const std::vector< double > &v, double &mean, double &unc) const
 Evaluate mean and uncertainty for a given vector of numbers. More...
 
- Public Member Functions inherited from PARTONS::GPDSubtractionConstantModule
 GPDSubtractionConstantModule (const std::string &className)
 Constructor. More...
 
virtual ~GPDSubtractionConstantModule ()
 Destructor. More...
 
virtual std::string toString () const
 Return a pre-formatted characters string for output visualization of class member's values. 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...
 
virtual void prepareSubModules (const std::map< std::string, BaseObjectData > &subModulesData)
 Method used in automation to prepare all the modules used by this current module and configure them recursively. More...
 
virtual GPDSubtractionConstantResult compute (const GPDSubtractionConstantKinematic &kinematic, GPDType::Type gpdType)
 Evaluate specific GPD subtraction constant for a given kinematics. More...
 
- Public Member Functions inherited from PARTONS::ModuleObject
 ModuleObject (const std::string &className, ChannelType::Type channelType)
 Constructor. More...
 
virtual ~ModuleObject ()
 Default destructor. More...
 
virtual void run ()
 
unsigned int getReferenceModuleId () const
 Get reference module id. More...
 
void setReferenceModuleId (unsigned int referenceModuleId)
 Set reference module id. More...
 
ChannelType::Type getChannelType () const
 Get channel type. More...
 
- Public Member Functions inherited from PARTONS::BaseObject
 BaseObject (const std::string &className)
 Constructor. More...
 
virtual ~BaseObject ()
 Default destructor. 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_REPLICA
 Name of parameter to set replica index via xml file. More...
 
static const unsigned int classId
 Unique ID to automatically register the class in the registry. More...
 
- Static Public Attributes inherited from PARTONS::GPDSubtractionConstantModule
static const std::string GPD_SUBTRACTION_CONSTANT_MODULE_CLASS_NAME
 Type of module name used by the automatization. More...
 
- Static Public Attributes inherited from PARTONS::ModuleObject
static const std::string CLASS_NAME = "className"
 

Protected Member Functions

 GPDSubtractionConstantDLMSTW21 (const GPDSubtractionConstantDLMSTW21 &other)
 Copy constructor. More...
 
virtual PhysicalType< double > computeSubtractionConstant ()
 Evaluate specific GPD subtraction constant (user defined part). More...
 
- Protected Member Functions inherited from PARTONS::GPDSubtractionConstantModule
 GPDSubtractionConstantModule (const GPDSubtractionConstantModule &other)
 Copy constructor. More...
 
virtual void initModule ()
 Pure virtual function that provides skeleton for module initialization. More...
 
virtual void isModuleWellConfigured ()
 Pure virtual function that provides skeleton to check if the module is well initialized and configured. More...
 
virtual void setKinematics (const GPDSubtractionConstantKinematic &kinematic)
 Set internal kinematics. More...
 
void setCurrentGPDType (GPDType::Type gpdType)
 Set current GPD type to be computed. More...
 
- Protected Member Functions inherited from PARTONS::ModuleObject
 ModuleObject (const ModuleObject &other)
 
- 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...
 

Private Member Functions

double getMean (const std::vector< double > &v) const
 Evaluate mean from a given vector. More...
 
double getSigma (const std::vector< double > &v) const
 Evaluate sigma from a given vector. More...
 
size_t removeOutliers (std::vector< double > &v) const
 Remove outliers from a given vector using 3sigma rule. More...
 

Private Attributes

size_t m_replica
 Replica index. More...
 
double m_d1g
 d1 for gluons at initial scale. More...
 
double m_d1q
 d1 for light quarks at initial scale. More...
 
double m_muF20
 Initial factorization scale. More...
 
double m_M
 Parameter of multipole Ansatz. More...
 
double m_alpha
 Parameter of multipole Ansatz. More...
 

Additional Inherited Members

- Protected Attributes inherited from PARTONS::GPDSubtractionConstantModule
double m_t
 Mandelstam variable, momentum transfer on the hadron target. More...
 
double m_MuF2
 Factorization scale squared. More...
 
double m_MuR2
 Renormalization scale squared. More...
 
GPDType::Type m_currentGPDComputeType
 Current GPD type. More...
 
- Protected Attributes inherited from PARTONS::ModuleObject
ModuleObjectFactorym_pModuleObjectFactory
 Pointer tp module object factory. More...
 

Detailed Description

Implementation of DLMSTW subtraction constant.

This module implements the subtraction constant based on tripole Ansatz with parameters extracted as described in 2021 paper by Dutrieux, Lorce, Moutarde, Sznajder, Trawinski and Wagner.

Constructor & Destructor Documentation

◆ GPDSubtractionConstantDLMSTW21() [1/2]

PARTONS::GPDSubtractionConstantDLMSTW21::GPDSubtractionConstantDLMSTW21 ( const std::string &  className)

Constructor.

Parameters
classNameName of this class.

◆ ~GPDSubtractionConstantDLMSTW21()

PARTONS::GPDSubtractionConstantDLMSTW21::~GPDSubtractionConstantDLMSTW21 ( )
virtual

Destructor.

◆ GPDSubtractionConstantDLMSTW21() [2/2]

PARTONS::GPDSubtractionConstantDLMSTW21::GPDSubtractionConstantDLMSTW21 ( const GPDSubtractionConstantDLMSTW21 other)
protected

Copy constructor.

Parameters
otherObject to be copied.

Member Function Documentation

◆ clone()

GPDSubtractionConstantDLMSTW21 * PARTONS::GPDSubtractionConstantDLMSTW21::clone ( ) const
virtual

Virtual clone function to allow the factory to clone all derived members object stored in the BaseObjectRegistry.

Returns

Reimplemented from PARTONS::GPDSubtractionConstantModule.

◆ computeSubtractionConstant()

PhysicalType< double > PARTONS::GPDSubtractionConstantDLMSTW21::computeSubtractionConstant ( )
protectedvirtual

Evaluate specific GPD subtraction constant (user defined part).

Reimplemented from PARTONS::GPDSubtractionConstantModule.

◆ configure()

void PARTONS::GPDSubtractionConstantDLMSTW21::configure ( const ElemUtils::Parameters &  parameters)
virtual

Provides a generic method to configure all types of modules by passing a Parameters object.

Parameters class represents a list of couples key/value (see Parameters class documentation for more info).

Parameters
parametersElemUtils::Parameters object.

Reimplemented from PARTONS::GPDSubtractionConstantModule.

◆ getMean()

double PARTONS::GPDSubtractionConstantDLMSTW21::getMean ( const std::vector< double > &  v) const
private

Evaluate mean from a given vector.

◆ getMeanAndUncertainty()

void PARTONS::GPDSubtractionConstantDLMSTW21::getMeanAndUncertainty ( const std::vector< double > &  v,
double &  mean,
double &  unc 
) const

Evaluate mean and uncertainty for a given vector of numbers.

The procedure include removing of outliers.

◆ getSigma()

double PARTONS::GPDSubtractionConstantDLMSTW21::getSigma ( const std::vector< double > &  v) const
private

Evaluate sigma from a given vector.

◆ loadParameters()

void PARTONS::GPDSubtractionConstantDLMSTW21::loadParameters ( size_t  replica,
bool  printInfo = true 
)

Load parameters for a given replica index.

◆ removeOutliers()

size_t PARTONS::GPDSubtractionConstantDLMSTW21::removeOutliers ( std::vector< double > &  v) const
private

Remove outliers from a given vector using 3sigma rule.

Member Data Documentation

◆ classId

const unsigned int PARTONS::GPDSubtractionConstantDLMSTW21::classId
static
Initial value:
=
"GPDSubtractionConstantDLMSTW21"))
unsigned int registerBaseObject(BaseObject *pBaseObject)
Store a unique instance of a module identified by a unique string character key.
Definition: BaseObjectRegistry.cpp:45
static BaseObjectRegistry * getInstance()
Static function to be able to retrieve a unique instance pointer of this class anywhere in the code.
Definition: BaseObjectRegistry.cpp:15
GPDSubtractionConstantDLMSTW21(const std::string &className)
Constructor.
Definition: GPDSubtractionConstantDLMSTW21.cpp:25

Unique ID to automatically register the class in the registry.

◆ m_alpha

double PARTONS::GPDSubtractionConstantDLMSTW21::m_alpha
private

Parameter of multipole Ansatz.

◆ m_d1g

double PARTONS::GPDSubtractionConstantDLMSTW21::m_d1g
private

d1 for gluons at initial scale.

◆ m_d1q

double PARTONS::GPDSubtractionConstantDLMSTW21::m_d1q
private

d1 for light quarks at initial scale.

◆ m_M

double PARTONS::GPDSubtractionConstantDLMSTW21::m_M
private

Parameter of multipole Ansatz.

◆ m_muF20

double PARTONS::GPDSubtractionConstantDLMSTW21::m_muF20
private

Initial factorization scale.

◆ m_replica

size_t PARTONS::GPDSubtractionConstantDLMSTW21::m_replica
private

Replica index.

◆ PARAMETER_NAME_REPLICA

const std::string PARTONS::GPDSubtractionConstantDLMSTW21::PARAMETER_NAME_REPLICA
static
Initial value:
=
"replica"

Name of parameter to set replica index via xml file.


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