Total Energy and Total Energy Deposit

Hi Dear geant4 user!
What is the difference between total energy and total energy deposit?
for example:

G4double energy = step->GetTotalEnergyDeposit();

and

G4double energy = preStepPoint->GetTotalEnergy();

Thanks for any answers.

TotalEnergy = relativist energy of the particle at that point = kinetic energy + energy_mass
EnergyDeposit = “continuous” energy lost by the particle along the step = stepLength*stoppingPower

2 Likes

Thank you for your help @maire