Skip to content
Snippets Groups Projects
Commit 31957f9d authored by Marilena Bandieramonte's avatar Marilena Bandieramonte Committed by Walter Lampl
Browse files

Fix thread-unsafety in EscapedEnergyRegistry class [ATLASSIM-4106]

EscapedEnergyRegistry class was implemented as a singleton, so it was not thread-safe.
This affected the HITs of LArCalibrationHitDeadMaterial when running in MT with the CaloCalibration on.
Added the #ifdef G4MULTITHREADED directive to handle
the multithreaded case. One instance of the class will be created
per each thread and stored in a tbb::concurrent_unordered_map that
is hashed with the threadID number.
parent 8fa5c13a
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment