Illustrate the usage of the multiproc TSelector interfaces with the h1 analysis example.
const char *fh1[] = {"http://root.cern.ch/files/h1/dstarmb.root",
"http://root.cern.ch/files/h1/dstarp1a.root",
"http://root.cern.ch/files/h1/dstarp1b.root",
"http://root.cern.ch/files/h1/dstarp2.root"};
int mp103_processSelector(){
selectorPath += "/tree/h1analysis.C+";
std::cout << "selector used is: "<< selectorPath<<"\n";
#if defined(__reproduce_davix)
#endif
#if defined(__reproduce_davix)
out = pool.ProcTree(*tree, *sel);;
#endif
out = pool.ProcTree(fh1[0], *sel, "h1");
std::vector<std::string> files;
for (int i = 0; i < 4; i++) {
files.push_back(fh1[i]);
}
out = pool.ProcTree(files, *sel, "h1");
out = pool.ProcTree(fc, *sel);
return 0;
}
- Author
- Anda Chelba
Definition in file mp103_processSelector.C.