momentum_to_gamma

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

Converts momentum to relativistic gamma.

>>> momentum_to_gamma(696 * _ureg.MeV_c)
<Quantity(1.2450908098255744, ' ')>
Parameters
  • p – relativistic momentum

  • particle – the particle type (default: proton)

Returns

Relativistic gamma of the particle