Commit e0013371 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Propagation modules: minimal-invasive setting of carrier state

parent a94d0afc
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -644,6 +644,7 @@ void GenericPropagationModule::run(Event* event) {
                                               charge_per_step,
                                               deposit.getLocalTime() + time,
                                               deposit.getGlobalTime() + time,
                                               (alive ? CarrierState::MOTION : CarrierState::RECOMBINED),
                                               &deposit);

            propagated_charges.push_back(std::move(propagated_charge));
+8 −2
Original line number Diff line number Diff line
@@ -328,8 +328,14 @@ void ProjectionPropagationModule::run(Event* event) {
            auto global_position = detector_->getGlobalPosition(local_position);

            // Produce charge carrier at this position
            propagated_charges.emplace_back(
                local_position, global_position, deposit.getType(), charge_per_step, local_time, global_time, &deposit);
            propagated_charges.emplace_back(local_position,
                                            global_position,
                                            deposit.getType(),
                                            charge_per_step,
                                            local_time,
                                            global_time,
                                            CarrierState::MOTION,
                                            &deposit);

            LOG(DEBUG) << "Propagated " << charge_per_step << " " << type << " to "
                       << Units::display(local_position, {"mm", "um"}) << " in " << Units::display(global_time, "ns")
+1 −0
Original line number Diff line number Diff line
@@ -204,6 +204,7 @@ void TransientPropagationModule::run(Event* event) {
                                               std::move(px_map),
                                               deposit.getLocalTime() + time,
                                               deposit.getGlobalTime() + time,
                                               (alive ? CarrierState::MOTION : CarrierState::RECOMBINED),
                                               &deposit);

            LOG(DEBUG) << " Propagated " << charge_per_step << " to " << Units::display(local_position, {"mm", "um"})