Problem 2365 - Improve the branch ratio consistency in RDM: use the enum instead of number
Summary: Improve the branch ratio consistency in RDM: use the enum instead of number
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: processes/hadronic/models/radioactive_decay (show other problems)
Version: other
Hardware: All All
: P4 enhancement
Assignee: dennis.herbert.wright
URL:
Depends on:
Blocks:
 
Reported: 2021-04-28 17:07 CEST by Tao Lin
Modified: 2021-10-20 19:29 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
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.