Testbeam analysis software for pixel detectors