API Reference#

ctao_cr_spectra Package#

Reference Cosmic Ray Spectra definitions.

Functions#

calculate_event_weights(true_energy, ...)

Calculate event weights.

Classes#

PowerLaw(normalization, index[, e_ref])

A power law with normalization, reference energy and index.

LogParabola(normalization, a, b[, e_ref])

A log parabola flux parameterization.

PowerLawWithExponentialGaussian(...)

A power law with an additional Gaussian bump.

TableInterpolationSpectrum(energy, flux[, ...])

Spectrum interpolating tabulated values.

Variables#

__version__

str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

POINT_SOURCE_FLUX_UNIT

Create a composite unit using expressions of previously defined units.

DIFFUSE_FLUX_UNIT

Create a composite unit using expressions of previously defined units.

CRAB_HEGRA

A power law with normalization, reference energy and index.

CRAB_MAGIC_JHEAP2015

A log parabola flux parameterization.

PDG_ALL_PARTICLE

A power law with normalization, reference energy and index.

IRFDOC_PROTON_SPECTRUM

A power law with normalization, reference energy and index.

IRFDOC_ELECTRON_SPECTRUM

A power law with an additional Gaussian bump.

DAMPE_P_He_SPECTRUM

Spectrum interpolating tabulated values.