Commit 4a0df8ce authored by Simon Spannagel's avatar Simon Spannagel
Browse files

DetectorModel: fix calculation of pixel center - don't use sensor but pixel size. Fixup from !515

parent 3c61e991
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -212,7 +212,7 @@ bool DetectorModel::isWithinPixelGrid(const int x, const int y) const {
}

ROOT::Math::XYZPoint DetectorModel::getPixelCenter(unsigned int x, unsigned int y) const {
    auto size = getSize();
    auto size = getPixelSize();
    auto local_x = size.x() * x;
    auto local_y = size.y() * y;
    auto local_z = getSensorCenter().z() - getSensorSize().z() / 2.0;