Reference on machine, on workpiece and on tool