Data structure for UTC time.  
 More...
#include <JDAQUTCExtended.hh>
Data structure for UTC time. 
Definition at line 22 of file JDAQUTCExtended.hh.
 
  
  
      
        
          | KM3NETDAQ::JDAQUTCExtended::JDAQUTCExtended  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Default constructor. 
Definition at line 36 of file JDAQUTCExtended.hh.
JUINT32_t UTC_16nanosecondcycles
 
 
 
 
  
  
      
        
          | KM3NETDAQ::JDAQUTCExtended::JDAQUTCExtended  | 
          ( | 
          const JUINT32_t  | 
          seconds,  | 
         
        
           | 
           | 
          const JUINT32_t  | 
          cycles  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
    | seconds | seconds [s]  | 
    | cycles | cycles [16 ns]  | 
  
   
Definition at line 48 of file JDAQUTCExtended.hh.
JUINT32_t UTC_16nanosecondcycles
 
 
 
 
  
  
      
        
          | KM3NETDAQ::JDAQUTCExtended::JDAQUTCExtended  | 
          ( | 
          const double  | 
          nanoseconds | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
  
 
Definition at line 60 of file JDAQUTCExtended.hh.
void setTimeNanoSecond(const double utc_ns)
Set time. 
 
 
 
 
  
  
      
        
          | virtual KM3NETDAQ::JDAQUTCExtended::~JDAQUTCExtended  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinevirtual   | 
  
 
 
  
  
      
        
          | bool KM3NETDAQ::JDAQUTCExtended::getWRStatus  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get White Rabbit status. 
- Returns
 - true if okay; else false 
 
Definition at line 78 of file JDAQUTCExtended.hh.
static JUINT32_t getMask()
Get mask for seconds data. 
 
 
 
 
  
  
      
        
          | JUINT32_t KM3NETDAQ::JDAQUTCExtended::getUTCseconds  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get major time. 
- Returns
 - time [s] 
 
Definition at line 89 of file JDAQUTCExtended.hh.
static JUINT32_t getMask()
Get mask for seconds data. 
 
 
 
 
  
  
      
        
          | JUINT32_t KM3NETDAQ::JDAQUTCExtended::getUTC16nanosecondcycles  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get minor time. 
- Returns
 - time [16 ns] 
 
Definition at line 100 of file JDAQUTCExtended.hh.
JUINT32_t UTC_16nanosecondcycles
 
 
 
 
  
  
      
        
          | double KM3NETDAQ::JDAQUTCExtended::getTimeNanoSecond  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get time (limited to 16 ns cycles). 
- Returns
 - time [ns] 
 
Definition at line 111 of file JDAQUTCExtended.hh.
static double getTick()
Get number of nano-seconds per tick. 
 
JUINT32_t getUTC16nanosecondcycles() const 
Get minor time. 
 
JUINT32_t getUTCseconds() const 
Get major time. 
 
 
 
 
  
  
      
        
          | void KM3NETDAQ::JDAQUTCExtended::setTimeNanoSecond  | 
          ( | 
          const double  | 
          utc_ns | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Set time. 
- Parameters
 - 
  
  
 
Definition at line 122 of file JDAQUTCExtended.hh.
static double getTick()
Get number of nano-seconds per tick. 
 
JUINT32_t UTC_16nanosecondcycles
 
 
 
 
Get minimum possible value. 
- Returns
 - minimum possible value 
 
Definition at line 134 of file JDAQUTCExtended.hh.
JDAQUTCExtended()
Default constructor. 
 
 
 
 
Get maximum possible value. 
- Returns
 - maximum possible value 
 
Definition at line 145 of file JDAQUTCExtended.hh.
  148                              std::numeric_limits<JUINT32_t>::max());
 
JDAQUTCExtended()
Default constructor. 
 
 
 
 
  
  
      
        
          | static JUINT32_t KM3NETDAQ::JDAQUTCExtended::getMask  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
 
  
  
      
        
          | static double KM3NETDAQ::JDAQUTCExtended::getTick  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
 
Definition of method to get size of data type. 
This method should be specialised for each desired data type with fixed length.
- Returns
 - number of bytes 
 
 
 
Read UTC from input. 
- Parameters
 - 
  
  
 
- Returns
 - reader 
 
Definition at line 33 of file JDAQUTCExtendedIO.hh.
JUINT32_t UTC_16nanosecondcycles
 
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
 
 
 
 
Write UTC to output. 
- Parameters
 - 
  
  
 
- Returns
 - writer 
 
Definition at line 49 of file JDAQUTCExtendedIO.hh.
JUINT32_t UTC_16nanosecondcycles
 
 
 
 
Read UTC time. 
- Parameters
 - 
  
    | in | intput stream  | 
    | utc | UTC extended time  | 
  
   
- Returns
 - intput stream 
 
Definition at line 181 of file JDAQUTCExtended.hh.
JUINT32_t UTC_16nanosecondcycles
 
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
 
 
 
 
  
  
      
        
          | std::ostream& operator<<  | 
          ( | 
          std::ostream &  | 
          out,  | 
         
        
           | 
           | 
          const JDAQUTCExtended &  | 
          utc  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
friend   | 
  
 
Write UTC time. 
- Parameters
 - 
  
    | out | output stream  | 
    | utc | UTC extended time  | 
  
   
- Returns
 - output stream 
 
Definition at line 198 of file JDAQUTCExtended.hh.
  202       const char c = out.fill();
 
JUINT32_t getUTC16nanosecondcycles() const 
Get minor time. 
 
JUINT32_t getUTCseconds() const 
Get major time. 
 
$WORKDIR ev_configure_dqsimulator txt echo process $DQ_SIMULATOR $i $SOURCE_HOST[$index] csh c(setenv ROOTSYS $ROOTSYS &&source $JPP_DIR/setenv.csh $JPP_DIR &&($DQ_SIMULATOR\-u\$NAME\$\-H\$SERVER\$\-M\$LOGGER\$\-d $DEBUG</dev/null > &/dev/null &))'
 
 
 
 
  
  
      
        
          | JUINT32_t KM3NETDAQ::JDAQUTCExtended::UTC_seconds | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | JUINT32_t KM3NETDAQ::JDAQUTCExtended::UTC_16nanosecondcycles | 
         
       
   | 
  
protected   | 
  
 
 
The documentation for this class was generated from the following file: