Belle II Software development
ereco_eventsampler.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 <string>
9
10#include <stdio.h>
11#include <stdlib.h>
12
13#include "daq/expreco/ERecoEventSampler.h"
14#include "daq/rfarm/manager/RFNSM.h"
15
16using namespace Belle2;
17using namespace std;
18
19int main(int argc, char** argv)
20{
21 // Retrieve RingBuffer name[1], port number[2], Shmname[3], and id[4]
22 if (argc < 2) {
23 printf("syntax : ereco_eventsampler configfile\n");
24 exit(-1);
25 }
26
27 RFConf conf(argv[1]);
28
29 ERecoEventSampler* es = new ERecoEventSampler(argv[1]);
30
31 RFNSM nsm(conf.getconf("eventsampler", "nodename"), es);
32 nsm.AllocMem(conf.getconf("system", "nsmdata"));
33 es->SetNodeInfo(nsm.GetNodeInfo());
34
35
36 es->server();
37}
38
39
40
Abstract base class for different kinds of events.
STL namespace.