Spectrum-The number of Particles

Hi all,
Hello, you know that real detectors create spectrum with pulses. I want to draw this spectrum in OPENMC and compare it with the number of particles I observed in the spectrum with the spectrum in the real detector. I am using a gamma source and detector. Can you give an idea how to do it?
Thank you

@A66 I believe this would require a pulse-height tally, which is not currently possible in OpenMC. There is an open pull request on the OpenMC repository that would add such a feature but it is still under development at this point.