Skip to content
Snippets Groups Projects
Commit 124d78e4 authored by Adrien Matta's avatar Adrien Matta :skull_crossbones:
Browse files

* Fixing drift electron scorer for digitization case

parent 7cf84094
No related branches found
No related tags found
No related merge requests found
...@@ -186,8 +186,6 @@ G4IonizationWithDE::PostStepDoIt(const G4Track& aTrack, const G4Step& aStep) ...@@ -186,8 +186,6 @@ G4IonizationWithDE::PostStepDoIt(const G4Track& aTrack, const G4Step& aStep)
aParticleChange.SetNumberOfSecondaries(tracked_electron); aParticleChange.SetNumberOfSecondaries(tracked_electron);
aParticleChange.SetSecondaryWeightByProcess(true); aParticleChange.SetSecondaryWeightByProcess(true);
// Electron follow the field direction // Electron follow the field direction
// The field direction is taken from the field manager // The field direction is taken from the field manager
//Everything common to all created DE: //Everything common to all created DE:
......
...@@ -143,7 +143,7 @@ G4bool PS_DEDigitizer::ProcessHits(G4Step* aStep, G4TouchableHistory*){ ...@@ -143,7 +143,7 @@ G4bool PS_DEDigitizer::ProcessHits(G4Step* aStep, G4TouchableHistory*){
G4String PID = aStep->GetTrack()->GetDefinition()->GetParticleName(); G4String PID = aStep->GetTrack()->GetDefinition()->GetParticleName();
if(PID=="driftelectron"){ 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. // Check if the particle has interact before, if yes, add up the number of electron.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment