Render layers: what is All Z, Zmask and Mask Layer
When "Mask Layers" are used, any render information from the selected layer is omitted from the active render layer. 

In blender Z is generally used to determine depth and distance away from the camera. I can only assume "Zmask" would be omitting things base on distance depth away from camera. 

I do not have an answer for "All Z".