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();


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


Thank you for your help @maire