Commit 5685febf authored by Simon Spannagel's avatar Simon Spannagel
Browse files

PixelDetectorModel: fix pixel center position - this was changed in !580 and...

PixelDetectorModel: fix pixel center position - this was changed in !580 and accidentially reverted in !586
parent 1b28e423
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -73,9 +73,7 @@ ROOT::Math::XYZPoint PixelDetectorModel::getPixelCenter(unsigned int x, unsigned
    auto size = getPixelSize();
    auto local_x = size.x() * x;
    auto local_y = size.y() * y;
    auto local_z = getSensorCenter().z() - getSensorSize().z() / 2.0;

    return {local_x, local_y, local_z};
    return {local_x, local_y, 0};
}

std::pair<int, int> PixelDetectorModel::getPixelIndex(const ROOT::Math::XYZPoint& position) const {