Skip to content

Commit

Permalink
Ensure proper initialisation of the G4GammaNuclearXS data before even…
Browse files Browse the repository at this point in the history
… before G4-v-11.2.0.

The G4GammaNuclearXS data are uploaded in its constructor from G4-v-11.2.0
while it is done in the BuildPhysicsTable interface before G4-v-11.2.0.
This modification works fine with all G4 versions (from 11.0.0).
  • Loading branch information
mnovak42 committed Nov 18, 2024
1 parent 23f27c2 commit 029fc9f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions G4HepEm/G4HepEmInit/src/G4HepEmGammaInit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ void InitGammaData(struct G4HepEmData* hepEmData, struct G4HepEmParameters* /*he
if (nullptr == xs) {
xs = new G4GammaNuclearXS();
}
xs->BuildPhysicsTable(*g4PartDef);
G4CrossSectionDataStore hadGNucXSDataStore;
hadGNucXSDataStore.AddDataSet(xs);

Expand Down

0 comments on commit 029fc9f

Please sign in to comment.