Skip to content

Commit 07a81bb

Browse files
Merge pull request #14 from LDMX-Software/13-biasing-particle-change-is-not-initialized-properly
initialize track if applying PostStep processing
2 parents 428860e + 0f1f760 commit 07a81bb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/processes/biasing/generic/src/G4BiasingProcessInterface.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,7 @@ G4VParticleChange* G4BiasingProcessInterface::PostStepDoIt(const G4Track& track,
490490
fFinalStateBiasingOperation, finalStateParticleChange );
491491

492492

493+
fOccurenceBiasingParticleChange->Initialize(track);
493494
fOccurenceBiasingParticleChange->SetOccurenceWeightForInteraction( weightForInteraction );
494495
fOccurenceBiasingParticleChange->SetSecondaryWeightByProcess( true );
495496
fOccurenceBiasingParticleChange->SetWrappedParticleChange( finalStateParticleChange );

0 commit comments

Comments
 (0)