Hi Prof Ritchie,
Thank you for your answer! I've tried out your method and I attached the result below. Seems the Poisson=False option still gives a spectrum convolved with the detector response. May I consult how should I can get the "Emitted" spectrum (blue one in the figure) by using the script?
I paste my code here as well for your reference:
Graphite # my material of films
thick # thickness of films
d201 # EDS detector I defined
import dtsa2.mcSimulate3 as mc3
for thick in range(1,10,1):
mc3.multiFilm([[Graphite,thick*1e-6],[Graphite,1e-6]],d201,e0=20.0,withPoisson=False,nTraj=5000,dose=1000).display()