Active and passive beam delivery systems for hadrontherapy