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
16
using namespace
Belle2
;
17
using namespace
std
;
18
19
int
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
Belle2::ERecoEventSampler
Definition:
ERecoEventSampler.h:29
Belle2::RFConf
Definition:
RFConf.h:24
Belle2::RFNSM
Definition:
RFNSM.h:61
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:17
std
STL namespace.
daq
expreco
tools
ereco_eventsampler.cc
Generated on Fri Nov 8 2024 02:35:07 for Belle II Software by
1.9.6