32 auto workItem = [&](
UInt_t workerID) {
36 auto wh1d = h1d.Get();
38 auto wh1dr = h1dr.Get();
41 for (
UInt_t i = 0; i < nNumbers; ++i) {
42 x = workerRndm.Gaus(3.);
49 std::vector<std::thread> workers;
53 workers.emplace_back(workItem, workerID);
57 for (
auto &&worker : workers)
61 auto fh1d = h1d.Merge();
62 auto fh1dr = h1dr.Merge();
65 auto c =
new TCanvas(
"c",
"c", 800, 800);
R__EXTERN TStyle * gStyle
A pseudo container class which is a generator of indices.
A wrapper to make object instances thread private, lazily.
@ kAutoBinPTwo
Use Power(2)-based algorithm for autobinning.
Random number generator class based on M.
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...
void EnableThreadSafety()
Enables the global mutex to make ROOT thread safe/aware.