I don't enjoy the period between layoff announcements and finding out you were (or were not) laid off, but I've been through them several times and don't have a problem concentrating enough to "do good work." My work output might be mildly reduced, but it's certainly not zero.
I understand this might vary between individuals. It's just overstating your case to claim that it is impossible.