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

DefaultDigitizer: ToA calculation should use absolute charge to compare against threshold

parent 8ada6888
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -365,7 +365,7 @@ double DefaultDigitizerModule::time_of_arrival(const PixelCharge& pixel_charge,
        double integrated_charge = 0;
        for(; bin != pulse.end(); bin++) {
            integrated_charge += *bin;
            if(integrated_charge >= threshold) {
            if(std::abs(integrated_charge) >= threshold) {
                break;
            }
        }