Complete integrability for Hamiltonian systems with a cone potential