range_to_gamma

georges_core.kinematics.range_to_gamma(r: _Q, particle: _ParticuleType = <class 'georges_core.particles.Proton'>) → _Q[source]

Converts proton range in water to relativistic beta.

>>> range_to_gamma(32 * _ureg.cm)
<Quantity(226.12911179644985, 'megaelectronvolt')>
Parameters
  • r – proton range in water

  • particle – the particle type (default: proton)

Returns

Relativistic beta of the particle.