Belle II Software  release-05-01-25
hserver.cc
1 //+
2 // File : hserver.cc
3 // Description : A server to collect histograms over network
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 <daq/dqm/HistoServer.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 : hserver port mapfile\n");
21  exit(-1);
22  }
23  int port = atoi(argv[1]);
24  string file = string(argv[2]);
25 
26  HistoServer hserv(port, file);
27 
28  hserv.init();
29 
30  hserv.server();
31 
32 }
33 
34 
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
Belle2::HistoServer
Definition: HistoServer.h:33