It might be useful to have the ability to compute scattering between electron macroparticles and photon macroparticles.
Note that we could reuse parts of the FBPIC implementation (which itself is based on an earlier implementation in Warp):
https://github.com/fbpic/fbpic/blob/dev/fbpic/particles/elementary_process/compton/inline_functions.py#L43
(The implementation in FBPIC is for scattering between electron macroparticles and a background density of photons - instead of photon macroparticles. However, the above probability function could be reused for binary collisions between macroparticles.)
It might be useful to have the ability to compute scattering between electron macroparticles and photon macroparticles.
Note that we could reuse parts of the FBPIC implementation (which itself is based on an earlier implementation in Warp): https://github.com/fbpic/fbpic/blob/dev/fbpic/particles/elementary_process/compton/inline_functions.py#L43 (The implementation in FBPIC is for scattering between electron macroparticles and a background density of photons - instead of photon macroparticles. However, the above probability function could be reused for binary collisions between macroparticles.)
We could also reuse this test case for automated testing: https://github.com/fbpic/fbpic/blob/dev/tests/test_compton.py