PARTONS
|
PARtonic Tomography Of Nucleon Software
|
Set of utilization tools to handle kinematic-like classes. More...
Public Member Functions | |
KinematicUtils () | |
Default constructor. More... | |
virtual | ~KinematicUtils () |
Destructor. More... | |
List< GPDKinematic > | getGPDKinematicFromFile (const std::string &filePath) |
Parse a text file in order to retrieve a list of GPDKinematic objects. More... | |
List< CollinearDistributionKinematic > | getCollinearDistributionKinematicFromFile (const std::string &filePath) |
Parse a text file in order to retrieve a list of CollienearDistributionKinematic objects. More... | |
List< DVCSConvolCoeffFunctionKinematic > | getDVCSCCFKinematicFromFile (const std::string &filePath) |
Parse a text file in order to retrieve a list of DVCSConvolCoeffFunctionKinematic objects. More... | |
List< TCSConvolCoeffFunctionKinematic > | getTCSCCFKinematicFromFile (const std::string &filePath) |
Parse a text file in order to retrieve a list of TCSConvolCoeffFunctionKinematic objects. More... | |
List< DVMPConvolCoeffFunctionKinematic > | getDVMPCCFKinematicFromFile (const std::string &filePath) |
Parse a text file in order to retrieve a list of DVMPConvolCoeffFunctionKinematic objects. More... | |
List< DDVCSConvolCoeffFunctionKinematic > | getDDVCSCCFKinematicFromFile (const std::string &filePath) |
Parse a text file in order to retrieve a list of DDVCSConvolCoeffFunctionKinematic objects. More... | |
List< DVCSObservableKinematic > | getDVCSObservableKinematicFromFile (const std::string &filePath) |
Parse a text file in order to retrieve a list of ObservableKinematic objects. More... | |
List< TCSObservableKinematic > | getTCSObservableKinematicFromFile (const std::string &filePath) |
Parse a text file in order to retrieve a list of ObservableKinematic objects. More... | |
List< DVMPObservableKinematic > | getDVMPObservableKinematicFromFile (const std::string &filePath) |
Parse a text file in order to retrieve a list of ObservableKinematic objects. More... | |
List< DDVCSObservableKinematic > | getDDVCSObservableKinematicFromFile (const std::string &filePath) |
Parse a text file in order to retrieve a list of ObservableKinematic objects. 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... | |
virtual std::string | toString () const |
Return a pre-formatted characters string for output visualization of class member's values. 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 Member Functions | |
void | error (const std::string &funcName, const std::string &msg) |
Throw a custom error. More... | |
void | errorCannotOpenFile (const std::string &funcName, const std::string &msg) |
Throw an error when unable to open a file. More... | |
void | checkEmptyInputFile (const std::string &funcName, const std::vector< std::string > &kinematicString, const std::string &filePath) |
Check if content of a file is empty. More... | |
std::vector< PhysicalUnit > | getUnitsFromInputFileLine (const std::string &funcName, const std::string &line) const |
Return vector containing units according to a give string. 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... | |
Set of utilization tools to handle kinematic-like classes.
This class is used as a container for utilization tools to handle kinematic-like classes. It provides in particular tools to parse text files in order to create a set of kinematic-like objects.
PARTONS::KinematicUtils::KinematicUtils | ( | ) |
Default constructor.
|
virtual |
Destructor.
|
private |
Check if content of a file is empty.
If yes, throw an error.
funcName | Name of function where the check is performed. |
kinematicString | Content of file. |
filePath | Path to file. |
|
private |
Throw a custom error.
funcName | Name of function where the error has appeared. |
msg | User readable message to be thrown. |
|
private |
Throw an error when unable to open a file.
funcName | Name of function where the error has appeared. |
msg | User readable message to be thrown. |
List< CollinearDistributionKinematic > PARTONS::KinematicUtils::getCollinearDistributionKinematicFromFile | ( | const std::string & | filePath | ) |
Parse a text file in order to retrieve a list of CollienearDistributionKinematic objects.
The parsed file should display separate lines of the form "x | MuF2 | MuR2".
filePath | Path to file to be parsed. |
List< DDVCSConvolCoeffFunctionKinematic > PARTONS::KinematicUtils::getDDVCSCCFKinematicFromFile | ( | const std::string & | filePath | ) |
Parse a text file in order to retrieve a list of DDVCSConvolCoeffFunctionKinematic objects.
The parsed file should display separate lines of the form "xi | t | Q2 | Q2 | MuF2 | MuR2".
filePath | Path to file to be parsed. |
List< DDVCSObservableKinematic > PARTONS::KinematicUtils::getDDVCSObservableKinematicFromFile | ( | const std::string & | filePath | ) |
Parse a text file in order to retrieve a list of ObservableKinematic objects.
The parsed file should display separate lines of the form "xB | t | Q2 | Q2 | E | phi | phiL | thetaL".
filePath | Path to file to be parsed. |
List< DVCSConvolCoeffFunctionKinematic > PARTONS::KinematicUtils::getDVCSCCFKinematicFromFile | ( | const std::string & | filePath | ) |
Parse a text file in order to retrieve a list of DVCSConvolCoeffFunctionKinematic objects.
The parsed file should display separate lines of the form "xi | t | Q2 | MuF2 | MuR2".
filePath | Path to file to be parsed. |
List< DVCSObservableKinematic > PARTONS::KinematicUtils::getDVCSObservableKinematicFromFile | ( | const std::string & | filePath | ) |
Parse a text file in order to retrieve a list of ObservableKinematic objects.
The parsed file should display separate lines of the form "xB | t | Q2 | E | phi".
filePath | Path to file to be parsed. |
List< DVMPConvolCoeffFunctionKinematic > PARTONS::KinematicUtils::getDVMPCCFKinematicFromFile | ( | const std::string & | filePath | ) |
Parse a text file in order to retrieve a list of DVMPConvolCoeffFunctionKinematic objects.
The parsed file should display separate lines of the form "xi | t | Q2 | MuF2 | MuR2 | mesonType | mesonPolarization".
filePath | Path to file to be parsed. |
List< DVMPObservableKinematic > PARTONS::KinematicUtils::getDVMPObservableKinematicFromFile | ( | const std::string & | filePath | ) |
Parse a text file in order to retrieve a list of ObservableKinematic objects.
The parsed file should display separate lines of the form "xB | t | Q2 | E | phi | mesonType".
filePath | Path to file to be parsed. |
List< GPDKinematic > PARTONS::KinematicUtils::getGPDKinematicFromFile | ( | const std::string & | filePath | ) |
Parse a text file in order to retrieve a list of GPDKinematic objects.
The parsed file should display separate lines of the form "x | xi | t | MuF2 | MuR2".
filePath | Path to file to be parsed. |
List< TCSConvolCoeffFunctionKinematic > PARTONS::KinematicUtils::getTCSCCFKinematicFromFile | ( | const std::string & | filePath | ) |
Parse a text file in order to retrieve a list of TCSConvolCoeffFunctionKinematic objects.
The parsed file should display separate lines of the form "xi | t | Q2' | MuF2 | MuR2".
filePath | Path to file to be parsed. |
List< TCSObservableKinematic > PARTONS::KinematicUtils::getTCSObservableKinematicFromFile | ( | const std::string & | filePath | ) |
Parse a text file in order to retrieve a list of ObservableKinematic objects.
The parsed file should display separate lines of the form "t | Q2' | E | phi | theta | MLepton".
filePath | Path to file to be parsed. |
|
private |
Return vector containing units according to a give string.
funcName | Name of function to throw error if needed. |
line | Input line. |