Belle II Software development
DesSerPrePC.h
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#ifndef DESSERPREPC_H
10#define DESSERPREPC_H
11#include <daq/rawdata/DesSer.h>
12
14// From Serializer.cc
16
17
18namespace Belle2 {
26 class DesSerPrePC : public DesSer {
27
28 // Public functions
29 public:
30
32 DesSerPrePC(std::string host_recv, int port_recv, const std::string& host_send, int port_send, int shmflag,
33 const std::string& nodename, int nodeid);
34 // DesSerPrePC();
35 virtual ~DesSerPrePC();
36
38 void DataAcquisition() override;
39
40 protected :
42 int Connect();
43
45 int recvFD(int fd, char* buf, int data_size_byte, int flag);
46
48 int* recvData(int* delete_flag, int* total_m_size_word, int* num_events_in_sendblock, int* num_nodes_in_sendblock);
49
51 void setRecvdBuffer(RawDataBlockFormat* raw_datablk, int* delete_flag);
52
54 void checkData(RawDataBlockFormat* raw_datablk, unsigned int* eve_copper_0);
55
56#ifdef NONSTOP
57
59 void waitResume();
60#endif
61
62 };
63
65} // end namespace Belle2
66
67#endif // MODULEHELLO_H
A class definition of an input module for Sequential ROOT I/O.
Definition: DesSerPrePC.h:26
int * recvData(int *delete_flag, int *total_m_size_word, int *num_events_in_sendblock, int *num_nodes_in_sendblock)
receive data
Definition: DesSerPrePC.cc:193
void DataAcquisition() override
Module functions to be called from event process.
Definition: DesSerPrePC.cc:548
int Connect()
Accept connection.
Definition: DesSerPrePC.cc:114
void setRecvdBuffer(RawDataBlockFormat *raw_datablk, int *delete_flag)
attach buffer to RawDataBlock
Definition: DesSerPrePC.cc:336
int recvFD(int fd, char *buf, int data_size_byte, int flag)
receive data
Definition: DesSerPrePC.cc:60
void checkData(RawDataBlockFormat *raw_datablk, unsigned int *eve_copper_0)
check data contents
Definition: DesSerPrePC.cc:381
A class definition of an input module for Sequential ROOT I/O.
Definition: DesSer.h:41
The RawDataBlockFormat class Format information for rawdata handling.
Abstract base class for different kinds of events.