In one embodiment of the invention, a method for irradiating a target is disclosed. A proton beam is generated using a cyclotron. A first information is provided to an energy selection system. An energy level for the protons is selected using an energy selection system based on the first information. The first information comprises a depth of said target. The proton beam is routed from the cyclotron through a beam transfer line to a scanning system. A second information is provided to the scanning system. The second information comprises a pair of transversal coordinates. The proton beam is guided to a location on the target determined by the second information using a magnet structure. The target is irradiated with the protons.