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

#643 in Science

46 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

~165KB