Why is the initial energy of the collected secondary ions zero?

Hi,
I encountered a problem that is very confusing to me.
The energy deposited by the neutron incident on the target station is not equal to zero. Why is the initial energy of the collected secondary ions zero?
image
image

I’m likely missing something here, but where and how is the e variable that’s zero initialised and/or updated? I can’t see it in the listings (NB: screenshots are o.k., but it’s a lot easier to use Markdown fenced code blocks to post code snippets, and for people to point out any issues)