Detector: make calculation of field index generic for any field scaling
Detector: make calculation of field index generic for any field scaling

Koensw/allpix-squared,Koensw/allpix-squared,Koensw/allpix-squared,Koensw/allpix-squared