Commit dd10f294 authored by Paul Schütze's avatar Paul Schütze
Browse files

Merge branch 'fix_pixel_center' into 'master'

DetectorModel: fix calculation of pixel center

See merge request allpix-squared/allpix-squared!540
parents 3c61e991 4a0df8ce
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;