/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/EventFilter/HltUtilities/HltDataTypes/HltDataTypes-01-01-03/HltDataTypes/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::istreamoperator>> (std::istream &is, EventID &rhs)


Function Documentation

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

Definition at line 86 of file EventID.h.

00086                                                                {
00087   return !(lhs == rhs);
00088 }

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

Definition at line 72 of file EventID.h.

References EventID::m_event_number, and EventID::m_run_number.

00072                                                               {
00073   // We are assuming that ALL events will have run and event numbers,
00074   // and never just a time stamp.
00075   return lhs.m_run_number<rhs.m_run_number ||
00076          ( lhs.m_run_number==rhs.m_run_number && 
00077            lhs.m_event_number<rhs.m_event_number) ;
00078 }

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

Definition at line 97 of file EventID.h.

References EventID::m_event_number, and EventID::m_run_number.

00097                                                     {
00098   os << "[R,E] = [" << rhs.m_run_number << "," << rhs.m_event_number << "]";
00099   return os;
00100 }

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

Definition at line 89 of file EventID.h.

00089                                                                {
00090   return !(lhs > rhs);
00091 }

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

Definition at line 79 of file EventID.h.

References EventID::m_event_number, and EventID::m_run_number.

00079                                                                {
00080   return lhs.m_run_number==rhs.m_run_number && 
00081          lhs.m_event_number==rhs.m_event_number ;
00082 }

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

Definition at line 83 of file EventID.h.

00083                                                               {
00084   return !( (lhs < rhs) || (lhs == rhs));
00085 }

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

Definition at line 92 of file EventID.h.

00092                                                                {
00093   return !(lhs < rhs);
00094 }

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

Definition at line 102 of file EventID.h.

References EventID::m_event_number, and EventID::m_run_number.

00102                                                             {
00103   is >> rhs.m_run_number >> rhs.m_event_number;
00104   return is;
00105 }


Generated on Tue Nov 29 23:15:49 2016 for BOSS_7.0.2 by  doxygen 1.4.7