PrimaryFlux#

class gammapy.astro.darkmatter.PrimaryFlux[source]#

Bases: TemplateNDSpectralModel

DM-annihilation gamma-ray spectra.

Based on the precomputed models by Cirelli et al. (2016). All available annihilation channels can be found there. The dark matter mass will be set to the nearest available value. The spectra will be available as TemplateNDSpectralModel for a chosen dark matter mass and annihilation channel. Using a TemplateNDSpectralModel allows the interpolation between different dark matter masses.

Parameters:
mDMQuantity

Dark matter particle mass as rest mass energy.

channel: str

Annihilation channel. List available channels with allowed_channels.

References

Attributes Summary

allowed_channels

List of allowed annihilation channels.

channel

Annihilation channel as a string.

channel_registry

default_parameters

mDM

Dark matter mass.

table_filename

tag

Methods Summary

evaluate(energy, **kwargs)

Evaluate the primary flux.

Attributes Documentation

allowed_channels#

List of allowed annihilation channels.

channel#

Annihilation channel as a string.

channel_registry = {'V->e': 'V->e', 'V->mu': 'V->\\[Mu]', 'V->tau': 'V->\\[Tau]', 'W': 'W', 'WL': 'WL', 'WT': 'WT', 'Z': 'Z', 'ZL': 'ZL', 'ZT': 'ZT', 'b': 'b', 'c': 'c', 'e': 'e', 'eL': 'eL', 'eR': 'eR', 'g': 'g', 'gamma': '\\[Gamma]', 'h': 'h', 'mu': '\\[Mu]', 'muL': '\\[Mu]L', 'muR': '\\[Mu]R', 'nu_e': '\\[Nu]e', 'nu_mu': '\\[Nu]\\[Mu]', 'nu_tau': '\\[Nu]\\[Tau]', 'q': 'q', 't': 't', 'tau': '\\[Tau]', 'tauL': '\\[Tau]L', 'tauR': '\\[Tau]R'}#
default_parameters = <gammapy.modeling.parameter.Parameters object>#
mDM#

Dark matter mass.

table_filename = '$GAMMAPY_DATA/dark_matter_spectra/AtProduction_gammas.dat'#
tag = ['PrimaryFlux', 'dm-pf']#

Methods Documentation

evaluate(energy, **kwargs)[source]#

Evaluate the primary flux.

__init__(mDM, channel)[source]#
classmethod __new__(*args, **kwargs)#