Problem 2365

Summary: Improve the branch ratio consistency in RDM: use the enum instead of number
Product: Geant4 Reporter: Tao Lin <lintao>
Component: processes/hadronic/models/radioactive_decayAssignee: dennis.herbert.wright
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: P4    
Version: other   
Hardware: All   
OS: All   

Description Tao Lin 2021-04-28 17:07:12 CEST
Dear Geant4 developers,

In RDM, the definitions of the different radioactive decay modes can be found in G4RadioactiveDecayMode.hh. However, the index used in the branch ratio could be different from the number in G4RadioactiveDecayMode.hh. This will cause the problem for some new added decay modes, for example, the Triton decay. So in this PR, the index numbers are all replaced by the enum defined in G4RadioactiveDecayMode.hh.

Please find the patches in the Geant4 GitHub:
  https://github.com/Geant4/geant4/pull/26

Thank you!

Tao
Comment 1 dennis.herbert.wright 2021-10-20 19:29:53 CEST
Fix implemented by Alberto Ribon.