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

Interface for Collinear Parton Distribution Functions (CPDFs). More...

#include <ICPDF.h>

Public Member Functions

template<typename CPDFApproachT >
 ICPDF (CPDFApproachT pdfApproach)
 
double pdf (PartonFlavor parton, double x, double mu2) const
 Evaluate the CPDF for a specific flavor. More...
 
void pdf (double x, double mu2, std::array< double, 13 > &output) const
 Evaluate the array of Collinear PDF values for {tbar, bbar, cbar, sbar, ubar, dbar, g, d, u, s, c, b, t}. More...
 
 ICPDF (const ICPDF &other)
 Copy constructor for ICPDF objects. More...
 
ICPDFoperator= (ICPDF const &other)
 Assignment operator for ICPDF objects. More...
 
 ICPDF (ICPDF &&other) noexcept=default
 
 ~ICPDF ()=default
 
ICPDFoperator= (ICPDF &&other)=default
 

Detailed Description

Interface for Collinear Parton Distribution Functions (CPDFs).

This class provides a type-erased interface for accessing CPDFs. The class handles:

Constructor & Destructor Documentation

◆ ICPDF() [1/3]

template<typename CPDFApproachT >
PDFxTMD::ICPDF::ICPDF ( CPDFApproachT  pdfApproach)
inlineexplicit

◆ ICPDF() [2/3]

PDFxTMD::ICPDF::ICPDF ( const ICPDF other)
inline

Copy constructor for ICPDF objects.

This constructor creates a new ICPDF object as a copy of another ICPDF object.

Parameters
otherThe ICPDF object to copy.

◆ ICPDF() [3/3]

PDFxTMD::ICPDF::ICPDF ( ICPDF &&  other)
defaultnoexcept

◆ ~ICPDF()

PDFxTMD::ICPDF::~ICPDF ( )
default

Member Function Documentation

◆ operator=() [1/2]

ICPDF& PDFxTMD::ICPDF::operator= ( ICPDF &&  other)
default

◆ operator=() [2/2]

ICPDF& PDFxTMD::ICPDF::operator= ( ICPDF const &  other)
inline

Assignment operator for ICPDF objects.

This operator assigns the value of another ICPDF object to the current ICPDF object.

Parameters
otherThe ICPDF object to assign from.
Returns
A reference to the current ICPDF object.

◆ pdf() [1/2]

void PDFxTMD::ICPDF::pdf ( double  x,
double  mu2,
std::array< double, 13 > &  output 
) const
inline

Evaluate the array of Collinear PDF values for {tbar, bbar, cbar, sbar, ubar, dbar, g, d, u, s, c, b, t}.

This function evaluates the CPDF for all flavors given x and mu2, and stores the results in the output array.

Parameters
xThe momentum fraction of the parton.
mu2The factorization scale squared.
outputThe array to store the CPDF values for all flavors.

◆ pdf() [2/2]

double PDFxTMD::ICPDF::pdf ( PartonFlavor  parton,
double  x,
double  mu2 
) const
inline

Evaluate the CPDF for a specific flavor.

This function evaluates the CPDF for a given flavor, x, and mu2.

Parameters
flavorThe parton flavor to evaluate the CPDF for.
xThe momentum fraction of the parton.
mu2The factorization scale squared.
Returns
The value of the CPDF for the given flavor, x, and mu2.

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