Abstract : Ion beam therapy is an innovative radiotherapy technique using mainly carbon ion and proton irradiations. Its aim is to improve the current treatment modalities. Because of the sharpness of the dose distributions, a control of the dose if possible in real time is highly desirable. A possibility is to detect the prompt gamma rays emitted subsequently to the nuclear fragmentations occurring during the treatment of the patient. In a first time two different Compton cameras (double and single scattering) have been optimised by means of Monte Carlo simulations. The response of the camera to a photon point source with a realistic energy spectrum was studied. Then, the response of the camera to the irradiation of a water phantom by a proton beam was simulated. It was first compared with measurement performed with small-size detectors. Then, using the previous measurements, we evaluated the counting rates expected in clinical conditions. In the current set-up of the camera, these counting rates are pretty high. Pile up and random coincidences will be problematic. Finally we demonstrate that the detection system is capable to detect a longitudinal shift in the Bragg peak of +or- 5 mm, even with the current reconstruction algorithm.