Relativistic Hamiltonian dynamics in nuclear and particle physics