Skip to content

RootUtils: add TRandomTLS class

Frank Winklmeier requested to merge fwinkl/athena:TRandomTLS into master

Add TRandomTLS class to provide thread-specific TRandom instances. The class also takes care of assigning a unique seed to each new instance.

With this helper class we should be able to replace various hand-written codes of thread- or slot-specific TRandom instances and ensure that we are not creating N identical random number streams when running with N threads.

cc @ssnyder @christos

Merge request reports