Belle II Software development
GenRawSend.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 GEN_RAW_SEND_H
10#define GEN_RAW_SEND_H
11
12#include <framework/core/Module.h>
13#include <framework/datastore/StoreObjPtr.h>
14#include <framework/dataobjects/EventMetaData.h>
15
16#include <daq/dataflow/EvtSocket.h>
17
18#include <rawdata/dataobjects/RawCOPPER.h>
19
20namespace Belle2 {
25
26 class GenRawSendModule : public Module {
27
28 public:
29
32
34 virtual ~GenRawSendModule() override;
35
37 void initialize() override;
38
40
42 void event() override;
43
45
47 void terminate() override;
48
49 private:
50 // unsigned int* m_buffer;
51 char* m_buffer;
52 int m_size;
53 int m_maxevt;
54 int m_nevt;
55
58
59 // Event Meta Data
60 StoreObjPtr<EventMetaData> m_eventMetaDataPtr;
61
62 // RawCOPPER object
63 StoreObjPtr<RawCOPPER> m_rawcopper;
64
65 // Parameters for EvtSocket
66
68 std::string m_dest;
69
71 int m_port;
72
75
76
77 };
78
79}
80
81#endif /* EXERCISE1_H_ */
void initialize() override
Initialize the Module.
Definition GenRawSend.cc:55
void event() override
Called when entering a new run.
Definition GenRawSend.cc:75
int BUF_SIZE_WORD
size of buffer for one event (word)
Definition GenRawSend.h:57
GenRawSendModule()
Constructor.
Definition GenRawSend.cc:27
virtual ~GenRawSendModule() override
Destructor.
Definition GenRawSend.cc:47
EvtSocketSend * m_sock
EvtSocket.
Definition GenRawSend.h:74
void terminate() override
Is called after processing the last event of a run.
int m_port
Destination port.
Definition GenRawSend.h:71
std::string m_dest
Destination Host.
Definition GenRawSend.h:68
Module()
Constructor.
Definition Module.cc:30
Type-safe access to single objects in the data store.
Definition StoreObjPtr.h:96
Abstract base class for different kinds of events.