Skip to content

Remove the TLSWrapper for magnetic field cache

Benjamin Michael Wynne requested to merge bwynne/athena:RemoveTLSWrapper into master

Following discussion in https://its.cern.ch/jira/browse/ATLASSIM-5215

Some overhead in Geant4 running in AthenaMT comes from use of Thread Local Storage (TLS). This wrapper was identified as an important use case to optimise.

Having run some tests, it seems that the wrapper is unnecessary, and a field cache is already created and used correctly for each thread. Thus, removing this wrapper should improve performance without changing results.

Merge request reports