Problem 1942

Summary: No check of validity of G4LEVELGAMMADATA and G4RADIOACTIVEDATA
Product: Geant4 Reporter: Alberto.Ribon
Component: processes/hadronic/models/de_excitationAssignee: dennis.herbert.wright
Status: CLOSED FIXED    
Severity: critical CC: dennis.herbert.wright
Priority: P4    
Version: 10.3   
Hardware: All   
OS: All   

Description Alberto.Ribon 2017-02-21 10:30:09 CET
I have realized that in G4 10.3 (but the same is true also in G4 10.1.p03, so I guess it is a long-standing problem) Geant4 runs without crashing, and without any error message, when one or both of the following environmental variables: 

  G4LEVELGAMMADATA
  G4RADIOACTIVEDATA

are defined but point to a wrong place.

In other words, currently there is only the check that these environmental variables are not null strings. Instead, there should be a check that they point to the correct place (as it is correctly the case for the other environmental variables).

When any of the two above environmental variables point to an incorrect place, Geant4 should crash immediately (as it does correctly for the other environmental variables).
Comment 1 Vladimir.Ivantchenko 2017-03-20 15:58:41 CET
The check for G4LEVELGAMMADATA is committed to the repository. It is not obvious how to add a check for G4RADIOACTIVEDATA, because no data are uploaded at initialisation. Needs clarification from the code authors.
Comment 2 dennis.herbert.wright 2017-12-12 03:03:08 CET
I'll have a look at the radioactive decay model.
Comment 3 dennis.herbert.wright 2017-12-13 01:10:09 CET
Added check in G4RadioactiveDecay that G4RADIOACTIVEDATA is pointing to the right directory.