Belle II Software  release-08-01-10
DesSerCOPPER.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 DESSERCOPPER_H
10 #define DESSERCOPPER_H
11 
12 #include <daq/rawdata/DesSer.h>
13 
15 // From Serializer.cc
17 
18 
19 namespace Belle2 {
27  class DesSerCOPPER : public DesSer {
28 
29  // Public functions
30  public:
31 
33  DesSerCOPPER(std::string host_recv, int port_recv, const std::string& host_send, int port_send, int shmflag,
34  const std::string& nodename, int nodeid, int finesse_bitflag);
35  // DesSerCOPPER();
36  virtual ~DesSerCOPPER();
37 
39  void DataAcquisition() override;
40 
42  int* readOneEventFromCOPPERFIFO(const int entry, int* delete_flag, int* m_size_word);
43 
45  void openCOPPER();
46 
48  void initializeCOPPER();
49 
51  int readFD(int fd, char* buf, int data_size_byte, int delete_flag);
52 
54  int m_cpr_fd;
55 
58 
61 
62  protected :
63 
64 
65 #ifdef NONSTOP
67  void waitResume();
68 
70  void resumeRun();
71 #endif
72  };
73 
75 } // end namespace Belle2
76 
77 #endif // DESSERCOPPER_H
A class definition of an input module for Sequential ROOT I/O.
Definition: DesSerCOPPER.h:27
int m_finesse_bit_flag
bit flag of FINESSE slots to use
Definition: DesSerCOPPER.h:60
int readFD(int fd, char *buf, int data_size_byte, int delete_flag)
receive data
void DataAcquisition() override
Module functions to be called from event process.
Definition: DesSerCOPPER.cc:57
int m_use_slot
bit flag of FINESSE slots to use
Definition: DesSerCOPPER.h:57
void openCOPPER()
open COPPER
int * readOneEventFromCOPPERFIFO(const int entry, int *delete_flag, int *m_size_word)
Read one event from COPPER.
int m_cpr_fd
file descripter for COPPER
Definition: DesSerCOPPER.h:54
DesSerCOPPER(std::string host_recv, int port_recv, const std::string &host_send, int port_send, int shmflag, const std::string &nodename, int nodeid, int finesse_bitflag)
Constructor / Destructor.
Definition: DesSerCOPPER.cc:24
void initializeCOPPER()
Module functions to be called from main process.
A class definition of an input module for Sequential ROOT I/O.
Definition: DesSer.h:41
Abstract base class for different kinds of events.