Commit 08d1bf59 authored by Paul Schütze's avatar Paul Schütze Committed by Simon Spannagel
Browse files

Custom trapping: no need to depend on the timestep

parent b98e4dbb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -182,8 +182,8 @@ namespace allpix {
        bool operator()(const CarrierType& type, double probability, double timestep, double efield_mag) const override {
            return probability <
                   (1 - std::exp(-1. * timestep /
                                 (type == CarrierType::ELECTRON ? tf_tau_eff_electron_->Eval(timestep, efield_mag)
                                                                : tf_tau_eff_hole_->Eval(timestep, efield_mag))));
                                 (type == CarrierType::ELECTRON ? tf_tau_eff_electron_->Eval(efield_mag)
                                                                : tf_tau_eff_hole_->Eval(efield_mag))));
        };

    private: