14const UInt_t nNumbers = 20000000U;
19Int_t mtbb001_fillHistos()
22 auto workItem = [](
UInt_t workerID) {
25 TFile f(
Form(
"myFile_mtbb001_%u.root", workerID),
"RECREATE");
26 TH1F h(
Form(
"myHisto_%u", workerID),
"The Histogram", 64, -4, 4);
27 for (
UInt_t i = 0; i < nNumbers; ++i) {
28 h.Fill(workerRndm.Gaus());
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
A pseudo container class which is a generator of indices.
This class provides a simple interface to execute the same task multiple times in parallel threads,...
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
1-D histogram with a float per channel (see TH1 documentation)
Random number generator class based on M.