#monte-carlo #particle #id #physics #scheme #numbering #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

#243 in Science

Download history 1/week @ 2024-10-23 2/week @ 2024-10-30 2/week @ 2024-11-06 3/week @ 2024-11-13 10/week @ 2024-11-20 8/week @ 2024-11-27 12/week @ 2024-12-04 24/week @ 2024-12-11 10/week @ 2024-12-18 54/week @ 2025-01-29 246/week @ 2025-02-05

300 downloads per month
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


lib.rs:

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());

Dependencies

~160KB