| Summary: | Corrections for G4ParticleHpInelasticCompFs.cc and G4ParticleDiscreteTwoBody.cc | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | John Watts <john.w.watts> |
| Component: | processes/hadronic/models | Assignee: | tkoi |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | P5 | ||
| Version: | 10.2 | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: | Patched files, output files, and equation derivation | ||
|
Description
John Watts
2016-01-19 21:17:03 CET
Thanks for reporting this and identifying the likely code. I'm assigning the problem to our ParticleHP expert. It was point out to me in the Forum that in G4ParticleHPInelasticCompFS.cc
the line after my correction at 281 should also be change from:
G4double residualA = theBaseA - aDefinition->GetBaryonNumber()+1;
to
G4double residualA = theBaseA + theProjectile->GetBaryonNumber() - aDefinition->GetBaryonNumber();
Thank you for reporting problem. I've confirmed the problem and the fix has been included in future release of Geant4. |