20 const auto file0 =
"http://root.cern.ch/files/h1/dstarmb.root";
21 const std::vector<std::string> files = {file0,
22 "http://root.cern.ch/files/h1/dstarp1a.root",
23 "http://root.cern.ch/files/h1/dstarp1b.root",
24 "http://root.cern.ch/files/h1/dstarp2.root"};
26 int mp103_processSelector()
30 gROOT->SetBatch(kTRUE);
32 TString selectorPath = gROOT->GetTutorialDir();
33 selectorPath +=
"/tree/h1analysis.C+";
34 std::cout <<
"selector used is: " << selectorPath <<
"\n";
35 auto sel = TSelector::GetSelector(selectorPath);
43 #if defined(__reproduce_davix)
44 auto fp = std::make_unique<TTree>(TFile::Open(file0));
45 auto tree = fp->Get<TTree>(
"h42");
48 ROOT::TTreeProcessorMP pool(3);
51 #if defined(__reproduce_davix)
53 out = pool.Process(*tree, *sel);
54 sel->GetOutputList()->Delete();
59 out = pool.Process(file0, *sel,
"h42");
60 sel->GetOutputList()->Delete();
65 for (
auto &&file : files) {
66 fc.Add(
new TFileInfo(file.c_str()));
72 out = pool.Process(files, *sel,
"h42");
73 sel->GetOutputList()->Delete();
76 out = pool.Process(fc, *sel);
77 sel->GetOutputList()->Delete();
80 out = pool.Process(ch, *sel);
81 sel->GetOutputList()->Delete();