avoid writing of tof data if event does not have tof data