Belle II Software development
des_ser_COPPER_main.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 <daq/rawdata/modules/DAQConsts.h>
9//#include <daq/rawdata/des_ser_COPPER_main.h>
10#include "des_ser_COPPER_main.h"
11//#include <daq/rawdata/modules/DesSerPrePC.h>
12//#include <daq/rawdata/DesSerPrePC.h>
13#include <daq/rawdata/DesSerCOPPER.h>
14//#define MAXEVTSIZE 400000000
15
16using namespace std;
17using namespace Belle2;
18
19
20int main(int argc, char** argv)
21{
22
23 if (argc != 6) {
24 printf("[FATAL] Usage : %s <COPPER hostname> <COPPER node ID> <bit flag of FINNESEs> <Use NSM(Network Shared Memory)? yes=1/no=0> <NSM nodename>",
25 argv[0]);
26 // printf("Usage : %s <COPPER hostname> <Use NSM(Network Shared Memory)? yes=1/no=0> <port # to eb0> <NSM nodename>", argv[0]);;
27 exit(1);
28 }
29
30 string host_recv = argv[1];
31 int shmflag = atoi(argv[4]);
32 int port_send = 30000;
33 // int port_send = atoi(argv[3]); //! port number
34 string nodename = argv[5];
35 string host_send = "0.0.0.0";
36 int port_recv = 30000;
37 int nodeid = atoi(argv[2]);
38 int finesse_bitflag = atoi(argv[3]);
39 DesSerCOPPER des_ser_copper(host_recv, port_recv,
40 host_send, port_send, shmflag,
41 nodename, nodeid, finesse_bitflag);
42 des_ser_copper.DataAcquisition();
43
44
45 //
46 // Update EventMetaData
47 //
48// m_eventMetaDataPtr.create();
49// m_eventMetaDataPtr->setExperiment(1);
50// m_eventMetaDataPtr->setRun(1);
51// m_eventMetaDataPtr->setEvent(1);
52
53}
54//}
55
A class definition of an input module for Sequential ROOT I/O.
Definition: DesSerCOPPER.h:27
Abstract base class for different kinds of events.
STL namespace.