If the pitched ball hits the umpire is it a dead ball?

It depends. If the ball hits the umpire in the mask and stuns him. He will most likely call a dead ball or time. If he doesn't thoug. It is a live ball and still in play.