Skip to main content

Translating particle codes from CR models from/to PDG codes

Project description


This single Python module around an XML data file provides some convenient functions for people working with properties of physical particles (protons, pions, D-mesons, etc.)


This version is stable.


The latest version of the documentation can be found here.


The package is universal and should work with all Python versions above 2.7.


pip install particletools


The purpose of this tools is to provide library-like features to convert particle names into PDG IDs, the particle codes of some common event generators, or to obtain their masses and decay channels. The below example demonstrates how to look up the branching ratios of some particle.

from particletools.tables import print_decay_channels
eta decays into:
        39.3824%, gamma, gamma
        32.512%, pi0, pi0, pi0
        22.7%, pi+, pi-, pi0
        4.69%, pi+, pi-, gamma
        0.6%, gamma, e-, e+
        0.044%, pi0, gamma, gamma
        0.04%, pi+, pi-, e-, e+
        0.031%, gamma, mu-, mu+
        0.0006%, mu-, mu+


  • Hans Dembinski (github:HDembinski)
  • Sonia El Hadri (github:soso128)

MIT License

Code and documentation copyright 2015-2020 Anatoli Fedynitch

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

particletools-1.1.7.tar.gz (50.6 kB view hashes)

Uploaded source

Built Distribution

particletools-1.1.7-py2.py3-none-any.whl (52.0 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page