CRPropa / CRPropa3

CRPropa is a public astrophysical simulation framework for propagating extraterrestrial ultra-high energy particles. https://crpropa.github.io/CRPropa3/
https://crpropa.desy.de
GNU General Public License v3.0
68 stars 67 forks source link

Photon field unified sampling #364

Closed reichherzerp closed 2 years ago

reichherzerp commented 2 years ago

First step to unify the sampling routine. IRB and CMB use the same for loop to find the photon in the interaction.

Also, removed the computation of cnorm for performance improvement.