Hi Dr Fang,
I would like to know if there is a way to provide user-defined post-scattering photon energies which are dependent on the angle of scatter.
We had a brief email discussion a few months ago regarding using MCX for X-Ray Compton scatter simulations. From this, I had tested out a simulation pipeline in Geant4, which although provided me with pretty physically accurate results - was impractically slow for my use case as it was CPU bound. So much so that I am very much looking into MCX again as I will likely not need the simulation of secondary particles (as it would have a negligible effect on results).
For the simulations that I'm working on, I would really only need to concern myself with Compton scattering, which should hopefully simplify the process of adapting MCX to a limited subset of X-Ray phenomena. I should (hopefully) be able to formulate a discretised inverse CDF of the Klein-Nishina Compton scattering model to feed into MCX, however, the challenge arises when considering that the energy of the X-ray photon changes depending on the scattering angle, determined by the Compton energy formula:
I have been looking at the MCX implementation and pipeline flow, but can't seem to determine a place where this can be easily implemented without a bit of tweaking to the MCX codebase itself - so I suppose my primary enquiry would be if it is possible to have custom scattering energies dependent on incident photon energy and its scatter angle, and whether that would be a hefty modification if so.
Thanks for all the work you've done so far!
Kind regards,
Sam