BUG: fix row residual against row position
BUG: fix row residual against row position

SiLab-Bonn/testbeam_analysis,YannickDieter/testbeam_analysis,YannickDieter/testbeam_analysis,SiLab-Bonn/testbeam_analysis,YannickDieter/testbeam_analysis,SiLab-Bonn/testbeam_analysis,SiLab-Bonn/testbeam_analysis,YannickDieter/testbeam_analysis