BOSS 7.0.6
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 86 of file EventID.h.

86 {
87 return !(lhs == rhs);
88}

◆ operator<()

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

Definition at line 72 of file EventID.h.

72 {
73 // We are assuming that ALL events will have run and event numbers,
74 // and never just a time stamp.
75 return lhs.m_run_number<rhs.m_run_number ||
76 ( lhs.m_run_number==rhs.m_run_number &&
77 lhs.m_event_number<rhs.m_event_number) ;
78}

◆ operator<<()

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

Definition at line 97 of file EventID.h.

97 {
98 os << "[R,E] = [" << rhs.m_run_number << "," << rhs.m_event_number << "]";
99 return os;
100}

◆ operator<=()

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

Definition at line 89 of file EventID.h.

89 {
90 return !(lhs > rhs);
91}

◆ operator==()

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

Definition at line 79 of file EventID.h.

79 {
80 return lhs.m_run_number==rhs.m_run_number &&
81 lhs.m_event_number==rhs.m_event_number ;
82}

◆ operator>()

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

Definition at line 83 of file EventID.h.

83 {
84 return !( (lhs < rhs) || (lhs == rhs));
85}

◆ operator>=()

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

Definition at line 92 of file EventID.h.

92 {
93 return !(lhs < rhs);
94}

◆ operator>>()

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

Definition at line 102 of file EventID.h.

102 {
103 is >> rhs.m_run_number >> rhs.m_event_number;
104 return is;
105}