Skip to content
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

Electron-positron pair production: Numerical instable energy asymmetry sampling #382

Open
Jean1995 opened this issue Dec 6, 2023 · 2 comments

Comments

@Jean1995
Copy link
Member

Jean1995 commented Dec 6, 2023

For electron-positron pair production by photons: When sampling the energy asymmetry x = E_electron / (E_electron + E_positron), one would expect a symmetric distribution.

If I sample a distribution for x, however, this is not fulfilled. See this example where I sample x for a photon energy of 10 MeV:

image

Same problem for Tsai instead of KochMotz:

image

The issue persists when going to higher energies, here for a photon energy of 1e5 MeV:

image

image

In each case, X Interpol refers to the secondary calculation using the CrossSectionInterpol functions, while X Integral refers to calculations based on the CrossSectionIntegral functions. The integral calculations seems to be fine, while only the interpol calculations behave incorrectly.

@Jean1995
Copy link
Member Author

Jean1995 commented Dec 6, 2023

Related to #349 and #345

@Jean1995
Copy link
Member Author

Jean1995 commented Dec 6, 2023

I have openened a PR (#383) where I attempted a fix. This at least fixes the issue for high-energies (where pairproduction is also the dominant process), but it is not able to completely fix the problem at lower energies.

Please feel free to add suggestions for improvements

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant