I don't understand this at all.
First, we live in a 3D universe, cosmic rays can hit the sensor from anywhere. Since they don't have to go through the optics, they can also hit the sensor anywhere, e.g. where the image of the sun is. The photons from the sun and the cosmic ray particle create...