Digital signal processing for mass identification in a 4 pi-detector, using time of flight measurement