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

* Fixing issue with the decay of nuclei

        - The energy from the previous step was never set
parent 4665714b
No related branches found
No related tags found
No related merge requests found
...@@ -85,8 +85,9 @@ G4bool Decay::IsApplicable( const G4ParticleDefinition& particleType) { ...@@ -85,8 +85,9 @@ G4bool Decay::IsApplicable( const G4ParticleDefinition& particleType) {
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
G4bool Decay::ModelTrigger(const G4FastTrack& ) { G4bool Decay::ModelTrigger(const G4FastTrack& fastTrack) {
//FIXME: Solve the issue of long lived decay //FIXME: Solve the issue of long lived decay
m_PreviousEnergy=fastTrack.GetPrimaryTrack()->GetKineticEnergy();
// Check that a decay is possible: // Check that a decay is possible:
return m_Decay.AnyAboveThreshold(NPL::ChangeNameFromG4Standard(m_CurrentName),m_ExcitationEnergy); return m_Decay.AnyAboveThreshold(NPL::ChangeNameFromG4Standard(m_CurrentName),m_ExcitationEnergy);
} }
......
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