Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
JDAQTriggerCounterIO.hh
Go to the documentation of this file.
1#ifndef __JDAQTRIGGERCOUNTER_IO__
2#define __JDAQTRIGGERCOUNTER_IO__
3
5
7
8/**
9 * \author mdejong
10 */
11namespace KM3NETDAQ {
12
13 /**
14 * Get size of type.
15 *
16 * \return number of bytes
17 */
18 template<>
20 {
22 }
23
24
25 /**
26 * Read DAQ trigger counter from input.
27 *
28 * \param in reader
29 * \param counter DAQ trigger counter
30 * \return reader
31 */
33 {
34 in >> counter.trigger_counter;
35
36 return in;
37 }
38
39
40 /**
41 * Write JDAQTriggerCounter to output.
42 *
43 * \param out writer
44 * \param counter DAQ trigger counter
45 * \return writer
46 */
47 inline JWriter& operator<<(JWriter& out, const JDAQTriggerCounter& counter)
48 {
49 out << counter.trigger_counter;
50
51 return out;
52 }
53}
54
55#endif
Interface for binary input.
Interface for binary output.
Auxiliary class to count triggers.
KM3NeT DAQ data structures and auxiliaries.
Definition DataQueue.cc:39
size_t getSizeof< JDAQTriggerCounter >()
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.