Dark Matter Spectra from the Electroweak to the Planck Scale
Tabulated dark matter decay and annihilation spectra for dark matter masses between the TeV and Planck scale. The spectra are similar in spirit to PPPC4DMID, however with a number of improvements that become relevant for masses above the weak scale.
NB: All spectra provided are prompt, no propagation effects are included.
If these spectra are used in published work, please cite 2007.15001.
- Christian Bauer
- Nicholas Rodd
- Bryan Webber
Please direct any questions or issues to [email protected].
HDMSpectra is written entirely in python. It should be installed by executing the following command from the base directory
python setup.py install
The code is designed for use with python 3 and depends on the following packages: numpy, scipy, and h5py. In most cases, the setup script above will install any missing dependencies in addition to HDMSpectra. In certain instances, the installation may fail if it is unable to download and install h5py. If you encounter this issue, manually installing h5py (using for example pip: pip install h5py
) and then attempting the HDMSpectra installation again often resolves the issue.
The package can be used with python 2, although it is not recommended. The dependencies can be harder to install as pip has deprecated python 2, and so an older version of pip may be required. (Thanks to Pat Harding for drawing this to our attention.)
If you encounter any issues in the installation, please reach out to [email protected].
A demonstration of how to access the basic features of HDMSpectra is provided here. An example of how to reproduce many of the figures in 2007.15001 can be found here.
As a minimal example, the 1 EeV spectrum in the figure above can be generated as follows
import numpy as np
from HDMSpectra import HDMSpectra
x = np.logspace(-4.,0.,1000)
dNdx = HDMSpectra.spec(22, 5, x, 1.e9, './data/HDMSpectra.hdf5')