
A high-performance C++ library for unified access to collinear and transverse momentum dependent parton distribution functions
Why Choose PDFxTMDLib?
Unified Access
Consistent and flexible interface for both collinear PDFs and TMDs with a single API
High Performance
Optimized computational efficiency through modern C++ design patterns like CRTP and type erasure
Extensible Framework
Well-defined interfaces for custom readers, interpolators, and extrapolators
Full Compatibility
Support for standard LHAPDF and TMDLib file formats with accommodation for custom formats
Uncertainty Analysis
Built-in support for uncertainty and correlation calculations for both cPDFs and TMDs
Python Integration
Python bindings for seamless integration into Python scripts and applications
Quick Example
#include <PDFxTMD/PDFxTMD.h>
#include <iostream>
#include
#include
int main()
{
using namespace PDFxTMD;
// Instantiate a PDFSet for collinear distributions
PDFSet cpdfSet("MSHT20nlo_as120");
// Access the central member ( index 0)
auto central_pdf = cpdfSet[0];
// Define kinematics
double x = 0.1; // Longitudinal momentum fraction
double mu2 = 10000; // Factorization scale squared
// Evaluate PDF for gluon
double gluon_pdf = central_pdf->pdf(PartonFlavor ::g, x, mu2);
std ::cout << "Gluon PDF at x=" << x << ", mu2 =" << mu2 << " GeV2 : " << gluon_pdf
<< std ::endl;
return 0;
}
Applications
High Energy Physics
Essential for precise calculations in particle collisions at facilities like the Large Hadron Collider
Monte Carlo Generators
Integrate with event generators for accurate simulation of particle interactions
Theoretical Research
Support for advanced studies in QCD and hadron structure
Getting Started
Latest Updates
New TMD Sets Available
Added support for PB-NLO-HERAI+II-2023 sets with different qs values
Learn MorePython Bindings Enhanced
Improved Python interface with additional functionality and better performance
View TutorialReady to Get Started?
PDFxTMDLib provides a powerful framework for working with parton distribution functions in high-energy physics
Install Now Join the Community