Commit 365c83bd authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Distributions: use our own uniform_real_ditribution (via boost)

parent d8766128
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -428,7 +428,7 @@ GenericPropagationModule::propagate(const ROOT::Math::XYZPoint& pos,
    };

    // Survival probability of this charge carrier package, evaluated at every step
    std::uniform_real_distribution<double> survival(0, 1);
    allpix::uniform_real_distribution<double> survival(0, 1);

    // Define lambda functions to compute the charge carrier velocity with or without magnetic field
    std::function<Eigen::Vector3d(double, const Eigen::Vector3d&)> carrier_velocity_noB =
+1 −1
Original line number Diff line number Diff line
@@ -353,7 +353,7 @@ void ProjectionPropagationModule::run(Event* event) {
            LOG(TRACE) << "Diffusion width is " << Units::display(diffusion_std_dev, "um");

            // Check if charge carrier is still alive via its survival probability, evaluated once
            std::uniform_real_distribution<double> survival(0, 1);
            allpix::uniform_real_distribution<double> survival(0, 1);
            if(recombination_(
                   type, detector_->getDopingConcentration(position), survival(event->getRandomEngine()), drift_time)) {
                LOG(DEBUG) << "Recombined " << charge_per_step << " charge carriers (" << type << ") at "
+1 −1
Original line number Diff line number Diff line
@@ -360,7 +360,7 @@ TransientPropagationModule::propagate(Event* event,
    };

    // Survival probability of this charge carrier package, evaluated at every step
    std::uniform_real_distribution<double> survival(0, 1);
    allpix::uniform_real_distribution<double> survival(0, 1);

    // Define lambda functions to compute the charge carrier velocity with or without magnetic field
    std::function<Eigen::Vector3d(double, const Eigen::Vector3d&)> carrier_velocity_noB =