|  | The Gaudi Framework
    v28r0
    | 
This class provides a unique identification for each event, in terms of run/event number and/or a time stamp. More...
#include <GaudiKernel/EventIDBase.h>
| Classes | |
| class | SortByLumiEvent | 
| class | SortByRunEvent | 
| class | SortByTimeStamp | 
| Public Types | |
| typedef unsigned int | number_type | 
| typedef uint64_t | event_number_t | 
| Public Member Functions | |
| number_type | run_number () const | 
| run number - 32 bit unsigned  More... | |
| event_number_t | event_number () const | 
| event number - 64 bit unsigned  More... | |
| number_type | time_stamp () const | 
| time stamp - posix time in seconds from 1970, 32 bit unsigned  More... | |
| number_type | time_stamp_ns_offset () const | 
| time stamp ns - ns time offset for time_stamp, 32 bit unsigned  More... | |
| number_type | lumi_block () const | 
| luminosity block identifier, 32 bit unsigned  More... | |
| number_type | bunch_crossing_id () const | 
| bunch crossing ID, 32 bit unsigned  More... | |
| void | set_run_number (number_type runNumber) | 
| set run number  More... | |
| void | set_event_number (event_number_t eventNumber) | 
| set event number  More... | |
| void | set_time_stamp (number_type timeStamp) | 
| set time stamp  More... | |
| void | set_time_stamp_ns_offset (number_type timeStampNs) | 
| set time stamp in ns  More... | |
| void | set_lumi_block (number_type lumiBlock) | 
| set luminosity block identifier  More... | |
| void | set_bunch_crossing_id (number_type bcid) | 
| set bunch crossing ID  More... | |
| bool | isRunEvent () const | 
| bool | isTimeStamp () const | 
| bool | isLumiEvent () const | 
| bool | isValid () const | 
| structors | |
| EventIDBase () | |
| EventIDBase (number_type run_number, event_number_t event_number, number_type time_stamp=UNDEFNUM, number_type time_stamp_ns_offset=0, number_type lumi_block=UNDEFNUM, number_type bunch_crossing_id=0) | |
| virtual | ~EventIDBase () | 
| Static Public Attributes | |
| static const number_type | UNDEFNUM | 
| static const event_number_t | UNDEFEVT | 
| Private Types | |
| enum | Type { Invalid = 0, RunEvent = 1 << 1, TimeStamp = 1 << 2, LumiEvent = 1 << 3 } | 
| Private Member Functions | |
| void | setRE () | 
| void | setTS () | 
| void | setLE () | 
| Private Attributes | |
| unsigned | m_type {Invalid} | 
| number_type | m_run_number {UNDEFNUM} | 
| run number  More... | |
| event_number_t | m_event_number {UNDEFEVT} | 
| event number  More... | |
| number_type | m_time_stamp {UNDEFNUM} | 
| posix time in seconds since 1970/01/01  More... | |
| number_type | m_time_stamp_ns_offset {UNDEFNUM} | 
| time stamp ns - ns time offset for time_stamp, 32 bit unsigned  More... | |
| number_type | m_lumiBlock {UNDEFNUM} | 
| luminosity block number: the number which uniquely tags a luminosity block within a run  More... | |
| number_type | m_bunch_crossing_id {UNDEFNUM} | 
| bunch crossing ID, 32 bit unsigned  More... | |
| Friends | |
| bool | operator< (const EventIDBase &lhs, const EventIDBase &rhs) | 
| Comparison operators.  More... | |
| bool | operator> (const EventIDBase &lhs, const EventIDBase &rhs) | 
| bool | operator== (const EventIDBase &lhs, const EventIDBase &rhs) | 
| bool | operator!= (const EventIDBase &lhs, const EventIDBase &rhs) | 
| bool | operator<= (const EventIDBase &lhs, const EventIDBase &rhs) | 
| bool | operator>= (const EventIDBase &lhs, const EventIDBase &rhs) | 
| std::ostream & | operator<< (std::ostream &os, const EventIDBase &rhs) | 
| Extraction operators.  More... | |
This class provides a unique identification for each event, in terms of run/event number and/or a time stamp.
Definition at line 29 of file EventIDBase.h.
| typedef uint64_t EventIDBase::event_number_t | 
Definition at line 33 of file EventIDBase.h.
| typedef unsigned int EventIDBase::number_type | 
Definition at line 32 of file EventIDBase.h.
| 
 | private | 
| Enumerator | |
|---|---|
| Invalid | |
| RunEvent | |
| TimeStamp | |
| LumiEvent | |
Definition at line 151 of file EventIDBase.h.
| 
 | inline | 
Definition at line 42 of file EventIDBase.h.
| EventIDBase::EventIDBase | ( | number_type | run_number, | 
| event_number_t | event_number, | ||
| number_type | time_stamp = UNDEFNUM, | ||
| number_type | time_stamp_ns_offset = 0, | ||
| number_type | lumi_block = UNDEFNUM, | ||
| number_type | bunch_crossing_id = 0 | ||
| ) | 
Definition at line 19 of file EventIDBase.cpp.
| 
 | virtual | 
Definition at line 50 of file EventIDBase.cpp.
| 
 | inline | 
bunch crossing ID, 32 bit unsigned
Definition at line 69 of file EventIDBase.h.
| 
 | inline | 
| bool EventIDBase::isLumiEvent | ( | ) | const | 
Definition at line 64 of file EventIDBase.cpp.
| bool EventIDBase::isRunEvent | ( | ) | const | 
Definition at line 54 of file EventIDBase.cpp.
| bool EventIDBase::isTimeStamp | ( | ) | const | 
Definition at line 59 of file EventIDBase.cpp.
| bool EventIDBase::isValid | ( | ) | const | 
Definition at line 69 of file EventIDBase.cpp.
| 
 | inline | 
luminosity block identifier, 32 bit unsigned
Definition at line 66 of file EventIDBase.h.
| 
 | inline | 
| 
 | inline | 
set bunch crossing ID
Definition at line 89 of file EventIDBase.h.
| 
 | inline | 
| 
 | inline | 
set luminosity block identifier
Definition at line 86 of file EventIDBase.h.
| 
 | inline | 
| 
 | inline | 
set time stamp
Definition at line 78 of file EventIDBase.h.
| 
 | inline | 
set time stamp in ns
Definition at line 81 of file EventIDBase.h.
| 
 | inlineprivate | 
Definition at line 162 of file EventIDBase.h.
| 
 | inlineprivate | 
Definition at line 160 of file EventIDBase.h.
| 
 | inlineprivate | 
Definition at line 161 of file EventIDBase.h.
| 
 | inline | 
time stamp - posix time in seconds from 1970, 32 bit unsigned
Definition at line 60 of file EventIDBase.h.
| 
 | inline | 
time stamp ns - ns time offset for time_stamp, 32 bit unsigned
Definition at line 63 of file EventIDBase.h.
| 
 | friend | 
Definition at line 211 of file EventIDBase.h.
| 
 | friend | 
Comparison operators.
Definition at line 185 of file EventIDBase.h.
| 
 | friend | 
Extraction operators.
Definition at line 221 of file EventIDBase.h.
| 
 | friend | 
Definition at line 214 of file EventIDBase.h.
| 
 | friend | 
Definition at line 203 of file EventIDBase.h.
| 
 | friend | 
Definition at line 208 of file EventIDBase.h.
| 
 | friend | 
Definition at line 217 of file EventIDBase.h.
| 
 | private | 
bunch crossing ID, 32 bit unsigned
Definition at line 181 of file EventIDBase.h.
| 
 | private | 
event number
Definition at line 168 of file EventIDBase.h.
| 
 | private | 
luminosity block number: the number which uniquely tags a luminosity block within a run
Definition at line 178 of file EventIDBase.h.
| 
 | private | 
run number
Definition at line 165 of file EventIDBase.h.
| 
 | private | 
posix time in seconds since 1970/01/01
Definition at line 171 of file EventIDBase.h.
| 
 | private | 
time stamp ns - ns time offset for time_stamp, 32 bit unsigned
Definition at line 174 of file EventIDBase.h.
| 
 | private | 
Definition at line 158 of file EventIDBase.h.
| 
 | static | 
Definition at line 36 of file EventIDBase.h.
| 
 | static | 
Definition at line 35 of file EventIDBase.h.