Geant4 Primary vs Secondary Energy Deposition

Does anyone know if Geant4 accounts for edge effects of primary particle energy deposition events (meaning it accounts for the electrons possibly escaping the volume of interest), or is the energy deposition just the difference in pre-post collision kinetic energy of the primary particle?

v/r,

Bryan

Geant4 does include continous energy loss (dE/dx). If a particle traverses a volume and escapes, the portion of the trajectory within the volume will be included in the energy deposition in the volume.