Commit 9411548f authored by Simon Spannagel's avatar Simon Spannagel
Browse files

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

(cherry picked from commit a8c03dbf)
parent 6669808c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -334,7 +334,7 @@ double DefaultDigitizerModule::time_of_arrival(const PixelCharge& pixel_charge,
        double integrated_charge = 0;
        for(bin = charges.begin(); bin != charges.end(); bin++) {
            integrated_charge += *bin;
            if(integrated_charge >= threshold) {
            if(std::abs(integrated_charge) >= threshold) {
                break;
            }
        }