Fill n-tuples in distinct workers.
This tutorial illustrates the basics of how it's possible with ROOT to offload heavy operations on multiple processes and how it's possible to write simultaneously multiple files. The operation performed in this case is the creation of random gaussian numbers.
{
for (
auto i :
ROOT::TSeqI(
n))
}
{
TFile ofile(
"mtbb101_singleCore.root",
"RECREATE");
return 0;
};
return 0;
}
int Int_t
Signed integer 4 bytes (int)
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int)
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
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...
A simple TTree restricted to a list of float variables only.
Random number generator class based on M.
Namespace for new ROOT classes and functions.
- Date
- January 2016
- Author
- Danilo Piparo
Definition in file mtbb_fillNtuples.C.