Belle II Software
release-05-01-25
Rb2Sock.h
1
//+
2
// File : Rb2Sock.h
3
// Description : Pick an event from RingBuffer and send it to EvtSocket
4
//
5
// Author : Ryosuke Itoh, IPNS, KEK
6
// Date : 10 - Dec - 2002, Orignal for RFARM
7
// 26 - Apr - 2012, for Belle II RFARM
8
//-
9
10
#include <string>
11
12
#include "framework/pcore/RingBuffer.h"
13
#include "daq/dataflow/EvtSocket.h"
14
15
#define RBUFSIZE 100000000
16
17
namespace
Belle2
{
23
class
Rb2Sock
{
24
public
:
26
Rb2Sock
(std::string rbuf, std::string dest,
int
port);
27
~
Rb2Sock
(
void
);
28
30
int
SendEvent
(
void
);
31
32
private
:
33
RingBuffer
* m_rbuf;
34
EvtSocketSend
* m_sock;
35
char
* m_evtbuf;
36
37
};
38
40
}
Belle2::EvtSocketSend
Definition:
EvtSocket.h:26
Belle2::Rb2Sock
Definition:
Rb2Sock.h:23
Belle2::RingBuffer
Class to manage a Ring Buffer placed in an IPC shared memory.
Definition:
RingBuffer.h:36
Belle2::Rb2Sock::Rb2Sock
Rb2Sock(std::string rbuf, std::string dest, int port)
Constuctor and Destructor.
Definition:
Rb2Sock.cc:16
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:19
Belle2::Rb2Sock::SendEvent
int SendEvent(void)
Event function.
Definition:
Rb2Sock.cc:31
daq
rfarm
event
include
Rb2Sock.h
Generated on Fri Nov 5 2021 03:49:31 for Belle II Software by
1.8.17