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

TransProp/Trapping: Actually fill recombination_time histogram

(cherry picked from commit d66df3fe)
parent 6c517f62
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -255,12 +255,15 @@ void TransientPropagationModule::run(Event* event) {

            propagated_charges.push_back(std::move(propagated_charge));

            if(alive) {
                propagated_charges_count += charge_per_step;
            if(!alive) {
                recombined_charges_count += charge_per_step;
                if(output_plots_) {
                    recombination_time_histo_->Fill(static_cast<double>(Units::convert(time, "ns")), charge_per_step);
                }
            } else if(trapped) {
                trapped_charges_count += charge_per_step;
            } else {
                recombined_charges_count += charge_per_step;
                propagated_charges_count += charge_per_step;
            }

            if(output_plots_) {