A class of integrable Hamiltonian systems including scattering of particles on the line with repulsive interactions