← Latest papers
⚛️ phenomenology

PDFxTMDLib: A High-Performance C++ Library for Collinear and Transverse Momentum Dependent Parton Distribution Functions

This paper introduces PDFxTMDLib, a modern, high-performance C++ library that overcomes the customization and uncertainty analysis limitations of existing tools like LHAPDF and TMDLib by providing a flexible framework for both collinear and transverse momentum dependent parton distribution functions, which is validated through integration with the PYTHIA event generator and comparative studies.

Original authors: R. Kord Valeshabadi, S. Rezaie

Published 2026-02-16
📖 5 min read🧠 Deep dive

Original authors: R. Kord Valeshabadi, S. Rezaie

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to predict the outcome of a massive, high-speed collision between two protons, like those happening at the Large Hadron Collider (LHC). To do this, you need to know exactly what's inside those protons. Protons aren't solid balls; they are chaotic bags of smaller particles called quarks and gluons (collectively known as "partons").

The problem is, these partons are moving wildly. Some are zooming straight ahead, while others are jittering side-to-side.

The Old Tools: The "Two Separate Maps"

Physicists have long used two different "maps" (software libraries) to navigate this chaos:

  1. LHAPDF: This is the standard map for particles moving straight ahead. It's like a highway map that only cares about how fast a car is going forward. It's great, but it ignores the side-to-side swerving.
  2. TMDLib: This is a specialized map for particles that are also swerving side-to-side (transverse momentum). However, this map is a bit of a mess. It's like a collection of different hand-drawn maps from different cartographers. Each one uses a different grid system, making it hard to switch between them or add new features. It's also rigid; if you wanted to draw a new kind of map, you couldn't easily do it.

The Problem: Scientists wanted a single, modern tool that could handle both the "straight highway" and the "swerving traffic" scenarios, was easy to customize, and could handle future, more complex traffic patterns.

The New Solution: PDFxTMDLib

The authors of this paper, R. Kord Valeshabadi and S. Rezaie, built PDFxTMDLib. Think of this as a universal, high-tech GPS system for particle physics.

Here is what makes it special, using some everyday analogies:

1. The "Universal Adapter" (Unified Framework)

Before, if you wanted to check the "straight" map and the "swerving" map, you had to use two different apps that didn't talk to each other.
PDFxTMDLib is like a universal adapter. It has one interface that works for both. Whether you are looking at a particle moving straight or one wobbling side-to-side, the library speaks the same language. It's like having one app that can show you a subway map, a bus map, and a bike-share map all in the same clean interface.

2. The "Lego System" (Modular Architecture)

Old libraries were like a pre-built plastic model kit. Once it was glued together, you couldn't change the wheels or the engine.
PDFxTMDLib is built like Lego. It separates the parts:

  • The Reader: How to read the map data.
  • The Interpolator: How to guess the speed between two known points on the map.
  • The Extrapolator: How to guess what happens outside the map's borders.
    Because these are separate "Lego bricks," a scientist can swap out one brick (e.g., use a smarter way to guess speeds) without breaking the whole system. This makes it incredibly flexible for future discoveries.

3. The "Speed Demon" (High Performance)

In physics simulations, you might need to calculate these particle speeds billions of times for a single experiment. If your software is slow, the simulation takes weeks instead of days.
The authors used advanced coding techniques (like "compile-time polymorphism") to make this library fast. It's like upgrading from a bicycle to a sports car. In their tests, they simulated a famous particle collision (the Drell-Yan process) and found that their new library was about 5.6% faster than the old standard, while giving the exact same accurate results.

4. The "Error Check" (Uncertainty Handling)

Every map has a margin of error. Sometimes the data is fuzzy.
Old tools for the "swerving" particles (TMDs) didn't have a good way to calculate these errors automatically. You had to do it manually or use a separate, clunky tool.
PDFxTMDLib built this error-checking feature directly into the core. It's like a GPS that not only tells you the route but also says, "There's a 10% chance of traffic here," and does the math for you instantly.

5. The "Future-Proof" Design

The library is designed to be "extensible." Right now, it handles 2D (straight) and 3D (swerving) maps. But the authors built the engine so that in the future, if scientists discover a need for 4D or 5D maps (like "Double Parton Distributions"), they can just add a new dimension without rebuilding the whole car.

The Bottom Line

PDFxTMDLib is a modern, fast, and flexible software library that unifies two previously separate worlds of particle physics data.

  • For the Scientist: It saves time, reduces coding errors, and allows for complex, custom experiments that were previously too difficult to set up.
  • For the Field: It standardizes how we handle "swerving" particles, making sure everyone is using the same high-quality tools to understand the universe.

The authors have even made the code free and open-source, allowing anyone to download it, use it, and help improve it, ensuring that the "GPS" for the subatomic world keeps getting better.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →