The galactic distribution of cosmic-ray particles