PARTONS
|
PARtonic Tomography Of Nucleon Software
|
Parton distributions for single physics object. More...
Public Member Functions | |
PartonDistribution () | |
Default constructor. More... | |
PartonDistribution (const PartonDistribution &other) | |
Copy constructor. More... | |
virtual | ~PartonDistribution () |
Destructor. More... | |
void | addQuarkDistribution (const QuarkDistribution &quarkDistribution) |
Add quark distribution associated to given quark flavor that is defined in the object to be added. More... | |
void | addQuarkDistribution (QuarkDistribution &quarkDistribution) |
Add quark distribution associated to given quark flavor that is defined in the object to be added. More... | |
const QuarkDistribution & | getQuarkDistribution (QuarkFlavor::Type quarkFlavorType) const |
Get reference to quark distribution associated to given quark flavor. More... | |
std::vector< QuarkFlavor::Type > | listTypeOfQuarkFlavor () |
Get list of quark flavors associated to stored quark distributions. More... | |
unsigned int | getQuarkDistributionsSize () const |
Get number of quark distributions stored in this object. More... | |
List< QuarkDistribution > | getListOfQuarkDistribution () const |
Get list of stored quark distributions. More... | |
double | getSinglet () |
Get sum of singlet values for stored quark distributions. More... | |
virtual std::string | toString () const |
Return a pre-formatted characters string for output visualization of class member's values. More... | |
void | compare (ComparisonReport &rootComparisonReport, const PartonDistribution &referenceObject, std::string parentObjectInfo="") const |
Compare to other PartonDistribution object and store comparison result in given comparison report. More... | |
const std::map< QuarkFlavor::Type, QuarkDistribution > & | getQuarkDistributions () const |
Get reference to map containing stored quark distributions distinguished by associated quark flavors. More... | |
void | setQuarkDistributions (const std::map< QuarkFlavor::Type, QuarkDistribution > &quarkDistributions) |
Set map containing stored quark distributions distinguished by associated quark flavors. More... | |
const GluonDistribution & | getGluonDistribution () const |
Get reference to gluon distribution. More... | |
void | setGluonDistribution (const GluonDistribution &gluonDistribution) |
Set gluon distribution. More... | |
Public Member Functions inherited from PARTONS::BaseObject | |
BaseObject (const std::string &className) | |
Constructor. More... | |
virtual | ~BaseObject () |
Default destructor. More... | |
virtual BaseObject * | clone () 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) |
Private Attributes | |
std::map< QuarkFlavor::Type, QuarkDistribution > | m_quarkDistributions |
Map containing stored quark distributions distinguished by associated quark flavors. More... | |
GluonDistribution | m_gluonDistribution |
Gluon distribution. 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 ¶meterName) const |
Use in automation process to throw exception when a parameter is missing from the XML scenario file. More... | |
Parton distributions for single physics object.
This class is used to store parton distributions for a single physics object (e.g. GPD of a given type). It contains quark distributions (QuarkDistribution objects) and a gluon distribution (GluonDistribution object). Each quark distribution is defined for a different quark flavor. This is illustrated by the following example:
which gives via Logger:
See the documentation of QuarkDistribution and GluonDistribution classes to check what kind of information you can access in objects of those types. Check also GPDResult class, where QuarkDistribution objects are used extensively.
PARTONS::PartonDistribution::PartonDistribution | ( | ) |
Default constructor.
PARTONS::PartonDistribution::PartonDistribution | ( | const PartonDistribution & | other | ) |
Copy constructor.
other | Object to be copied. |
|
virtual |
Destructor.
void PARTONS::PartonDistribution::addQuarkDistribution | ( | const QuarkDistribution & | quarkDistribution | ) |
Add quark distribution associated to given quark flavor that is defined in the object to be added.
quarkDistribution | Reference to quark distribution to be added. |
void PARTONS::PartonDistribution::addQuarkDistribution | ( | QuarkDistribution & | quarkDistribution | ) |
Add quark distribution associated to given quark flavor that is defined in the object to be added.
quarkDistribution | Reference to quark distribution to be added. |
void PARTONS::PartonDistribution::compare | ( | ComparisonReport & | rootComparisonReport, |
const PartonDistribution & | referenceObject, | ||
std::string | parentObjectInfo = "" |
||
) | const |
Compare to other PartonDistribution object and store comparison result in given comparison report.
rootComparisonReport | Reference to comparison report to be used to store comparison result. |
referenceObject | Reference to object to be compared. |
parentObjectInfo | Addition information coming from the parent object (if needed). |
const GluonDistribution & PARTONS::PartonDistribution::getGluonDistribution | ( | ) | const |
Get reference to gluon distribution.
List< QuarkDistribution > PARTONS::PartonDistribution::getListOfQuarkDistribution | ( | ) | const |
Get list of stored quark distributions.
const QuarkDistribution & PARTONS::PartonDistribution::getQuarkDistribution | ( | QuarkFlavor::Type | quarkFlavorType | ) | const |
Get reference to quark distribution associated to given quark flavor.
quarkFlavorType | Quark flavor associated to quark distribution to be selected. |
const std::map< QuarkFlavor::Type, QuarkDistribution > & PARTONS::PartonDistribution::getQuarkDistributions | ( | ) | const |
Get reference to map containing stored quark distributions distinguished by associated quark flavors.
unsigned int PARTONS::PartonDistribution::getQuarkDistributionsSize | ( | ) | const |
Get number of quark distributions stored in this object.
double PARTONS::PartonDistribution::getSinglet | ( | ) |
Get sum of singlet values for stored quark distributions.
Return
\(\sum_q F^{q(+)}\)
where F is physics object (e.g. GPD) for which distributions are defined.
Note that sum elements are not weighted here by square of corresponding quark charges.
std::vector< QuarkFlavor::Type > PARTONS::PartonDistribution::listTypeOfQuarkFlavor | ( | ) |
Get list of quark flavors associated to stored quark distributions.
void PARTONS::PartonDistribution::setGluonDistribution | ( | const GluonDistribution & | gluonDistribution | ) |
Set gluon distribution.
void PARTONS::PartonDistribution::setQuarkDistributions | ( | const std::map< QuarkFlavor::Type, QuarkDistribution > & | quarkDistributions | ) |
Set map containing stored quark distributions distinguished by associated quark flavors.
|
virtual |
Return a pre-formatted characters string for output visualization of class member's values.
Reimplemented from PARTONS::BaseObject.
|
private |
Gluon distribution.
|
private |
Map containing stored quark distributions distinguished by associated quark flavors.