-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing support for most current IRB fields & retrieval of CRPropa2 data tables for ElectronPairProduction #282
Comments
Hi @Froehliche-Kernschmelze |
Hi, When comparing with the electron SED available in CRPropa for interactions with the CMB I noticed some very peculiar distributions in the CRPropa table for very low proton energies. At/Below ~5e15eV the tabulated distribution suddenly transitions to a very different shape. This is both in disagreement with the results of the K&A parametrisation and with basic physics -- when approaching the threshold for pair production the energy of the electron-positron pair should take on a fixed value and the distribution be very peaked instead of flat and extending all the way to the proton energy.
Irrespective of this particular issue, it would be great if CRPropa(-data) could generate the Bethe-Heitler electron SED for custom photon fields. Including the K&A parametrisation would be one way to do so. |
Hi @ehlertdo |
I linked a preliminary version in my comment above. At the moment it requires numba to achieve a reasonable performance since I implemented the triple integral as a series of nested 'for' loops. Initially I thought that the inner integrals could be vectorised in a similar way to what was done for the photopion production in interactionRate.py, however, because here we have a double-differential cross section the vectorisation is less straightforward to do. An alternative to numba would be to implement the loops in C/C++. I will clean up the code and submit a pull request at some point. |
Hi everyone,
for the future custom photon fields to properly work on the ElectronPairProduction module, I need to be able to reproduce the data files being read in by this module. There is supposed to be one background photon file for each background, however, with only the CMB and the IRB_Kneiske04 existing for this module.
A look into the CRPropa3-data repo where there is a script calc_pairproduction.py responsible for generating data related to the ElectronPairProduction module revealed:
The tables which are loaded to exist in the data repo yet I could not find any script producing these (and in particular not in the CRPropa2 repository). Hence, I see two ways to proceed here:
Cheers,
Mario
The text was updated successfully, but these errors were encountered: