In partnership with the protontherapy center of Orsay, we are integrating specific algorithms dedicated to dose calculation in protontherapy, using the Pencil Beam method. The acquired expertise will then be applied to cancer treatment with Carbon ions in collaboration with Etoile, the French hadrontherapy project.