Closed sawenzel closed 1 year ago
Thank you @sawenzel ; this update will be included in the next version, v6.2, tested with new Geant4 version 11.1, the update for which is already in master and I plan to make this version still this week. Should I make also a patch version, v6-1-p3, based on Geant4 11.0 ?
Faster TGeo<->G4 geometry lookups
Change of type map --> unordered_map for the G4 <-> TGeo translation. This is advantageous since the structures are read-only (random key access) and so we go from O(log(N)) to O(1) scaling on average.
In tests for the ALICE detector, pp events, this commit results in a noticable speed increase (~5%) in the overall G4 runtime.