| Summary: | Usage of final keyword in G4HadronElasticPhysicsHP.hh prevents customisation | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | Thomas Kittelmann <thomas.kittelmann> |
| Component: | processes/hadronic/models/neutron_hp | Assignee: | Vladimir.Ivantchenko |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | CC: | Alberto.Ribon |
| Priority: | P4 | ||
| Version: | 11.1 | ||
| Hardware: | All | ||
| OS: | All | ||
|
Description
Thomas Kittelmann
2023-11-06 12:36:49 CET
Hello, the keyword already changed and the change will be available with the new public release 11.2 (December, 2023). The modification for the patch to 11.1 may be potentially considered but we prefer keeping headers unchanged in the patch and we do not yet know the date of the next patch. A custom solution may be to create custom G4HadronElasticPhysicsMY and substitute the default inside modular physics list using the method: G4VModularPhysicsList::ReplacePhysics(new G4HadronElasticPhysicsMY()); This constructor should implement all required modifications and may be done starting from G4HadronElasticPhysicsHP. VI Great, thanks a lot for the info! I already have a workaround (hack) for now, but based on your info I will go ahead and modify my code so it will not use it if the Geant4 version is 11.2 or greater. Cheers, Thomas |