The method of claim 9 wherein the magnet system comprises a pair of quadrupole magnets positioned successively along an axis of the pencil beam of ions with each quadrupole magnet rotated 0??? about the axis with respect to the others and further including the step of dynamically changing a separation of the quadrupole magnets to change the cross-section of the fan beam during treatment.