A method for determining a water equivalent depth between an entrance point and a reference point is disclosed. The method may comprise sending to a charged particle beam detector placed at a reference point within or beyond a body a charged particle beam whose energy is modulated between a minimum and maximum energy value, acquiring the time dependent response of said charged particle beam detector, determining from said time dependent response a value of a statistical parameter, providing a calibration curve expressing a relationship between values of said statistical parameter and water equivalent depths, and extracting from this calibration curve the water equivalent depth corresponding to the value of the statistical parameter determined from the time dependent response of the charged particle beam detector placed at the reference point.