PDFxTMDLib  1.0.0
Public Member Functions | List of all members
PDFxTMD::GenericCPDFFactory Class Reference

Factory class for creating collinear PDF objects. More...

#include <Factory.h>

Public Member Functions

 GenericCPDFFactory ()=default
 
ICPDF mkCPDF (const std::string &pdfSetName, int setMember)
 Creates a new ICPDF object. More...
 

Detailed Description

Factory class for creating collinear PDF objects.

This class provides a factory method to create ICPDF objects from a specified PDF set name and set member. It handles the instantiation of the appropriate collinear PDF implementation based on the provided parameters. Note: Users should be aware that the list of different TMD or PDF set is read from the yaml file located in C:\ProgramData\PDFxTMDLib\config.yaml (on windows) or ~/.PDFxTMDLib/config.yaml (on linux). here is an example of the config.yaml file: paths: "C:\\Users\\Ramin\\Documents\\code|C:/Users/Ramin/Pictures" This means that the user can have multiple PDF sets in different directories. The paths are separated by |. Also by default the current directory and also C:\ProgramData\PDFxTMDLib\ (on windows) or ~/usr/local/share/PDFxTMDLib/ (on linux) are also included. Note: This class by default uses CDefaultLHAPDFFileReader to read the PDF set. If you want to use a different reader, you modify the yaml info file of the PDF set and adding or modify "Reader" field. For interpolation, you can modify the "Interpolator" field. The default interpolator is CLHAPDFBilinearInterpolator. For extrapolation, you can modify the "Extrapolator" field. The default extrapolator is CContinuationExtrapolator

Constructor & Destructor Documentation

◆ GenericCPDFFactory()

PDFxTMD::GenericCPDFFactory::GenericCPDFFactory ( )
default

Member Function Documentation

◆ mkCPDF()

ICPDF PDFxTMD::GenericCPDFFactory::mkCPDF ( const std::string &  pdfSetName,
int  setMember 
)

Creates a new ICPDF object.

Parameters
pdfSetNameThe name of the PDF set
setMemberThe member number of the PDF set
Returns
ICPDF The newly created ICPDF object

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