hazma.gamma_ray.
gamma_ray
(particles, cme, eng_gams, mat_elem_sqrd=<function <lambda>>, num_ps_pts=1000, num_bins=25)¶Returns total gamma ray spectrum from a set of particles.
Blah and blah.
Parameters: |
|
---|---|
Returns: | spec (np.ndarray) – Total gamma ray spectrum from all final state particles. |
Notes
The total spectrum is computed using
where \(i\) runs over the final state particles, \(j\) runs over energies sampled from probability distributions. \(P_{i}(E_{j})\) is the probability that particle \(i\) has energy \(E_{j}\). The probabilities are computed using hazma.phase_space_generator.rambo. The total number of energies used is num_bins.
Examples
Example of generating a spectrum from a muon, charged kaon and long kaon with total energy of 5000 MeV.
>>> from hazma.gamma_ray import gamma_ray
>>> import numpy as np
>>>
>>> particles = np.array(['muon', 'charged_kaon', 'long_kaon'])
>>> cme = 5000.
>>> eng_gams = np.logspace(0., np.log10(cme), num=200, dtype=np.float64)
>>>
>>> spec = gamma_ray(particles, cme, eng_gams)
Built with Sphinx using a RiboKit Theme . Hosted on GitHub Pages.
© Copyright 2017, Logan A. Morrison.