Skip to content

Add total deposited energy to MCParticle

This adds the information of total deposited energy to the MCParticle object, giving access to the energy deposited by a single primary particle for the traversal of a specific sensitive volume. This information can be accessed via MCParticle::getTotalDepositedEnergy().

Inspired by this forum discussion.

Up to now this property is only filled in case of DepositionGeant4. For DepositionPointCharge this is not really applicable, hence I'd leave it at 0. Would you prefer a different strategy?

To do:

  • Apply to DepositionLaser (E=h*c/l)
Edited by Paul Jean Schutze

Merge request reports

Loading