The synchrotron and its related technology for ion beam therapy