13#include <TFileMerger.h>
17int main(
int argc,
char** argv)
20 printf(
"Usage : dqmmerge topdir histofile nnodes startnode outfile\n");
23 string topdir = string(argv[1]);
24 string file = string(argv[2]);
25 int nnodes = atoi(argv[3]);
26 int startnode = atoi(argv[4]);
27 string outfile = string(argv[5]);
30 TFileMerger merger(
false,
false);
31 if (!merger.OutputFile(outfile.c_str())) {
32 printf(
"RbTupleManager:: error to open output file %s\n", file.c_str());
37 for (
int i = 0; i < nnodes; i++) {
39 sprintf(histofile,
"%s/evp_hltwk%2.2d/%s",
40 topdir.c_str(), startnode + i,
43 if (stat(histofile, &statbuf) == 0)
44 merger.AddFile(histofile);
48 if (!merger.Merge()) {
49 printf(
"RbTupleManager:: error to merge files\n");