jewel-cpp

An independent C++17 port of JEWEL 2.6.0 for jet-quenching studies.

Original JEWEL paper

K. Zapp, G. Ingelman, J. Rathsman, J. Stachel and U. A. Wiedemann, “A Monte Carlo Model for ‘Jet Quenching’”, Eur. Phys. J. C 60, 617–632 (2009).

Also cite the perturbative quenching framework and JEWEL 2.0.0 directions for use as applicable.

Run JEWEL with hepyy

Install in a Conda environment or venv with cppyy available. The wheel reuses the hepbundle Pythia8, LHAPDF and FastJet libraries.

pip install 'hepyy[hepbundle,jewel-cpp]'

python -c 'import hepyy; hepyy.load("jewel_cpp"); import jewel_cpp'

Start with the FastJet notebook or the Python script. Both generate hadronized events and cluster anti-kt jets.

The in-process API supports vacuum, a fixed-impact-parameter medium, and a zero-interaction control. Build the C++ runner to use Glauber sampling, full parton records, path-length exports, or thermal subtraction. Installation and source-build fallbacks.

Where the jets start in Pb–Pb

The medium example rotates each event so the reconstructed leading jet points north. The optical density map comes from JEWEL’s local temperature. The star marks the common hard vertex, solid ray segments mark intervals with T > 0, and the circles locate stored recoil production vertices. These segments estimate the hard legs’ straight-ray paths. A matched final jet inherits its leg’s estimate.

A jet-aligned Pb–Pb event with a dijet vertex, optical overlap, hot ray segments, recoil sites, and an incoming thermal momentum map.
One event from the Glauber-weighted central sample. The momentum panel shows stored incoming thermal references. The optical field is the background model at the displayed time.
Generator attempts
1,000
Accepted events
999
Leading jets at 75–125 GeV
452

The 0–10% Pb–Pb sample at 5.02 TeV draws impact parameters from the validated Glauber table with probability proportional to Ncoll. The plotted averages apply the compensating power-5 hard-scale weights. The length histogram uses unambiguous matches. Its lengths refer to the 3D shower-start rays.

Four cumulative plots showing optical energy density, recoil production sites, incoming thermal momenta, and leading and second matched hard-leg lengths.
Jet-aligned weighted averages for 452 selected events. The effective selected sample size is 209.4.

Geometry notebook · Run summary and provenance · Path estimator definitions

Follow the same event through hadronization

The full jewel-run-events output gives the exact string inputs sent to Pythia8 and the hadrons it returns. The parton-to-hadron notebook clusters both records with the same anti-kt jet definition and matches the leading input jet before applying the analysis cuts.

The comparison uses 1,000 accepted events each in vacuum and 0–10% Pb–Pb at 5.02 TeV. The medium run samples impact parameters in proportion to Ncoll from the validated Glauber table. Vacuum shows fragmentation and decay on a common input event. In Pb–Pb the raw stages retain recoil contributions and the corrected hadron collection subtracts incoming thermal momenta and excludes residual thermal entries.

Matched hadron jet pT versus string-input jet pT for 1,000 vacuum and 1,000 central Pb–Pb events, with raw and thermally subtracted medium hadrons.
Same-event response after jet cuts. Vacuum has 698 selected pairs. Pb–Pb has 591 raw and 571 subtracted pairs.

How thermal subtraction shifts the matched jet momentum

Stable raw/subtracted pairs
644
Mean pT shift
−2.21 ± 0.09 GeV
Jets with lower pT
90.1%

Both hadron jets must match the same selected parton anchor and lie within ΔR ≤ 0.3 of each other. The mean quoted here includes all stable pairs before hadron cuts. Among the 570 pairs passing cuts on both sides, the mean is −2.09 ± 0.08 GeV. Of the stable pairs, 21 pass only before subtraction and one passes only afterward.

Distribution of subtracted minus raw matched jet pT, with the same shift plotted versus raw jet pT in 0–10% Pb–Pb.
Positive values indicate an increase after subtraction. The median is −1.83 GeV. Binned error bars show standard errors of the paired mean.

Run summary, pairing counts, and binned shifts.

Pythia6 and Pythia8 on identical parton inputs · Thermal subtraction checks

Validation and analysis use cases

Pythia8 provides the hard input, optional ISR and hadronization. The port implements the JEWEL cascade and expanding optical medium. Component benchmarks use frozen Fortran routines. The full-generator comparisons also measure differences between the Pythia6 and Pythia8 backends and their respective event samples.

Numerical and event contracts

The C++ CI workflow runs at least 54 tests. The path-length differential test reproduced all 3,264 reported Fortran scalar values on the validation build.

C++ CI · Porting and differential tests

Vacuum and medium against JEWEL 2.6.0

The vacuum comparison uses million-jet samples. The Pb–Pb report uses the corrected Fortran medium cascade and includes a scan in 10% centrality bins.

Vacuum comparison · Medium and centrality comparison

Soft Drop and generator steering

Explore medium-to-vacuum shape ratios and the thermally subtracted ATLAS rg comparison across three jet transverse-momentum intervals. The steering examples cover LHAPDF sets and Pythia8 controls.

Soft Drop example · ATLAS comparison · Analysis recipes

The port remains experimental. Some full-generator observable bins still exceed the 10% comparison target, and native MPI is restricted to the audited 5.02 TeV, 20–100 GeV hard window. Validation scope and acceptance criteria.