Unit tests Gauss and Binomial fail
The unit tests GaussTest
and BinomialTest
fail with NaNs.
I investigated a bit and this is because in Distribution::adjustPhaseSpace() totalNumberParticles_m is 0 (division by zero).
Right now the test do the following:
Distribution dist;
... // set attributes
dist.setDistType();
dist.checkIfEmitted();
size_t numParticles = 1e7;
dist.create(numParticles, Physics::m_p);
Possibly these shouldn't call the private create() directly?