#scheme #physics #pdg

particle_id

Particle IDs according to the Monte Carlo Particle Numbering Scheme

6 releases (breaking)

0.5.1 Feb 6, 2025
0.5.0 Nov 29, 2023
0.4.0 Jul 5, 2023
0.3.0 Jun 16, 2023
0.1.0 Jun 15, 2023

#95 in Science


Used in 4 crates (3 directly)

GPL-3.0-or-later

71KB
1.5K SLoC

particle_id

Particle numbers according to the Monte Carlo Particle Numbering Scheme

Example

use particle_id::light_baryons::*;

assert_eq!(proton.name().unwrap(), "proton");
assert_eq!(proton.id(), 2212);
assert_eq!(proton.anti().id(), -proton.id());

License: GPL-3.0-or-later

Dependencies

~155KB