Glauber model for heavy ion collisions from low energies to high energies