Project
Loading...
Searching...
No Matches
o2::mch::HVStatusCreator::TimeRange Struct Reference

Internal structure to define a time range. More...

#include <HVStatusCreator.h>

Public Member Functions

 TimeRange (uint64_t begin, uint64_t end)
 
bool contains (uint64_t timestamp) const
 

Public Attributes

uint64_t begin = 0
 beginning of time range
 
uint64_t end = 0
 end of time range
 

Detailed Description

Internal structure to define a time range.

Definition at line 55 of file HVStatusCreator.h.

Constructor & Destructor Documentation

◆ TimeRange()

o2::mch::HVStatusCreator::TimeRange::TimeRange ( uint64_t  begin,
uint64_t  end 
)
inline

Constructor of time range

Parameters
beginbeginning of time range (ms)
endend of time range (ms)

Definition at line 64 of file HVStatusCreator.h.

Member Function Documentation

◆ contains()

bool o2::mch::HVStatusCreator::TimeRange::contains ( uint64_t  timestamp) const
inline

Check if the time range contains the given time stamp

Parameters
timestamptime stamp of interest (ms)
Returns
true if the time stamp is in the time range

Definition at line 71 of file HVStatusCreator.h.

Member Data Documentation

◆ begin

uint64_t o2::mch::HVStatusCreator::TimeRange::begin = 0

beginning of time range

Definition at line 56 of file HVStatusCreator.h.

◆ end

uint64_t o2::mch::HVStatusCreator::TimeRange::end = 0

end of time range

Definition at line 57 of file HVStatusCreator.h.


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