Skip to content

Fix MomentumSpectrum to not generate the same particle twice

Sascha Stahl requested to merge momentumSprectrum into master

When using generator level cuts and MomentumSpectrum it could happen that one ended up in infinite loop. This fix sets the seed only for the first call of generateParticle in an event.

Closes LHCBGAUSS-842

Edited by Sascha Stahl

Merge request reports

Loading