Pottu
daq.hpp
Go to the documentation of this file.
1 
5 #ifndef H_POTTU_DAQ
6 #define H_POTTU_DAQ
7 
8 #include <cstdint>
9 
10 
11 
12 namespace pottu {
13 
22  static constexpr int64_t daqFreq() { return 100000000LL;}
23 
28  static constexpr double ticsToSeconds( int64_t tics ) { return tics*1e-8; }
29 
34  static constexpr double ticsToMinutes( int64_t tics ) { return tics*1e-8/60;}
35 
40  static constexpr double ticsToHours( int64_t tics ) { return tics*1e-8/3600;}
41 
47  static constexpr int64_t secondsToTics( double secs ) { return int64_t(secs*1e8); }
48  };
49 
50 }
51 
52 
53 #endif
Definition: mainpage.dox:6
Information class for jyfl_nutaq daq.
Definition: daq.hpp:19
static constexpr double ticsToHours(int64_t tics)
Converts tics to hours.
Definition: daq.hpp:40
static constexpr double ticsToSeconds(int64_t tics)
Converts tics to seconds.
Definition: daq.hpp:28
static constexpr int64_t daqFreq()
Returns the clock frequency in Hz.
Definition: daq.hpp:22
static constexpr int64_t secondsToTics(double secs)
Seconds to full tics.
Definition: daq.hpp:47
static constexpr double ticsToMinutes(int64_t tics)
Converts tics to minutes.
Definition: daq.hpp:34