Commit e180d9e2 authored by Håkan Wennlöf's avatar Håkan Wennlöf
Browse files

Changed log to use Units::display; more elegant.

parent c5c99080
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -401,9 +401,9 @@ void DetectorHistogrammerModule::run(Event* event) {

        if(particlePos.x() < -pitch.x() / 2 || particlePos.x() > noOfPixels.x() * pitch.x() - pitch.x() / 2 ||
           particlePos.y() < -pitch.y() / 2 || particlePos.y() > noOfPixels.y() * pitch.y() - pitch.y() / 2) {
            LOG(DEBUG) << "Particle at local coordinates x = " << particlePos.x() << " mm"
                       << ", y = " << particlePos.y()
                       << " mm hit in the sensor excess; removing from efficiency calculation.";
            LOG(DEBUG) << "Particle at local coordinates x = " << Units::display(particlePos.x(), {"mm", "um"})
                       << ", y = " << Units::display(particlePos.y(), {"mm", "um"})
                       << " hit in the sensor excess; removing from efficiency calculation.";
            continue;
        }