Belle II Software
release-05-01-25
ereco_eventsampler.cc
1
//+
2
// File : ereco_eventsampler.cc
3
// Description : Sample events from each ERECO processing nodes and
4
// put them in a ring buffer
5
//
6
// Author : Ryosuke Itoh, IPNS, KEK
7
// Date : 14 - May - 2017
8
//-
9
#include <string>
10
11
#include <stdio.h>
12
#include <stdlib.h>
13
14
#include "daq/expreco/ERecoEventSampler.h"
15
#include "daq/rfarm/manager/RFNSM.h"
16
17
using namespace
Belle2
;
18
using namespace
std;
19
20
int
main
(
int
argc,
char
** argv)
21
{
22
// Retrieve RingBuffer name[1], port number[2], Shmname[3], and id[4]
23
if
(argc < 2) {
24
printf(
"syntax : ereco_eventsampler configfile\n"
);
25
exit(-1);
26
}
27
28
RFConf
conf(argv[1]);
29
30
ERecoEventSampler
* es =
new
ERecoEventSampler
(argv[1]);
31
32
RFNSM
nsm(conf.getconf(
"eventsampler"
,
"nodename"
), es);
33
nsm.AllocMem(conf.getconf(
"system"
,
"nsmdata"
));
34
es->SetNodeInfo(nsm.GetNodeInfo());
35
36
37
es->server();
38
}
39
40
41
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::ERecoEventSampler
Definition:
ERecoEventSampler.h:29
Belle2::RFNSM
Definition:
RFNSM.h:61
Belle2::RFConf
Definition:
RFConf.h:24
daq
expreco
tools
ereco_eventsampler.cc
Generated on Fri Nov 5 2021 03:49:10 for Belle II Software by
1.8.17