Jpp  17.3.2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JDAQTimesliceHeader.hh
Go to the documentation of this file.
1 #ifndef __JDAQTIMESLICEHEADER__
2 #define __JDAQTIMESLICEHEADER__
3 
6 
7 
8 /**
9  * \author mdejong
10  */
11 namespace KM3NETDAQ {
12 
13  /**
14  * JDAQ timeslice header.
15  */
17  public JDAQHeader
18  {
19  public:
20  /**
21  * Default constructor.
22  */
24  JDAQHeader()
25  {}
26 
27 
28  /**
29  * Constructor.
30  *
31  * \param chronometer DAQ chronometer
32  */
33  JDAQTimesliceHeader(const JDAQChronometer& chronometer) :
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
JDAQTimesliceHeader(const JDAQChronometer &chronometer)
Constructor.
bool operator==(const JDAQChronometer &first, const JDAQChronometer &second)
Equal operator for DAQ chronometers.
ClassDef(JDAQTimesliceHeader, 2)
const JDAQTimesliceHeader & getDAQTimesliceHeader() const
Get DAQ time slice header.
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
const JDAQHeader & getDAQHeader() const
Get DAQ header.
Definition: JDAQHeader.hh:49
bool operator!=(const JDAQChronometer &first, const JDAQChronometer &second)
Not-equal operator for DAQ chronometers.
JDAQTimesliceHeader()
Default constructor.