[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.
Loading
Please register or sign in to comment