Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

How to simulate beta spectra

  1. Aug 22, 2014 #1
    Hello, I am interested in computing the optimal depth of a copper absorber for Sr-90 decay electrons.
    I want to find a way to simulate a beta decay spectrum in C++.
    Have you got any idea or possible documentation on where I could start??
    Thank you!
  2. jcsd
  3. Aug 22, 2014 #2


    User Avatar
    2017 Award

    Staff: Mentor

    With the Fermi function?
    It is a 1-dimensional, well-behaved function, drawing numbers from a uniform distribution and keeping them with a probability proportional to the Fermi function should work.
  4. Aug 23, 2014 #3


    User Avatar
    Staff Emeritus
    Science Advisor
    Homework Helper
    Gold Member
    2017 Award

    Just in case OP is not familiar with the hit or miss method: Do try to make the acceptance probability one for the peak of the Fermi function. Anything larger and your spectrum will not be correct, anything smaller and you will have a lower acceptance rate. An alternative is weighting the samples according to the Fermi function, but this will not give as dense sampling in the peak as you might like.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook