Energy split drawing implemented;

Debugging output still present, energy split hard coded
This commit is contained in:
2025-02-28 17:13:34 +01:00
parent 62e3c27ba4
commit 51877687b1
10 changed files with 482 additions and 23 deletions
@@ -46,15 +46,21 @@ class PositionDistributionFromDensity {
// draw a position from the density provided at construction using the rejection method
CylinderCoordinate drawPosition(std::mt19937* engine);
CylinderCoordinate drawPosition(std::mt19937* engine, double energy_split, bool above);
// sets the maximum density value needed for the rejection method
// should not be called frequently, since during each call the density field is
// recalculated from scratch by the DynamicDensityField object
void setMaximumDensity();
void setMaximumDensityAboveAndBelow(double energy_split);
private:
// variable storing the maximum value of the density
double maximum_density_ = 1.;
double maximum_density_below_ = 1.;
double maximum_density_above_ = 1.;
std::shared_ptr<DynamicDensityField> density_;
// distributions for the spatial directions and for the density