Skip to content

DetectorHistogrammer: Change Caluclation of In-Pixel Position

Simon Spannagel requested to merge dethist_pixelcenter into master

This MR canges the calculation of the in-pixel position of particles. It now uses the DetectorModel's getPixelCenter() of the nearest pixel instead of a simple fmod by the pitch of the detector. This approach is equivalent but more future-proof since it does not rely on standard rectangular pixel patterns.

In addition, for the sake of code cleanliness I shifted the histogram axis by half a pitch, now the center of the pixel is always located at (0,0) of the histogram.

Depends on !538 (merged)

Merge request reports