I’d like to announce a tiny package which was created by Johannes Schumann and myself to deal with PDG particle data and different particle encodings in physics software.
The package converts Pythia and Geant3 codes to PDG codes and provides access to particle properties like mass, spin, charge, quark composition etc. and also LaTeX codes.
GitHub repository: GitHub - JuliaPhysics/Corpuscles.jl: Julia package for particle physics
Docs: https://km3net.github.io/Corpuscles.jl/dev
We hope some of you find it useful, at least as a reference
pkg> add Corpuscles
julia> using Corpuscles
julia> p = Particle(12)
Particle(12) 'nu(e)'
julia> Particle(Geant3ID(5))
Particle(-13) 'mu'
julia> particles()
536-element Array{Particle,1}:
Particle(-21114) 'Delta(1920)'
Particle(12) 'nu(e)'
Particle(-11) 'e'
⋮
Particle(43122) 'Lambda(1800)'
Particle(-4332) 'Omega(c)'
Particle(2126) 'Delta(1905)'
julia> p = Particle(221)
Particle(221) 'eta'
julia> p.mass
547.862 MeV ± 0.017 MeV
We decided to use Unitful.jl for the quantities mass
and width
in struct
which also has the lower_limit
and upper_limit
.