#monte-carlo #particle #physics #id #scheme #numbering #pdg

particle_id

Particle IDs according to the Monte Carlo Particle Numbering Scheme

5 releases (breaking)

0.5.0 Nov 29, 2023
0.4.0 Jul 5, 2023
0.3.0 Jun 16, 2023
0.2.0 Jun 15, 2023
0.1.0 Jun 15, 2023

#257 in Science

Download history 38/week @ 2024-01-11 5/week @ 2024-01-18 10/week @ 2024-02-15 77/week @ 2024-02-22 15/week @ 2024-02-29 14/week @ 2024-03-07 9/week @ 2024-03-14 9/week @ 2024-03-21 30/week @ 2024-03-28

62 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

~180KB