Jpp  16.0.3
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JDAQSummarysliceHeader.hh
Go to the documentation of this file.
1 #ifndef __JDAQSUMMARYSLICEHEADER__
2 #define __JDAQSUMMARYSLICEHEADER__
3 
6 
7 
8 /**
9  * \author mdejong
10  */
11 
12 namespace KM3NETDAQ {
13 
14  /**
15  * JDAQ summaryslice header.
16  */
18  public JDAQHeader
19  {
20  public:
21  /**
22  * Default constructor.
23  */
25  JDAQHeader()
26  {}
27 
28 
29  /**
30  * Constructor.
31  *
32  * \param chronometer DAQ chronometer
33  */
35  JDAQHeader(chronometer)
36  {}
37 
38 
39  /**
40  * Get DAQ summary slice header.
41  *
42  * \return DAQ summary slice header
43  */
45  {
46  return static_cast<const JDAQSummarysliceHeader&>(*this);
47  }
48 
49 
51  };
52 
53 
54  /**
55  * Equal operator for DAQ summary slice headers.
56  *
57  * \param first summary slice header
58  * \param second summary slice header
59  * \result true if first summaryslice header equal to second; else false
60  */
62  const JDAQSummarysliceHeader& second)
63  {
64  return (first.getDAQHeader() == second.getDAQHeader());
65  }
66 
67 
68  /**
69  * Not-equal operator for DAQ summary slice headers.
70  *
71  * \param first summary slice header
72  * \param second summary slice header
73  * \result true if first summary slice header not equal to second; else false
74  */
76  const JDAQSummarysliceHeader& second)
77  {
78  return !(first == second);
79  }
80 }
81 
82 #endif
ClassDef(JDAQSummarysliceHeader, 2)
JDAQSummarysliceHeader(const JDAQChronometer &chronometer)
Constructor.
bool operator==(const JDAQChronometer &first, const JDAQChronometer &second)
Equal operator for DAQ chronometers.
JDAQSummarysliceHeader()
Default constructor.
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
const JDAQSummarysliceHeader & getDAQSummarysliceHeader() const
Get DAQ summary slice header.
bool operator!=(const JDAQChronometer &first, const JDAQChronometer &second)
Not-equal operator for DAQ chronometers.