Hazma

hazma.decay.charged_kaon

hazma.decay.charged_kaon(eng_gam, eng_k)

Compute dNdE from charged kaon decay.

Compute dNdE from decay of charged kaon through \(K\to X\) in the laboratory frame given a gamma ray engergy of eng_gam and charged kaon energy of eng_k.

Parameters:
  • eng_gam (float or numpy.ndarray) – Gamma ray energy(ies) in laboratory frame.
  • eng_k (float) – Charged kaon energy in laboratory frame.
Returns:

spec (np.ndarray) – List of gamma ray spectrum values, dNdE, evaluated at eng_gams given muon energy eng_mu.

Notes

The decay modes impemendted are

\[K^{\pm} \to \mu^{\pm} + \nu_{\mu}\]
\[K^{\pm} \to \pi^{\pm} + \pi^{0}\]
\[K^{\pm} \to \pi^{\pm} + \pi^{\mp} + \pi^{\pm}\]
\[K^{\pm} \to e^{\pm} + \nu_{e}\]
\[K^{\pm} \to \mu^{\pm} + \nu_{\mu} + \pi^{0}\]
\[K^{\pm} \to \pi^{\pm} + \pi^{0} + \pi^{0}\]

Examples

Calculate spectrum for single gamma ray energy

>>> from hazma import decay
>>> eng_gam, eng_k = 200., 1000.
>>> spec = decay.charged_kaon(eng_gam, eng_k)

Calculate spectrum for array of gamma ray energies

>>> from hazma import decay
>>> import numpy as np
>>> eng_gams = np.logspace(0.0, 3.0, num=200, dtype=float)
>>> eng_k = 1000.
>>> spec = decay.charged_kaon(eng_gams, eng_k)

Built with Sphinx using a RiboKit Theme . Hosted on GitHub Pages.

© Copyright 2017, Logan A. Morrison.