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.Process(*tree, *sel);;
#endif
out = pool.Process(fh1[0], *sel, "h42");
std::vector<std::string> files;
for (int i = 0; i < 4; i++) {
files.push_back(fh1[i]);
}
out = pool.Process(files, *sel, "h42");
out = pool.Process(fc, *sel);
out = pool.Process(ch, *sel);
return 0;
}
- Authors
- Anda Chelba, Gerardo Ganis
Definition in file mp103_processSelector.C.