PPT Slide
The Compton scattered photon is produced at an angle ? with respect to the
“straight on” direction. The probability of it being scattered at such an angle ? is given by:
where is a = incident photon energy/electron mass
The maximum value of this expression is at f = 0
You are required to write a random generator class (similar to the one written before) which delivers a random value of ? with this probability distribution. It should return a value in the range 0-180 degrees.
You might start by reminding yourselves of the example which you wrote earlier in C which generates a random number with uniform or Gaussian distributions.