Skip to content

Support Geant4 pre/post 10.6

The testMagneticField program uses the new "factory" interface to G4Analysis, only present from Geant4 10.6 onwards. To support this and the previous 10.5 version interfaces, use G4VERSION_NUMBER preprocessor symbol to select between them.

This came up in work on ATLAS's "big library" tests, so just feeding back in case it's useful if GeoModel wants to support Geant4 10.5 and before.

Merge request reports