Energy split drawing implemented;
Debugging output still present, energy split hard coded
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user