range_to_pv¶
-
georges_core.kinematics.
range_to_pv
(r: _Q, particle: _ParticuleType = <class 'georges_core.particles.Proton'>) → _Q[source]¶ Converts proton range in water to relativistic pv.
>>> range_to_pv(32 * _ureg.cm).to('') <Quantity(226.12911179644985, 'megaelectronvolt')>
- Parameters
r – proton range in water
particle – the particle type (default: proton)
- Returns
the relativistic pv of the particle.