momentum_to_etot

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

Converts momentum to total energy.

>>> momentum_to_etot(100 * _ureg.MeV_c).to('MeV')
<Quantity(5.313897343302641, 'megaelectronvolt')>
Parameters
  • p – relativistic momentum

  • particle – the particle type (default: proton)

Returns

Total energy of the particle