Hi @luca_tero ,
I do understand the issue, yes. I could imagine that Geant4 only emits a new “step” when the actual interaction is taking place, such that then at the beginning of this new step the energy was already decreased. I know that we distinguish photons from other particles when it comes to the position of the deposit, maybe we also have to adapt this part.
Would you mind providing us with your configurations, such that we can reproduce and investigate the issue?
Thanks!
Paul