Can't generate X-ray in x-ray tube simualation

Hi @mkelsey and @guatelli,
I print the energy in PreStepPoint and PostStepPoint, and compare with the total energy deposite. The energy difference of PreStepPoint and PostStepPoint is not equal with the deposite energy. Why they are not equal? Even if the enery in PostStepPoint is zero, sometimes the depsotie energy is still small. Where is the energy of the incident particle going?