BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EventID.h File Reference
#include <iostream>

Go to the source code of this file.

Classes

class  EventID

Functions

bool operator< (const EventID &lhs, const EventID &rhs)
bool operator== (const EventID &lhs, const EventID &rhs)
bool operator> (const EventID &lhs, const EventID &rhs)
bool operator!= (const EventID &lhs, const EventID &rhs)
bool operator<= (const EventID &lhs, const EventID &rhs)
bool operator>= (const EventID &lhs, const EventID &rhs)
template<class STR>
STR & operator<< (STR &os, const EventID &rhs)
std::istream & operator>> (std::istream &is, EventID &rhs)

Function Documentation

◆ operator!=()

bool operator!= ( const EventID & lhs,
const EventID & rhs )
inline

Definition at line 77 of file EventID.h.

77{ return !( lhs == rhs ); }

◆ operator<()

bool operator< ( const EventID & lhs,
const EventID & rhs )
inline

Definition at line 65 of file EventID.h.

65 {
66 // We are assuming that ALL events will have run and event numbers,
67 // and never just a time stamp.
68 return lhs.m_run_number < rhs.m_run_number ||
69 ( lhs.m_run_number == rhs.m_run_number && lhs.m_event_number < rhs.m_event_number );
70}

◆ operator<<()

template<class STR>
STR & operator<< ( STR & os,
const EventID & rhs )
inline

Definition at line 81 of file EventID.h.

81 {
82 os << "[R,E] = [" << rhs.m_run_number << "," << rhs.m_event_number << "]";
83 return os;
84}

◆ operator<=()

bool operator<= ( const EventID & lhs,
const EventID & rhs )
inline

Definition at line 78 of file EventID.h.

78{ return !( lhs > rhs ); }

◆ operator==()

bool operator== ( const EventID & lhs,
const EventID & rhs )
inline

Definition at line 71 of file EventID.h.

71 {
72 return lhs.m_run_number == rhs.m_run_number && lhs.m_event_number == rhs.m_event_number;
73}

◆ operator>()

bool operator> ( const EventID & lhs,
const EventID & rhs )
inline

Definition at line 74 of file EventID.h.

74 {
75 return !( ( lhs < rhs ) || ( lhs == rhs ) );
76}

◆ operator>=()

bool operator>= ( const EventID & lhs,
const EventID & rhs )
inline

Definition at line 79 of file EventID.h.

79{ return !( lhs < rhs ); }

◆ operator>>()

std::istream & operator>> ( std::istream & is,
EventID & rhs )
inline

Definition at line 86 of file EventID.h.

86 {
87 is >> rhs.m_run_number >> rhs.m_event_number;
88 return is;
89}