|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef ATHENAKERNEL_IOVTIME_H
6 #define ATHENAKERNEL_IOVTIME_H
69 return t1.timestamp() >
t2.timestamp();
72 return t1->timestamp() >
t2->timestamp();
83 return t1.re_time() >
t2.re_time();
86 return t1->re_time() >
t2->re_time();
98 IOVTime(
const EventIDBase& eid);
103 void reset() noexcept;
117 operator std::string()
const;
118 operator EventIDBase()
const;
138 if (lhs.isTimestamp() && rhs.isTimestamp()) {
139 return lhs.m_timestamp < rhs.m_timestamp;
141 return lhs.m_time < rhs.m_time;
145 if (lhs.isTimestamp() && rhs.isTimestamp()) {
146 return lhs.m_timestamp > rhs.m_timestamp;
148 return lhs.m_time > rhs.m_time;
152 if (lhs.isTimestamp() && rhs.isTimestamp()) {
153 return lhs.m_timestamp == rhs.m_timestamp;
155 return lhs.m_time == rhs.m_time;
159 return !(lhs == rhs) ;
162 return !( lhs < rhs );
165 return !( lhs > rhs );
friend std::ostream & operator<<(std::ostream &os, const IOVTime &rhs)
Predicate. Used to sort by run and event number.
static constexpr uint64_t MAXRETIME
static constexpr uint32_t MAXRUN
friend bool operator>(const IOVTime &lhs, const IOVTime &rhs) noexcept
uint32_t event() const noexcept
uint64_t timestamp() const noexcept
std::vector< ALFA_RawDataCollection_p1 > t1
uint64_t re_time() const noexcept
bool operator==(const IOVTime &lhs, const IOVTime &rhs) noexcept
friend bool operator<=(const IOVTime &lhs, const IOVTime &rhs) noexcept
bool isBoth() const noexcept
bool const RAWDATA *ch2 const
bool isValid() const noexcept
bool operator!=(const IOVTime &lhs, const IOVTime &rhs) noexcept
friend bool operator>=(const IOVTime &lhs, const IOVTime &rhs) noexcept
static constexpr uint32_t MINRUN
bool operator<(const IOVTime &lhs, const IOVTime &rhs) noexcept
static constexpr uint64_t UNDEFTIMESTAMP
Basic time unit for IOVSvc. Hold time as a combination of run and event numbers.
bool operator>=(const IOVTime &lhs, const IOVTime &rhs) noexcept
bool operator()(const IOVTime &t1, const IOVTime &t2) const noexcept
bool isRunEvent() const noexcept
static constexpr uint64_t MAXTIMESTAMP
bool isTimestamp() const noexcept
void setRETime(uint64_t time) noexcept
friend bool operator<(const IOVTime &lhs, const IOVTime &rhs) noexcept
void setTimestamp(uint64_t timestamp) noexcept
friend bool operator==(const IOVTime &lhs, const IOVTime &rhs) noexcept
static constexpr uint32_t MAXEVENT
bool operator>(const IOVTime &lhs, const IOVTime &rhs) noexcept
static constexpr uint32_t MINEVENT
bool operator<=(const IOVTime &lhs, const IOVTime &rhs) noexcept
IOVTime(uint64_t timestamp)
std::vector< ALFA_RawDataContainer_p1 > t2
static constexpr uint64_t UNDEFRETIME
def time(flags, cells_name, *args, **kw)
bool operator()(const IOVTime &t1, const IOVTime &t2) const noexcept
void setRunEvent(uint32_t run, uint32_t event) noexcept
friend bool operator!=(const IOVTime &lhs, const IOVTime &rhs) noexcept
static constexpr uint64_t MINTIMESTAMP
Predicate. Used to sort by time stamp.