Commit 6d67e755 authored by Greg Christian's avatar Greg Christian
Browse files

Fixed apparent bug in simulating neutron-emitting reactions

parent 2dedcc41
......@@ -184,10 +184,17 @@ void NPS::BeamReaction::DoIt(const G4FastTrack& fastTrack,G4FastStep& fastStep)
G4ParticleDefinition* LightName;
if(m_Reaction.GetUseExInGeant4())
LightName = IonTable->GetIon(LightZ, LightA, m_Reaction.GetExcitation3()*MeV);
else
LightName = IonTable->GetIon(LightZ, LightA);
if(LightZ == 0 && LightA == 1) // neutron is special case
{
LightName = G4Neutron::Definition();
}
else
{
if(m_Reaction.GetUseExInGeant4())
LightName = IonTable->GetIon(LightZ, LightA, m_Reaction.GetExcitation3()*MeV);
else
LightName = IonTable->GetIon(LightZ, LightA);
}
// Nucleus 4
G4int HeavyZ = m_Reaction.GetNucleus4()->GetZ() ;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment