Skip to content

Commit

Permalink
* add explicit argument to SetEmModel because default value was bogus
Browse files Browse the repository at this point in the history
  prior to G4.10.04 [rtj]
  • Loading branch information
rjones30 committed Jun 9, 2021
1 parent 12224d5 commit bc8839c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/GlueXBeamConversionProcess.cc
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ void GlueXBeamConversionProcess::InitialiseProcess(const G4ParticleDefinition*)
SetMinKinEnergy(emin);

if (!EmModel(0)) {
SetEmModel(new G4PairProductionRelModel());
SetEmModel(new G4PairProductionRelModel(), 0);
}
EmModel(0)->SetLowEnergyLimit(emin);
AddEmModel(1, EmModel(0));
Expand Down
2 changes: 1 addition & 1 deletion src/GlueXBernardConversionProcess.cc
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ void GlueXBernardConversionProcess::InitialiseProcess(const G4ParticleDefinition
SetMinKinEnergy(emin);

if (!EmModel(0)) {
SetEmModel(new G4PairProductionRelModel());
SetEmModel(new G4PairProductionRelModel(), 0);
}
EmModel(0)->SetLowEnergyLimit(emin);
EmModel(0)->SetHighEnergyLimit(emax);
Expand Down

0 comments on commit bc8839c

Please sign in to comment.