Skip to content

Geant4: Update Physics List Check

Simon Spannagel requested to merge g4_physlist into master

Since a newer version, Geant4 does not seem to return a nullptr anymore when a requested list was not found, but simply instantiates a default FTFP_BERT one, which is not nice. This MR:

  • Changes the exception handler to not swallow the "warning-only" G4 exception in this particular case (via exception code comparison)
  • Always converts list names to upper-case
  • Changes the "we didn't find the list" logic to catch ModuleError emitted by the G4 exception handler

Merge request reports