A system for determining a treatment plan in active ion beam treatment, to minimize unwanted dose, while maintaining or improving target dose coverage, whereby a beam is split into at least two sub-beams and where each sub-beam has a range shifter of different settings.