BUG: fix calculation of left and right limit
BUG: fix calculation of left and right limit

YannickDieter/testbeam_analysis,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