Belle II Software development
hrelay.cc
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#include <stdio.h>
9#include <stdlib.h>
10#include <string>
11#include <unistd.h>
12
13#include <daq/dqm/HistoRelay.h>
14
15using namespace Belle2;
16using namespace std;
17
18int main(int argc, char** argv)
19{
20 if (argc < 4) {
21 printf("Usage : hrelay mapfile dest port interval\n");
22 exit(-1);
23 }
24 string mapfile = string(argv[1]);
25 string dest = string(argv[2]);
26 int port = atoi(argv[3]);
27 int interval = atoi(argv[4]);
28
29 HistoRelay hrelay(mapfile, dest, port);
30
31 for (;;) {
32 sleep(interval);
33 // printf("hrelay : collecting histograms\n");
34 hrelay.collect();
35 }
36
37}
38
39
Abstract base class for different kinds of events.
STL namespace.