From bc8839c8733f461faae986d8ab8bc9556ccb7ca0 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Tue, 8 Jun 2021 20:27:11 -0400 Subject: [PATCH] * add explicit argument to SetEmModel because default value was bogus prior to G4.10.04 [rtj] --- src/GlueXBeamConversionProcess.cc | 2 +- src/GlueXBernardConversionProcess.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GlueXBeamConversionProcess.cc b/src/GlueXBeamConversionProcess.cc index 6cea68f..ef64698 100644 --- a/src/GlueXBeamConversionProcess.cc +++ b/src/GlueXBeamConversionProcess.cc @@ -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)); diff --git a/src/GlueXBernardConversionProcess.cc b/src/GlueXBernardConversionProcess.cc index 640662e..0c24e55 100644 --- a/src/GlueXBernardConversionProcess.cc +++ b/src/GlueXBernardConversionProcess.cc @@ -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);