Jpp 19.3.0-rc.2
the software that should make you happy
Loading...
Searching...
No Matches
JDAQEventHeaderIO.hh
Go to the documentation of this file.
1#ifndef __JDAQEVENTHEADER_IO__
2#define __JDAQEVENTHEADER_IO__
3
5
7
11
12
13/**
14 * \author mdejong
15 */
16namespace KM3NETDAQ {
17
18 /**
19 * Get size of type.
20 *
21 * \return number of bytes
22 */
23 template<>
31
32
33 /**
34 * Read DAQ event header from input.
35 *
36 * \param in reader
37 * \param header DAQ event header
38 * \return reader
39 */
41 {
42 in >> static_cast<JDAQHeader&> (header);
43 in >> static_cast<JDAQTriggerCounter&>(header);
44 in >> static_cast<JDAQTriggerMask&> (header);
45 in >> header.overlays;
46
47 return in;
48 }
49
50
51 /**
52 * Write DAQ event header to output.
53 *
54 * \param out writer
55 * \param header DAQ event header
56 * \return writer
57 */
58 inline JWriter& operator<<(JWriter& out, const JDAQEventHeader& header)
59 {
60 out << static_cast<const JDAQHeader&> (header);
61 out << static_cast<const JDAQTriggerCounter&>(header);
62 out << static_cast<const JDAQTriggerMask&> (header);
63 out << header.overlays;
64
65 return out;
66 }
67}
68
69#endif
Interface for binary input.
Interface for binary output.
Auxiliary class to count triggers.
Auxiliary class for trigger mask.
KM3NeT DAQ data structures and auxiliaries.
Definition DataQueue.cc:39
size_t getSizeof< JDAQTriggerCounter >()
Get size of type.
size_t getSizeof< JDAQTriggerMask >()
Get size of type.
JWriter & operator<<(JWriter &out, const JDAQChronometer &chronometer)
Write DAQ chronometer to output.
JReader & operator>>(JReader &in, JDAQChronometer &chronometer)
Read DAQ chronometer from input.
size_t getSizeof< JDAQHeader >()
Get size of type.
size_t getSizeof< JDAQEventHeader >()
Get size of type.