FlatDetector: Minor improvements (no logic change)

2 jobs for detectorCoordsMidPoint in 2 minutes and 57 seconds (queued for 2 seconds)
latest
Status Name Job ID Coverage
  Build
passed mac #158803
MacOS

00:02:57

passed native_Debian_clang #158804
Debian

00:01:24