Unified set access
Load collinear or TMD sets, select individual members, inspect metadata, and evaluate flavors through a consistent family of interfaces.
Browse the API referencePDFxTMDLib · C++17 and Python
PDFxTMDLib is an open-source library for evaluating collinear parton distribution functions and transverse-momentum-dependent distributions from standard or custom grids.
I
Load collinear or TMD sets, select individual members, inspect metadata, and evaluate flavors through a consistent family of interfaces.
Browse the API referenceUse the default components or provide custom readers, interpolators, and extrapolators for specialized data and research workflows.
Read the C++ tutorialCalculate central values, asymmetric uncertainties, correlations, and the strong coupling using set metadata in C++ or Python.
Read the Python tutorialII
The high-level PDFSet interface manages all members of a set and provides access to metadata, uncertainty calculations, correlations, and strong coupling.
Install the library, configure a data-set search path, and evaluate the desired parton flavor.
#include <PDFxTMDLib/PDFSet.h>
#include <iostream>
int main() {
PDFxTMD::PDFSet<PDFxTMD::CollinearPDFTag> set("MSHT20nlo_as120");
auto central = set[0];
const double x = 0.1;
const double mu2 = 10000.0; // GeV^2
const double gluon = central->pdf(PDFxTMD::PartonFlavor::g, x, mu2);
std::cout << "g(x, mu2) = " << gluon << '\n';
}III
IV
Open-source research software
When PDFxTMDLib contributes to published research, please cite the project paper.