Bug fix: Edep array is set to 0 at the beginning of each event