DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
EventPacket.hpp
Go to the documentation of this file.
1
8#ifndef SSPMODULES_SRC_ANLBOARD_EVENTPACKET_HPP_
9#define SSPMODULES_SRC_ANLBOARD_EVENTPACKET_HPP_
10
11#include "SSPTypes.hpp"
12
13#include <vector>
14#include <sstream>
15#include <utility>
16
17namespace dunedaq {
18namespace sspmodules {
19
20
21//Simple bag of data but with implementation of move methods
22//to allow efficient shifting around of data between containers
24public:
25
26 //Move constructor
28 data=std::move(rhs.data);
29 header=rhs.header;
30 }
31
32 //Move assignment operator
34 data=std::move(rhs.data);
35 header=rhs.header;
36 return *this;
37 }
38
39 //Copy constructor
41 data=rhs.data;
42 header=rhs.header;
43 }
44
45 //Copy assignment operator
47 data=rhs.data;
48 header=rhs.header;
49 return *this;
50 }
51
53
54 //Clear data vector and set header word to 0xDEADBEEF
55 void SetEmpty();
56
57 void DumpHeader();
58
59 void DumpEvent();
60
62
63 std::vector<unsigned int> data;
64};
65
66} // namespace sspmodules
67} // namespace dunedaq
68
69#endif // SSPMODULES_SRC_ANLBOARD_EVENTPACKET_HPP_
dunedaq::sspmodules::EventHeader header
EventPacket & operator=(EventPacket &&rhs)
EventPacket(const EventPacket &rhs)
EventPacket & operator=(const EventPacket &rhs)
std::vector< unsigned int > data
Including Qt Headers.