Re-implement factory consistent with existing physics constructor factory (uses C++ templates to wrap constructors) but taking concepts from
G4NuPhysicsLists version (uses C function pointers to wrap constructors). Commit this to G4 repository.
#1 Updated by Robert Hatcher about 5 years ago
- % Done changed from 0 to 70
Code was refactorized to be consistent with how G4GenericPhysicsList & factory use templates rather than function pointers. Committed code to G4 repository in early November. But due to issues on mac and/or using icc compiler the ShieldingM/ShieldingLEND and G4GenericPhysicsList cases aren't registered with the list factory. Needs further investigation on why these are problematic for those particular platforms and/or compilers.
#2 Updated by Robert Hatcher over 4 years ago
- % Done changed from 70 to 90
Code was modified so that it now works on all platforms (gcc, icc, clang, windows vc12) for ShieldingM / ShieldingLEND, and G4GenericPhysicsList. This required changes beyond
phys-lists and is implemented with proposed and accepted co-working tags:
Last step would to remove the
g4alt:: namespace and replace the original version.