Closed Jean1995 closed 1 year ago
So the questions are,
But for now, you are right, it does not make sense to draw this additional random number.
- is the distribution symmetric in rho?
While the KochMotz parametrization is completely symmetric in rho, the parametrization of Tsai surprisingly isn't. It is for E >> m_e, but otherwise, there is an asymmetry. It appears when transforming the differential cross section from dsigma/dp (with p the absolute electron momentum) to dsigma/dx.
I have to think a bit more about why this is happening.
I would open a new issue about the idea of sampling rho between 0 and 0.5.
I noticed that in
PhotoPairProductionInterpolant::CalculateEnergy
, there is a step where we "randomize" how we distribute the energy between the electron and positron.However, for this parametrization,
rho
(or in literature rather known asx
, the ratio of the electron and photon energy) is already between [0, 1). This means we don't need to randomize the distribution.This is probably a remnant from other classes, where
rho
is just sampled between [0, 1) due to the symmetry of the function. However, this is not implemented for PhotoPairProduction (although it could be implemented).Therefore, we don't need 5, but 4 random numbers here.