Skip to main content

Glauber C++ for Pb–Pb

A standalone C++17 Monte Carlo Glauber generator for minimum-bias Pb-208 collisions. Build and run it with CMake and the C++ standard library. The implementation follows the published model and the documented Pbpnrw parameters.

Project documentation, Pb–Pb figures, and validation

Run

cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build
build/glauber-pbpb pbpb-5020 60000 72913

The arguments are a new output directory, the number of impact-parameter proposals, and an unsigned random seed. Optional fourth and fifth arguments set the inelastic nucleon–nucleon cross section in mb and the centrality bin width in percent. The defaults are 67.6 mb at 5.02 TeV and 5%-wide bins. The bin width must divide 100. Repeat runs with the same executable and seed give the same sample.

  • events.csv records inelastic events ordered by impact parameter, with proposal index, b, N_part, N_coll, event T_AA, and centrality class.
  • centrality.csv records the boundaries and class means. Its T_AA standard errors hold the estimated boundaries fixed.
  • metadata.json records the model settings, seed, trial counts and hadronic Pb–Pb cross section estimate. It is written after the CSV files close successfully.

Proposals sample uniformly in transverse area out to 20 fm. The generator accepts an event if at least one pair meets the inelastic hard-sphere criterion. It assigns percentile classes by ranking accepted events in b. Thus the classes represent impact-parameter centrality. T_AA = N_coll / sigma_NN_inelastic is in inverse mb. The first and last b boundaries are the proposal limits.

The model uses separate proton and neutron two-parameter Fermi profiles, radial reweighting, a 0.4 fm minimum separation, and center-of-mass recentering with a 0.1 fm shift limit. It uses continuous nucleon placement. The published improved benchmark also has a lattice option. Glauber model reference

TGlauberMC comparison

Use ROOT only for this check. A separate Conda environment with root_base is sufficient. Put TGlauberMC v3.2 tglaubermc.hh and tglaubermc.cxx in a reference working directory alongside a copy of the reference macro. Run the macro in that directory. It uses Pbpnrw, continuous placement and the same cross section and proposal limits as the native run.

for i in 1 2 3 4; do
  root -l -b -q "reference_fast.C(15000,$((72920+i)),\"reference-shard-$i.csv\")"
done

From the source checkout, with paths adjusted to the reference working directory:

python3 validation/compare.py pbpb-5020 \
  --reference /path/to/reference/reference-shard-{1,2,3,4}.csv \
  --reference-trials-per-file 15000 --reference-seeds 72921 72922 72923 72924 \
  --reference-source /path/to/reference/tglaubermc.{hh,cxx} \
  --root-version "$(root-config --version)" --output comparison.json

The comparison reranks each sample independently and recomputes its percentile boundaries in 20 jackknife replicates. It checks the hadronic cross section and compares the b boundaries, mean N_part and mean T_AA against four combined Monte Carlo standard errors. This is a statistical comparison with independent seeds. Parameter and centrality-model uncertainties require separate studies.

For the validation run, each implementation drew 60,000 proposals and accepted 36,598 (C++) and 36,533 (TGlauberMC) inelastic events. All 20 bins passed. The largest absolute pulls were 1.03 for a boundary, 1.11 for mean N_part and 1.30 for mean T_AA. The inelastic cross sections were 7.665 ± 0.025 b and 7.651 ± 0.025 b, respectively. The native CSV summary and metadata accompany the report.

Metadata

Release files for hepyy-glauber-cpp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for hepyy-glauber-cpp 0.1.0
File Interpreter ABI Platform Actions
hepyy_glauber_cpp-0.1.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64, Linux glibc 2.24+ x86-64 Details for hepyy_glauber_cpp-0.1.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
hepyy_glauber_cpp-0.1.0-py3-none-macosx_11_0_x86_64.whl Python 3 none macOS 11.0+ x86-64 Details for hepyy_glauber_cpp-0.1.0-py3-none-macosx_11_0_x86_64.whl
hepyy_glauber_cpp-0.1.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for hepyy_glauber_cpp-0.1.0-py3-none-macosx_11_0_arm64.whl

Total release size: 134.7 kB

Release files / hepyy_glauber_cpp-0.1.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL hepyy_glauber_cpp-0.1.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 90.3 kB
Tags Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
df471aad5a487d11d561e69a7561e547213e80f46c650b84575bf54d49601d87
BLAKE2b-256 checksum
How to use checksums
87e0baeafd2c9d26c2174a750954dff4cd56319f06c309b51ac1e8cbcc6b102e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / hepyy_glauber_cpp-0.1.0-py3-none-macosx_11_0_x86_64.whl

Download URL hepyy_glauber_cpp-0.1.0-py3-none-macosx_11_0_x86_64.whl
Size 22.4 kB
Tags Python 3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
84c03240daed892cb985494d7cba4cfe1476c6d790a50b9bb0087904f25673d6
BLAKE2b-256 checksum
How to use checksums
4505283f4f654ffe8d062752484a72d144568edb5cf7b0c9b0e8074dba95093e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / hepyy_glauber_cpp-0.1.0-py3-none-macosx_11_0_arm64.whl

Download URL hepyy_glauber_cpp-0.1.0-py3-none-macosx_11_0_arm64.whl
Size 22.0 kB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
4a5ff78abb453b39983033beda49748d6a4dffb5ebbbb770ddb5ab470e749c21
BLAKE2b-256 checksum
How to use checksums
9a146e9736fc05f9ff31f3d8635feda61a2e5ce2a59277cf02579868cb23ceb8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Security for hepyy-glauber-cpp 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 3 files in this release have been uploaded with provenance metadata.

Select from 3 files

Attestation for hepyy_glauber_cpp-0.1.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

3 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page