diff --git a/NPSimulation/Process/G4IonizationWithDE.cc b/NPSimulation/Process/G4IonizationWithDE.cc index 21b70fda901c4dc4e0a2f8b1f678eca03a303a1f..94dae397adfcebc5f04b1ade056942297a759085 100644 --- a/NPSimulation/Process/G4IonizationWithDE.cc +++ b/NPSimulation/Process/G4IonizationWithDE.cc @@ -186,8 +186,6 @@ G4IonizationWithDE::PostStepDoIt(const G4Track& aTrack, const G4Step& aStep) aParticleChange.SetNumberOfSecondaries(tracked_electron); aParticleChange.SetSecondaryWeightByProcess(true); - - // Electron follow the field direction // The field direction is taken from the field manager //Everything common to all created DE: diff --git a/NPSimulation/Scorers/DriftElectronScorers.cc b/NPSimulation/Scorers/DriftElectronScorers.cc index 75489de5cd6e40ca72bd06c1507ecacda3e20746..a09a905c9e0a7256789c2272ce65231795d5197e 100644 --- a/NPSimulation/Scorers/DriftElectronScorers.cc +++ b/NPSimulation/Scorers/DriftElectronScorers.cc @@ -143,7 +143,7 @@ G4bool PS_DEDigitizer::ProcessHits(G4Step* aStep, G4TouchableHistory*){ G4String PID = aStep->GetTrack()->GetDefinition()->GetParticleName(); if(PID=="driftelectron"){ - Infos[0] = 1; + Infos[0] = aStep->GetTrack()->GetWeight(); } // Check if the particle has interact before, if yes, add up the number of electron.