Loading src/core/geometry/PixelDetectorModel.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -70,7 +70,7 @@ bool PixelDetectorModel::isWithinMatrix(const int x, const int y) const { return !(x < 0 || x >= static_cast<int>(number_of_pixels_.x()) || y < 0 || y >= static_cast<int>(number_of_pixels_.y())); } ROOT::Math::XYZPoint DetectorModel::getPixelCenter(const int x, const int y) const { ROOT::Math::XYZPoint PixelDetectorModel::getPixelCenter(const int x, const int y) const { auto size = getPixelSize(); auto local_x = size.x() * x; auto local_y = size.y() * y; Loading src/core/geometry/PixelDetectorModel.hpp +1 −1 Original line number Diff line number Diff line Loading @@ -76,7 +76,7 @@ namespace allpix { * @param y Y- (or row-) coordinate of the pixel * @return Coordinates of the pixel center */ ROOT::Math::XYZPoint getPixelCenter(unsigned int x, unsigned int y) const override; ROOT::Math::XYZPoint getPixelCenter(const int x, const int y) const override; /** * @brief Return X,Y indices of a pixel corresponding to a local position in a sensor. Loading Loading
src/core/geometry/PixelDetectorModel.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -70,7 +70,7 @@ bool PixelDetectorModel::isWithinMatrix(const int x, const int y) const { return !(x < 0 || x >= static_cast<int>(number_of_pixels_.x()) || y < 0 || y >= static_cast<int>(number_of_pixels_.y())); } ROOT::Math::XYZPoint DetectorModel::getPixelCenter(const int x, const int y) const { ROOT::Math::XYZPoint PixelDetectorModel::getPixelCenter(const int x, const int y) const { auto size = getPixelSize(); auto local_x = size.x() * x; auto local_y = size.y() * y; Loading
src/core/geometry/PixelDetectorModel.hpp +1 −1 Original line number Diff line number Diff line Loading @@ -76,7 +76,7 @@ namespace allpix { * @param y Y- (or row-) coordinate of the pixel * @return Coordinates of the pixel center */ ROOT::Math::XYZPoint getPixelCenter(unsigned int x, unsigned int y) const override; ROOT::Math::XYZPoint getPixelCenter(const int x, const int y) const override; /** * @brief Return X,Y indices of a pixel corresponding to a local position in a sensor. Loading