Skip to content

Commit

Permalink
Fix example execution for Geant4@11.1+
Browse files Browse the repository at this point in the history
  • Loading branch information
sethrj committed Mar 15, 2024
1 parent 9c4cffa commit fe5fbe6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions example/accel/fastsim-offload.cc
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,12 @@ int main()
setup_options.max_num_events = 1024;
// Celeritas does not support EmStandard MSC physics above 100 MeV
setup_options.ignore_processes = {"CoulombScat"};
if (G4VERSION_NUMBER >= 1110)
{
// Default Rayleigh scattering 'MinKinEnergyPrim' is no longer
// consistent
setup_options.ignore_processes.push_back("Rayl");
}

run_manager->Initialize();
run_manager->BeamOn(1);
Expand Down
6 changes: 6 additions & 0 deletions example/accel/simple-offload.cc
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,12 @@ int main()
setup_options.max_num_events = 1024;
// Celeritas does not support EmStandard MSC physics above 100 MeV
setup_options.ignore_processes = {"CoulombScat"};
if (G4VERSION_NUMBER >= 1110)
{
// Default Rayleigh scattering 'MinKinEnergyPrim' is no longer
// consistent
setup_options.ignore_processes.push_back("Rayl");
}

run_manager->Initialize();
run_manager->BeamOn(1);
Expand Down
6 changes: 6 additions & 0 deletions example/accel/trackingmanager-offload.cc
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,12 @@ int main()
setup_options.max_num_events = 1024;
// Celeritas does not support EmStandard MSC physics above 100 MeV
setup_options.ignore_processes = {"CoulombScat"};
if (G4VERSION_NUMBER >= 1110)
{
// Default Rayleigh scattering 'MinKinEnergyPrim' is no longer
// consistent
setup_options.ignore_processes.push_back("Rayl");
}

run_manager->Initialize();
run_manager->BeamOn(1);
Expand Down

0 comments on commit fe5fbe6

Please sign in to comment.