brho_to_range

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

Converts magnetic rigidity (brho) to range.

>>> brho_to_range(3 * _ureg.tesla * _ureg.meter).to('cm')
<Quantity(0.33356409519815206, 'meter * tesla')>
Parameters
  • brho – the magnetic rigidity

  • particle – the particle type (default: proton)

Returns

the range of the particle.