#ifndef EVENT_POSITION_DISTRIBUTION_H #define EVENT_POSITION_DISTRIBUTION_H #include #include #include "simulation/coordinates.h" #include "simulation/scalar_field.h" #include "simulation/density_field.h" struct Limit { Limit() : min(0), max(0){}; Limit(double min, double max) : min(min), max(max){}; double min; double max; }; // Might be possible to generalize the distributions (i.e. create parent class // and let the two that are defined now inherit from it) class EventPositionDistribution { public: EventPositionDistribution(std::shared_ptr mother_density, Limit density, Limit r_position, Limit phi_position, Limit z_position); CylinderCoordinate rollPosition(std::mt19937* engine); private: std::shared_ptr mother_density_; // for Rejection method std::uniform_real_distribution r_values; std::uniform_real_distribution z_values; std::uniform_real_distribution phi_values; std::uniform_real_distribution density_values; }; #endif /* EVENT_POSITION_DISTRIBUTION_H */