Superconducting magnetis in spectrometers of high-energy particles