29static std::string tutname =
"mp104_processH1: ";
30static std::string logfile =
"mp104_processH1.log";
33std::vector<std::string> files {
"root://eospublic.cern.ch//eos/root-eos/h1/dstarmb.root",
34 "root://eospublic.cern.ch//eos/root-eos/h1/dstarp1a.root",
35 "root://eospublic.cern.ch//eos/root-eos/h1/dstarp1b.root",
36 "root://eospublic.cern.ch//eos/root-eos/h1/dstarp2.root"};
51 std::cout << tutname <<
"processing the H1 dataset with a lambda \n";
53 auto hListFun = pool.Process(files, doH1,
"h42");
56 if (checkH1(hListFun) < 0)
60 if (doFit(hListFun, logfile.c_str()) < 0)
69 selectorPath +=
"/analysis/tree/h1analysisTreeReader.C+";
70 std::cout << tutname <<
"processing the H1 dataset with selector '" << selectorPath <<
"'\n";
74 gSystem->RedirectOutput(logfile.c_str(),
"w", &gRH);
75 auto hListSel = pool.Process(files, *sel,
"h42");
76 gSystem->RedirectOutput(
nullptr,
nullptr, &gRH);
79 if (checkH1(hListSel) < 0)
83 if (doFit(hListSel, logfile.c_str()) < 0)
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 override
Print the real and cpu time passed between the start and stop events.
Lambdas used to check and fit the result of the H1 analysis.