Hazma

hazma.decay.short_kaon

hazma.decay.short_kaon(eng_gam, eng_k)

Compute dNdE from short kaon decay.

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

Parameters:
  • eng_gam (double 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_{S} \to \pi^{+} + \pi^{-}\]
\[K_{S} \to \pi^{0} + \pi^{0}\]

Examples

Calculate spectrum for single gamma ray energy

>>> from hazma import decay
>>> eng_gam, eng_ks = 200., 1000.
>>> spec = decay.short_kaon(eng_gam, eng_ks)

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_ks = 1000.
>>> spec = decay.short_kaon(eng_gams, eng_ks)

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

© Copyright 2017, Logan A. Morrison.