Belle II Software
development
ereco_eventprocessor.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
9
//#define DESY
10
11
#include "daq/expreco/ERecoEventProcessor.h"
12
#include "daq/rfarm/manager/RFNSM.h"
13
14
#include <unistd.h>
15
16
#include <cstring>
17
18
using namespace
std
;
19
using namespace
Belle2
;
20
21
int
main(
int
argc,
char
** argv)
22
{
23
if
(argc < 2) {
24
printf(
"Wrong number of arguments\n"
);
25
return
1;
26
}
27
RFConf
conf(argv[1]);
28
29
ERecoEventProcessor
* evproc =
new
ERecoEventProcessor
(argv[1]);
30
31
char
nodename[256 + 4];
32
strcpy(nodename,
"evp_"
);
33
gethostname(&nodename[4],
sizeof
(nodename) - 4);
34
35
RFNSM
nsm(nodename, evproc);
36
nsm.AllocMem(conf.getconf(
"system"
,
"nsmdata"
));
37
evproc->SetNodeInfo(nsm.GetNodeInfo());
38
39
evproc->server();
40
41
return
0;
42
}
Belle2::ERecoEventProcessor
Definition:
ERecoEventProcessor.h:31
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_eventprocessor.cc
Generated on Fri Nov 8 2024 02:35:07 for Belle II Software by
1.9.6