The Gaudi Framework  v32r0 (3325bb39)
EventIDRange.cpp
Go to the documentation of this file.
2 
3 /*****************************************************************************
4  *
5  * EventIDRange.cpp
6  *
7  * Author: Charles Leggett
8  *
9  * Validity Range object. Holds two EventIDBases (start and stop)
10  *
11  *****************************************************************************/
12 
14  : // defauld constructor: Range covering everything
15  m_start( 0, 0, 0, 0, 0, 0 )
16  , m_stop( EventIDBase::UNDEFNUM, EventIDBase::UNDEFEVT, EventIDBase::UNDEFNUM, EventIDBase::UNDEFNUM,
17  EventIDBase::UNDEFNUM, 0 ) {}
18 
20 
21  // For pure time-stamp range, re-adjust start so that it covers O-INF in terms of run-lumi
26  }
27  // For pure run/lumi range, re-adjust start so that it covers 0-inf in terms of time-stamp
31  }
32 }
33 
35  if ( this != &r ) {
36  m_start = r.m_start;
37  m_stop = r.m_stop;
38  }
39  return *this;
40 }
41 
43  os << (std::string)rhs;
44  return os;
45 }
static const number_type UNDEFNUM
Definition: EventIDBase.h:61
friend std::ostream & operator<<(std::ostream &os, const EventIDRange &rhs)
number_type m_time_stamp_ns_offset
time stamp ns - ns time offset for time_stamp, 32 bit unsigned
Definition: EventIDBase.h:192
EventIDBase m_stop
Definition: EventIDRange.h:67
event_number_t m_event_number
event number
Definition: EventIDBase.h:186
STL class.
number_type m_time_stamp
posix time in seconds since 1970/01/01
Definition: EventIDBase.h:189
number_type m_lumi_block
luminosity block number: the number which uniquely tags a luminosity block within a run ...
Definition: EventIDBase.h:196
Event ID Range object.
Definition: EventIDRange.h:23
EventIDRange & operator=(const EventIDRange &r)
number_type m_run_number
run number
Definition: EventIDBase.h:183
EventIDBase stop() const
Definition: EventIDRange.h:31
This class provides a unique identification for each event, in terms of run/event number and/or a tim...
Definition: EventIDBase.h:56
EventIDBase m_start
Definition: EventIDRange.h:66
EventIDBase start() const
Definition: EventIDRange.h:30
STL class.