Belle II Software  release-05-01-25
hcollect.cc
1 //+
2 // File : hcollect.cc
3 // Description : Collect dumped histograms and merge them
4 //
5 // Author : Ryosuke Itoh, IPNS, KEK
6 // Date : 23 - Apr - 2013
7 //-
8 #include <string>
9 #include <stdio.h>
10 #include <stdlib.h>
11 
12 #include <framework/pcore/RbTuple.h>
13 
14 using namespace Belle2;
15 using namespace std;
16 
17 int main(int argc, char** argv)
18 {
19  if (argc < 3) {
20  printf("Usage : hcollect filename nprocs\n");
21  exit(-1);
22  }
23  string file = string(argv[1]);
24  int nprocs = atoi(argv[2]);
25  printf("hcollect here.... %s, nprocs=%d\n", file.c_str(), nprocs);
26 
27  RbTupleManager rbt(nprocs, file.c_str());
28  rbt.hadd(false);
29 
30 }
31 
32 
Belle2::RbTupleManager
Class to manage histograms defined in registered modules.
Definition: RbTuple.h:30
main
int main(int argc, char **argv)
Run all tests.
Definition: test_main.cc:77
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19