All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Member Functions | Public Attributes | List of all members
daq::PMTDecoder::SplitTimestamp_t Struct Reference

Data structure for trigger time. More...

Classes

struct  Split_t
 

Public Member Functions

constexpr SplitTimestamp_t ()=default
 
constexpr SplitTimestamp_t (int sec, unsigned int ns)
 
constexpr SplitTimestamp_t (long long int triggerTime)
 

Public Attributes

long long int time = std::numeric_limits<long long int>::min()
 Trigger time in nanoseconds from The Epoch. More...
 
Split_t split
 Trigger time in nanoseconds from The Epoch (in components). More...
 

Detailed Description

Data structure for trigger time.

Definition at line 287 of file PMTDecoder_tool.cc.

Constructor & Destructor Documentation

constexpr daq::PMTDecoder::SplitTimestamp_t::SplitTimestamp_t ( )
default
constexpr daq::PMTDecoder::SplitTimestamp_t::SplitTimestamp_t ( int  sec,
unsigned int  ns 
)

Definition at line 634 of file PMTDecoder_tool.cc.

635  : time { static_cast<long long int>(sec) * 1'000'000'000LL + ns }
636  , split { sec, ns }
637  {}
long long int time
Trigger time in nanoseconds from The Epoch.
constexpr daq::PMTDecoder::SplitTimestamp_t::SplitTimestamp_t ( long long int  triggerTime)

Definition at line 639 of file PMTDecoder_tool.cc.

640  : time { triggerTime }
641  , split {
642  static_cast<int>(time / 1'000'000'000), // seconds
643  static_cast<unsigned int>(time % 1'000'000'000) // nanoseconds
644  }
645  {}
long long int time
Trigger time in nanoseconds from The Epoch.
Split_t split
Trigger time in nanoseconds from The Epoch (in components).

Member Data Documentation

Split_t daq::PMTDecoder::SplitTimestamp_t::split

Trigger time in nanoseconds from The Epoch (in components).

Definition at line 298 of file PMTDecoder_tool.cc.

long long int daq::PMTDecoder::SplitTimestamp_t::time = std::numeric_limits<long long int>::min()

Trigger time in nanoseconds from The Epoch.

Definition at line 296 of file PMTDecoder_tool.cc.


The documentation for this struct was generated from the following file: