Detector: add "isWithinPixelGrid" Helper
This MR adds a new helper function isWithinPixelGrid
to the Detector
class. This allows to simplify checks for proper pixel coordinates in several modules.
In addition, the data type of the pixel grid size has been changed from XYVector<int>
to XYVector<unsigned int>
which better represents the reality.