tschoonj / xmimsim

Monte Carlo simulation of energy-dispersive X-ray fluorescence spectrometers
Other
32 stars 11 forks source link

xmi_detector_convolute_spectrum coding query #67

Closed jenb892 closed 3 years ago

jenb892 commented 3 years ago

In file xmi_detector_f.F90, function xmi_detector_convolute_spectrum, line 506 is:

B0=C*FWHM

What is C on this line?

tschoonj commented 3 years ago

c is defined here:

https://github.com/tschoonj/xmimsim/blob/405fd42cd10dde160752e5eb126484c32a273e0a/src/xmi_detector_f.F90#L358-L359

It's a conversion factor between FWHM and standard deviation

jenb892 commented 3 years ago

Ok, thanks for your prompt reply.