All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Member Functions | Public Attributes | List of all members
icarus::DaqDecoderICARUSPMT::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 431 of file DaqDecoderICARUSPMT_module.cc.

Constructor & Destructor Documentation

constexpr icarus::DaqDecoderICARUSPMT::SplitTimestamp_t::SplitTimestamp_t ( )
default
constexpr icarus::DaqDecoderICARUSPMT::SplitTimestamp_t::SplitTimestamp_t ( int  sec,
unsigned int  ns 
)

Definition at line 1238 of file DaqDecoderICARUSPMT_module.cc.

1239  : time { static_cast<long long int>(sec) * 1'000'000'000LL + ns }
1240  , split { sec, ns }
1241 {}
long long int time
Trigger time in nanoseconds from The Epoch.
constexpr icarus::DaqDecoderICARUSPMT::SplitTimestamp_t::SplitTimestamp_t ( long long int  triggerTime)

Definition at line 1246 of file DaqDecoderICARUSPMT_module.cc.

1247  : time { triggerTime }
1248  , split {
1249  static_cast<int>(time / 1'000'000'000), // seconds
1250  static_cast<unsigned int>(time % 1'000'000'000) // nanoseconds
1251  }
1252 {}
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 icarus::DaqDecoderICARUSPMT::SplitTimestamp_t::split

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

Definition at line 442 of file DaqDecoderICARUSPMT_module.cc.

long long int icarus::DaqDecoderICARUSPMT::SplitTimestamp_t::time = std::numeric_limits<long long int>::min()

Trigger time in nanoseconds from The Epoch.

Definition at line 440 of file DaqDecoderICARUSPMT_module.cc.


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