Auxiliary class to set DAQ system clock parameters.
More...
#include <JDAQClock.hh>
Auxiliary class to set DAQ system clock parameters.
Definition at line 27 of file JDAQClock.hh.
◆ JDAQClock_t
Clock types.
Enumerator |
---|
KM3NET | |
PPM_DU | |
ANTARES | |
Definition at line 32 of file JDAQClock.hh.
◆ JDAQClock()
◆ get()
Get clock type.
- Returns
- clock type
Definition at line 53 of file JDAQClock.hh.
◆ set() [1/2]
void KM3NETDAQ::JDAQClock::set |
( |
const JDAQClock_t |
clock | ) |
|
|
inline |
Set clock type.
- Parameters
-
Definition at line 64 of file JDAQClock.hh.
◆ set() [2/2]
void KM3NETDAQ::JDAQClock::set |
( |
| ) |
|
|
inline |
Set DAQ clock parameters.
Definition at line 75 of file JDAQClock.hh.
77 switch (this->
clock) {
80 FRAME_TIME_NS = 100000000.0;
81 RESET_TIME_NS = FRAME_TIME_NS;
85 FRAME_TIME_NS = (1<<27);
86 RESET_TIME_NS = FRAME_TIME_NS;
90 FRAME_TIME_NS = 13107200.0 * 8;
91 RESET_TIME_NS = 419430400.0;
95 throw JDAQException(
"Undefined clock.");
◆ operator>>
std::istream& operator>> |
( |
std::istream & |
in, |
|
|
JDAQClock & |
clock |
|
) |
| |
|
friend |
Read clock from input.
- Parameters
-
in | input stream |
clock | JClock |
- Returns
- input stream
Definition at line 107 of file JDAQClock.hh.
118 catch(
const std::exception& error) {
119 in.setstate(ios_base::badbit);
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const JDAQClock & |
clock |
|
) |
| |
|
friend |
Write clock to output.
- Parameters
-
out | output stream |
clock | JClock |
- Returns
- output stream
Definition at line 133 of file JDAQClock.hh.
135 return out <<
clock.clock;
◆ clock
The documentation for this class was generated from the following file: