My question is about photon transport through matter. I will try to explain my question as simple as possible.
First we assume that only interaction possible here is Compton scattering. Also we assume that after one scattering there will be no extra scattering. Now a photon is traveling through a slab of a material where Compton scattering electron density is uniform. Now in real practical case that photon can get scattered at any point on the path and at any angle. Hence there are basically two level of randomness in this process. First one is from where it will get scattered and second one is at which angle it will get scattered. I believe, underlying distribution for the first process will be uniform and underlying distribution for second random process is Klein-Nishina differential cross section.Energy of the photon is 511 keV. On that energy range we know that Klein-Nishina probability function will be valid. This probability function will give us probability of scattering with respect to scattering angle.
Now my question is::
How to simulate this practical environment in code. I heard about "Monte Carlo simulation" but I really do not know where to start with. Please give me some suggestion.
Thanks in advance.