Commit 30dbc385 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

DetectorHistogrammer add back casts to unsigned int, we haven't merged that change yet... :/

parent 0fb35e32
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -374,7 +374,8 @@ void DetectorHistogrammerModule::run(Event* event) {
            // Find the nearest pixel
            auto [xpixel, ypixel] = detector_->getModel()->getPixelIndex(particlePos);

            auto inPixelPos = particlePos - detector_->getModel()->getPixelCenter(xpixel, ypixel);
            auto inPixelPos = particlePos - detector_->getModel()->getPixelCenter(static_cast<unsigned int>(xpixel),
                                                                                  static_cast<unsigned int>(ypixel));
            auto inPixel_um_x = static_cast<double>(Units::convert(inPixelPos.x(), "um"));
            auto inPixel_um_y = static_cast<double>(Units::convert(inPixelPos.y(), "um"));

@@ -426,7 +427,8 @@ void DetectorHistogrammerModule::run(Event* event) {
        // Find the nearest pixel
        auto [xpixel, ypixel] = detector_->getModel()->getPixelIndex(particlePos);

        auto inPixelPos = particlePos - detector_->getModel()->getPixelCenter(xpixel, ypixel);
        auto inPixelPos = particlePos - detector_->getModel()->getPixelCenter(static_cast<unsigned int>(xpixel),
                                                                              static_cast<unsigned int>(ypixel));
        auto inPixel_um_x = static_cast<double>(Units::convert(inPixelPos.x(), "um"));
        auto inPixel_um_y = static_cast<double>(Units::convert(inPixelPos.y(), "um"));