FWIW, we are talking about radiation from particles that have mass, such as electrons ("beta rays"), protons, helium nuclei ("alpha particles") and neutrons, which mainly transfer energy by giving it to whole atoms with "collisions. That is completely true for neutrons, because they have no net electric charge, so those are collisions with atomic nuclei. But for those other particles that do have a charge, they will interact with the electrons bound to atoms, kicking them off and "ionizing" the atoms. So, charged particles have a specific distance they can travel in specific materials, depending on the mass of the radiation particle and the density of electrons in the material. For instance, the low energy electrons (beta particles) released by Tritium (double- heavy hydrogen) are so low energy that they don't even penetrate human skin. But cosmic ray electrons have so much energy that they can go much deeper. And he more massive cosmic ray particles will even act like the CERN "atom smasher" and break apart the nuclei of atoms that they hit, making a splatter of all sorts of other particles.
On the other hand, very high energy photons (e.g., x-rays and gamma rays) that do not have "rest mass" interact (almost) exclusively with the electrons in shielding atoms, and it a probabilistic way, So, they don't have a specific finite range in shielding, but get absorbed by a fraction of what is remaining per unit distance in the shielding. So, heavy material like lead does provide the best shielding for photon type radiation.
When a solar flare occurs, the photon radiation gets to us without any significant warning time, because those photons travel at the same speed as the photons of visible light that our eyes can see and the radio waves that any instruments near the Sun can send us. But, the particle type radiation is much slower, taking days instead of minutes to get to us from the Sun. So, there is warning time for the particle radiation
How to use that info to best shield astronauts in-transit is what NASA is looking for ideas about.