tudo-astroparticlephysics / PROPOSAL

Monte Carlo Simulation propagating charged Leptons through Media as C++ Library
GNU Lesser General Public License v3.0
35 stars 21 forks source link

Fix energy-momentum conservation in Compton secondaries production #348

Closed Jean1995 closed 1 year ago

Jean1995 commented 1 year ago

This PR fixes the secondaries calculator in the Compton secondaries calculator.

So far, the rest mass of the atomic electron has been neglected. The formulae for the angles calculation also weren't accurate.

The new implementation is also validated with a UnitTest, which checks for energy and momentum conservation (which is the assumption we put into this interaction)