Jpp
software
JDAQ
JDAQTimesliceHeader.hh
Go to the documentation of this file.
1
#ifndef __JDAQTIMESLICEHEADER__
2
#define __JDAQTIMESLICEHEADER__
3
4
#include "
JIO/JSerialisable.hh
"
5
#include "
JDAQ/JDAQRoot.hh
"
6
#include "
JDAQ/JDAQHeader.hh
"
7
8
9
/**
10
* \author mdejong
11
*/
12
13
namespace
KM3NETDAQ
{
14
15
using
JIO::JReader
;
16
using
JIO::JWriter
;
17
18
19
/**
20
* JDAQ timeslice header.
21
*/
22
class
JDAQTimesliceHeader
:
23
public
JDAQHeader
24
{
25
public
:
26
/**
27
* Default constructor.
28
*/
29
JDAQTimesliceHeader
() :
30
JDAQHeader
()
31
{}
32
33
34
/**
35
* Constructor.
36
*
37
* \param chronometer DAQ chronometer
38
*/
39
JDAQTimesliceHeader
(
const
JDAQChronometer
& chronometer) :
40
JDAQHeader
(chronometer)
41
{}
42
43
44
/**
45
* Get DAQ time slice header.
46
*
47
* \return DAQ time slice header
48
*/
49
const
JDAQTimesliceHeader
&
getDAQTimesliceHeader
()
const
50
{
51
return
static_cast<const JDAQTimesliceHeader&>(*
this
);
52
}
53
54
55
ClassDef
(
JDAQTimesliceHeader
,2);
56
};
57
58
59
/**
60
* Equal operator for DAQ time slice headers.
61
*
62
* \param first time slice header
63
* \param second time slice header
64
* \result true if first timeslice header equal to second; else false
65
*/
66
inline
bool
operator==
(
const
JDAQTimesliceHeader
& first,
67
const
JDAQTimesliceHeader
& second)
68
{
69
return
(first.
getDAQHeader
() == second.
getDAQHeader
());
70
}
71
72
73
/**
74
* Not-equal operator for DAQ time slice headers.
75
*
76
* \param first time slice header
77
* \param second time slice header
78
* \result true if first time slice header not equal to second; else false
79
*/
80
inline
bool
operator!=
(
const
JDAQTimesliceHeader
& first,
81
const
JDAQTimesliceHeader
& second)
82
{
83
return
!(first == second);
84
}
85
}
86
87
#endif
KM3NETDAQ::JDAQTimesliceHeader::ClassDef
ClassDef(JDAQTimesliceHeader, 2)
KM3NETDAQ::JDAQHeader::getDAQHeader
const JDAQHeader & getDAQHeader() const
Get DAQ header.
Definition:
JDAQHeader.hh:51
JIO::JReader
Interface for binary input.
Definition:
JSerialisable.hh:62
KM3NETDAQ::JDAQTimesliceHeader::JDAQTimesliceHeader
JDAQTimesliceHeader()
Default constructor.
Definition:
JDAQTimesliceHeader.hh:29
KM3NETDAQ::JDAQHeader
DAQ header.
Definition:
JDAQHeader.hh:24
KM3NETDAQ::JDAQTimesliceHeader::getDAQTimesliceHeader
const JDAQTimesliceHeader & getDAQTimesliceHeader() const
Get DAQ time slice header.
Definition:
JDAQTimesliceHeader.hh:49
KM3NETDAQ::JDAQTimesliceHeader::JDAQTimesliceHeader
JDAQTimesliceHeader(const JDAQChronometer &chronometer)
Constructor.
Definition:
JDAQTimesliceHeader.hh:39
JSerialisable.hh
KM3NETDAQ::operator!=
bool operator!=(const JDAQChronometer &first, const JDAQChronometer &second)
Not-equal operator for DAQ chronometers.
Definition:
JDAQChronometer.hh:303
KM3NETDAQ::JDAQTimesliceHeader
JDAQ timeslice header.
Definition:
JDAQTimesliceHeader.hh:22
JIO::JWriter
Interface for binary output.
Definition:
JSerialisable.hh:130
JDAQHeader.hh
JDAQRoot.hh
KM3NETDAQ::operator==
bool operator==(const JDAQChronometer &first, const JDAQChronometer &second)
Equal operator for DAQ chronometers.
Definition:
JDAQChronometer.hh:286
KM3NETDAQ
KM3NeT DAQ data structures and auxiliaries.
Definition:
DataQueue.cc:39
KM3NETDAQ::JDAQChronometer
DAQ chronometer.
Definition:
JDAQChronometer.hh:26
Generated by
1.8.16