Collimators as diagnostic tools in the proton machine of HERA