You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I looked into the EMPairProduction module and wondered if the order of the lines, checking first for secondary electron-positron-pairs to be injected and returning otherwise (l. 180) // check if secondary electron pair needs to be produced if (not haveElectrons) return;
and later deactivating the candidate for the catastrophic energyloss (l. 206) // photon is lost after interacting candidate->setActive(false);
are necessary in that way, maybe connected to preventing the sporadic failures adressed by (f054f9e).
If I see it correctly, I think a problem of the order could be, that in case of haveElectrons=False no catastrophic energy-loss can be applied. I changed the order for myself and if it would indeed be a bug, I could provide a fix together with two very small optimizations @JulienDoerner and me looked on, in EMDoublePairProduction and EMInverseComptonScattering.
Many thanks
Leander
The text was updated successfully, but these errors were encountered:
Dear all,
I looked into the EMPairProduction module and wondered if the order of the lines, checking first for secondary electron-positron-pairs to be injected and returning otherwise (l. 180)
// check if secondary electron pair needs to be produced if (not haveElectrons) return;
and later deactivating the candidate for the catastrophic energyloss (l. 206)
// photon is lost after interacting candidate->setActive(false);
are necessary in that way, maybe connected to preventing the sporadic failures adressed by (f054f9e).
If I see it correctly, I think a problem of the order could be, that in case of haveElectrons=False no catastrophic energy-loss can be applied. I changed the order for myself and if it would indeed be a bug, I could provide a fix together with two very small optimizations @JulienDoerner and me looked on, in EMDoublePairProduction and EMInverseComptonScattering.
Many thanks
Leander
The text was updated successfully, but these errors were encountered: