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

PulseTransfer: reserve fulll vector size ahead

parent f217b6df
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -181,6 +181,7 @@ void PulseTransferModule::run(Event* event) {

    // Create vector of pixel pulses to return for this detector
    std::vector<PixelCharge> pixel_charges;
    pixel_charges.reserve(pixel_pulse_map.size());
    Pulse total_pulse;
    for(auto& [index, pulse] : pixel_pulse_map) {
        // Sum all pulses for informational output: