30static std::string tutname =
"mp104_processH1: ";
31static std::string logfile =
"mp104_processH1.log";
34std::vector<std::string> files {
"http://root.cern.ch/files/h1/dstarmb.root",
35 "http://root.cern.ch/files/h1/dstarp1a.root",
36 "http://root.cern.ch/files/h1/dstarp1b.root",
37 "http://root.cern.ch/files/h1/dstarp2.root"};
52 std::cout << tutname <<
"processing the H1 dataset with a lambda \n";
54 auto hListFun = pool.Process(files, doH1,
"h42");
57 if (checkH1(hListFun) < 0)
61 if (doFit(hListFun, logfile.c_str()) < 0)
70 selectorPath +=
"/tree/h1analysisTreeReader.C+";
71 std::cout << tutname <<
"processing the H1 dataset with selector '" << selectorPath <<
"'\n";
76 auto hListSel = pool.Process(files, *sel,
"h42");
80 if (checkH1(hListSel) < 0)
84 if (doFit(hListSel, logfile.c_str()) < 0)
R__EXTERN TSystem * gSystem
This class provides an interface to process a TTree dataset in parallel with multi-process technology...
static TSelector * GetSelector(const char *filename)
The code in filename is loaded (interpreted or compiled, see below), filename must contain a valid cl...
void Start(Bool_t reset=kTRUE)
Start the stopwatch.
void Print(Option_t *option="") const
Print the real and cpu time passed between the start and stop events.
virtual Int_t RedirectOutput(const char *name, const char *mode="a", RedirectHandle_t *h=nullptr)
Redirect standard output (stdout, stderr) to the specified file.
<a href="https://nbviewer.jupyter.org/url/root.cern/doc/master/notebooks/mp_H1_lambdas....