LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
raw::RDTimeStamp Class Reference

#include "RDTimeStamp.h"

Public Member Functions

 RDTimeStamp (ULong64_t tstamp=0, uint16_t flags=0)
 
void SetTimeStamp (ULong64_t tstamp)
 
void SetTimeStamp_Low (uint32_t tslow)
 
void SetTimeStamp_High (uint32_t tshigh)
 
ULong64_t GetTimeStamp () const
 
uint32_t GetTimeStamp_Low () const
 
uint32_t GetTimeStamp_High () const
 
void SetFlags (uint16_t flags)
 
uint16_t GetFlags () const
 

Private Attributes

ULong64_t fTimeStamp
 
uint16_t fFlags
 

Detailed Description

Definition at line 18 of file RDTimeStamp.h.

Constructor & Destructor Documentation

raw::RDTimeStamp::RDTimeStamp ( ULong64_t  tstamp = 0,
uint16_t  flags = 0 
)
inline

Definition at line 21 of file RDTimeStamp.h.

References fFlags, fTimeStamp, GetFlags(), GetTimeStamp(), GetTimeStamp_High(), GetTimeStamp_Low(), SetFlags(), SetTimeStamp(), SetTimeStamp_High(), and SetTimeStamp_Low().

22  {
23  fTimeStamp = tstamp;
24  fFlags = flags;
25  } // Constructor
uint16_t fFlags
Definition: RDTimeStamp.h:38
ULong64_t fTimeStamp
Definition: RDTimeStamp.h:37

Member Function Documentation

uint16_t raw::RDTimeStamp::GetFlags ( ) const
inline

Definition at line 71 of file RDTimeStamp.h.

References fFlags.

Referenced by RDTimeStamp().

72  {
73  return fFlags;
74  }
uint16_t fFlags
Definition: RDTimeStamp.h:38
ULong64_t raw::RDTimeStamp::GetTimeStamp ( ) const
inline

Definition at line 55 of file RDTimeStamp.h.

References fTimeStamp.

Referenced by RDTimeStamp().

56  {
57  return fTimeStamp;
58  }
ULong64_t fTimeStamp
Definition: RDTimeStamp.h:37
uint32_t raw::RDTimeStamp::GetTimeStamp_High ( ) const
inline

Definition at line 63 of file RDTimeStamp.h.

References fTimeStamp.

Referenced by RDTimeStamp().

64  {
65  return fTimeStamp >> 32;
66  }
ULong64_t fTimeStamp
Definition: RDTimeStamp.h:37
uint32_t raw::RDTimeStamp::GetTimeStamp_Low ( ) const
inline

Definition at line 59 of file RDTimeStamp.h.

References fTimeStamp.

Referenced by RDTimeStamp().

60  {
61  return fTimeStamp & 0xFFFFFFFF;
62  }
ULong64_t fTimeStamp
Definition: RDTimeStamp.h:37
void raw::RDTimeStamp::SetFlags ( uint16_t  flags)
inline

Definition at line 67 of file RDTimeStamp.h.

References fFlags.

Referenced by RDTimeStamp().

68  {
69  fFlags = flags;
70  }
uint16_t fFlags
Definition: RDTimeStamp.h:38
void raw::RDTimeStamp::SetTimeStamp ( ULong64_t  tstamp)
inline

Definition at line 41 of file RDTimeStamp.h.

References fTimeStamp.

Referenced by RDTimeStamp().

42  {
43  fTimeStamp = tstamp;
44  }
ULong64_t fTimeStamp
Definition: RDTimeStamp.h:37
void raw::RDTimeStamp::SetTimeStamp_High ( uint32_t  tshigh)
inline

Definition at line 50 of file RDTimeStamp.h.

References fTimeStamp.

Referenced by RDTimeStamp().

51  {
52  fTimeStamp &= 0xFFFFFFFF;
53  fTimeStamp |= ((ULong64_t)tshigh << 32);
54  }
ULong64_t fTimeStamp
Definition: RDTimeStamp.h:37
void raw::RDTimeStamp::SetTimeStamp_Low ( uint32_t  tslow)
inline

Definition at line 45 of file RDTimeStamp.h.

References fTimeStamp.

Referenced by RDTimeStamp().

46  {
47  fTimeStamp &= 0xFFFFFFFF00000000;
48  fTimeStamp |= tslow;
49  }
ULong64_t fTimeStamp
Definition: RDTimeStamp.h:37

Member Data Documentation

uint16_t raw::RDTimeStamp::fFlags
private

Definition at line 38 of file RDTimeStamp.h.

Referenced by GetFlags(), RDTimeStamp(), and SetFlags().

ULong64_t raw::RDTimeStamp::fTimeStamp
private

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