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

Fixing compilation errors by getting centre and size correctly (rather than wrongly)

parent 8386c4ef
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -122,7 +122,11 @@ void DopingProfileReaderModule::create_output_plots() {

    // If we need to plot a single pixel, we use size and position of the pixel at the origin
    auto single_pixel = config_.get<bool>("output_plots_single_pixel", true);
    auto center = (single_pixel ? model->getPixelCenter(0, 0) : model->getSensorCenter());
    auto center = (single_pixel ? ROOT::Math::XYZPoint(detector_->getPixel(0, 0).getLocalCenter().x(),
                                                       detector_->getPixel(0, 0).getLocalCenter().y(),
                                                       0)
                                : model->getSensorCenter());

    auto size =
        (single_pixel
             ? ROOT::Math::XYZVector(model->getPixelSize().x(), model->getPixelSize().y(), model->getSensorSize().z())