#include <utility>
#include <ostream>
#include <stdint.h>
#include <cassert>
#include <cstdlib>
#include <arpa/inet.h>
#include "utctime.hh"
 
Go to the source code of this file.
◆ frame_idx_t
◆ operator<<()
  
  
      
        
          | std::ostream & operator<<  | 
          ( | 
          std::ostream & |           stream,  | 
         
        
           | 
           | 
          const CLBCommonHeader & |           header ) | 
         
       
   | 
  
inline   | 
  
 
Definition at line 72 of file clb_common_header.hh.
   73{
   74  return stream <<  
"DataType:          " << header.
dataType()          << 
'\n' 
   75                <<  
"RunNumber:         " << header.
runNumber()         << 
'\n' 
   77                <<  
"Timestamp:       \n" << header.
timeStamp()         << 
'\n' 
   79                <<  
"DOMStatus1:        " << header.
domStatus(1)        << 
'\n' 
   80                <<  
"DOMStatus2:        " << header.
domStatus(2)        << 
'\n' 
   81                <<  
"DOMStatus3:        " << header.
domStatus(3)        << 
'\n' 
   83}
 
 
 
◆ seq_number()
Definition at line 88 of file clb_common_header.hh.
   92{
   93  uint64_t const tstamp_ms = header.timeStamp().inMilliSeconds();
   94 
   95  return std::make_pair(
   96      (tstamp_ms - start_run_ms) / ts_duration_ms,
   97      tstamp_ms > start_run_ms);
   98}
 
 
 
◆ data2idx()
Definition at line 101 of file clb_common_header.hh.
  105{
  108  value <<= 32;
  109  value += header.domIdentifier();
  110  return value;
  111}
 
 
 
◆ dom_id()
◆ validTimeStamp()
Definition at line 122 of file clb_common_header.hh.
  123{
  124  const static uint32_t mask = 0x80000000;
  125 
  126  return header.domStatus() & mask;
  127}
 
 
 
◆ isTrailer()
Definition at line 130 of file clb_common_header.hh.
  131{
  132  const static uint32_t mask = 0x80000000;
  133 
  134  return header.domStatus(2) & mask;
  135}