Jpp 19.3.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
JDAQTimesliceHeader.hh
Go to the documentation of this file.
1#ifndef __JDAQTIMESLICEHEADER__
2#define __JDAQTIMESLICEHEADER__
3
6
7
8/**
9 * \author mdejong
10 */
11namespace KM3NETDAQ {
12
13 /**
14 * JDAQ timeslice header.
15 */
17 public JDAQHeader
18 {
19 public:
20 /**
21 * Default constructor.
22 */
26
27
28 /**
29 * Constructor.
30 *
31 * \param chronometer DAQ chronometer
32 */
34 JDAQHeader(chronometer)
35 {}
36
37
38 /**
39 * Get DAQ time slice header.
40 *
41 * \return DAQ time slice header
42 */
44 {
45 return static_cast<const JDAQTimesliceHeader&>(*this);
46 }
47
48
50 };
51
52
53 /**
54 * Equal operator for DAQ time slice headers.
55 *
56 * \param first time slice header
57 * \param second time slice header
58 * \result true if first timeslice header equal to second; else false
59 */
60 inline bool operator==(const JDAQTimesliceHeader& first,
61 const JDAQTimesliceHeader& second)
62 {
63 return (first.getDAQHeader() == second.getDAQHeader());
64 }
65
66
67 /**
68 * Not-equal operator for DAQ time slice headers.
69 *
70 * \param first time slice header
71 * \param second time slice header
72 * \result true if first time slice header not equal to second; else false
73 */
74 inline bool operator!=(const JDAQTimesliceHeader& first,
75 const JDAQTimesliceHeader& second)
76 {
77 return !(first == second);
78 }
79}
80
81#endif
const JDAQHeader & getDAQHeader() const
Get DAQ header.
Definition JDAQHeader.hh:49
ClassDef(JDAQTimesliceHeader, 2)
const JDAQTimesliceHeader & getDAQTimesliceHeader() const
Get DAQ time slice header.
JDAQTimesliceHeader(const JDAQChronometer &chronometer)
Constructor.
JDAQTimesliceHeader()
Default constructor.
bool operator==(const Head &first, const Head &second)
Equal operator.
Definition JHead.hh:1801
bool operator!=(const JTag &first, const JTag &second)
Not equal operator for JTag.
Definition JTag.hh:291
KM3NeT DAQ data structures and auxiliaries.
Definition DataQueue.cc:39