Skip to main content

Translating particle codes from CR models from/to PDG codes

Project description

particletools

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.)

Status

This version is stable.

Documentation

The latest version of the documentation can be found here.

Requirements

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

Installation

pip install particletools

Quickstart

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
print_decay_channels(221)
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+

Contributors

  • 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.6.tar.gz (50.0 kB view details)

Uploaded Source

Built Distribution

particletools-1.1.6-py2.py3-none-any.whl (52.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file particletools-1.1.6.tar.gz.

File metadata

  • Download URL: particletools-1.1.6.tar.gz
  • Upload date:
  • Size: 50.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.9

File hashes

Hashes for particletools-1.1.6.tar.gz
Algorithm Hash digest
SHA256 c0209171b23a9cb4263c49051cd7a92275469c9ab9305b6640a9bdcda401bb2d
MD5 79cdb77967d99563b662e9d652c15ebb
BLAKE2b-256 9a2846aa923696a31eeff5ab2166fd52219b58c34ab83a17e620a98057e46c99

See more details on using hashes here.

File details

Details for the file particletools-1.1.6-py2.py3-none-any.whl.

File metadata

  • Download URL: particletools-1.1.6-py2.py3-none-any.whl
  • Upload date:
  • Size: 52.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.9

File hashes

Hashes for particletools-1.1.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d7b35a81579c5de77924d79d2b2c20d5165050cfe0d5eeb37b955bab23400417
MD5 12e6e481730cdf9f977d3c8cf355b224
BLAKE2b-256 2004a284883362bcc2367eaee7f289d3bee1c0d0cf9eb8409e60291f753a14d5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page