Skip to content

Frozen shower multi thread

Alexander Glazov requested to merge FrozenShowerMultiThread into master

Steps towards making frozen showers code multi-thread safe

-- random number generator changed to G4Random::getTheEngine() -- keep shower library usage statistics for DEBUG_FrozenShowers conditional compilation flag only. This should speedup simulation a bit. -- make getShower() function in ShowerLibSvc const.

This reduces differences observed for 1 vs 4 thread run in LArHitFCAL container: -- no differences observed in 100 event run of athena --threads=4 -c "jp.AthenaCommonFlags.EvtMax.set_Value_and_Lock(100)" ./preInclude.FrozenShowersFCalOnly.py G4AtlasApps/jobOptions.G4AtlasMT.py -- differences still start to show up for 500 event run

Differences are also observed for other LAr containers, LArHitContainer_p2_LArHitEMEC and EMB, however these differences are also visible for 500 event run with frozen showers turned off.

Merge request reports