Skip to content
Snippets Groups Projects
Commit 28c75fdd authored by Stephan Hageboeck's avatar Stephan Hageboeck
Browse files

[Math] Fix divide by zero in TFoam.

When TFoam is pre-sampling a phase space, it may divide by zero if for
some reason the event weight being generated is zero. This stops the generator
loop, and leads to a fp exception when enabled.
With this fix, the loop is kept running until the desired number of events
has been generated.
parent 52540c99
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment