Hamiltonian formalism for space charge dominated beams in a uniform focusing channel