The Gaudi Framework  v33r1 (b1225454)
EventIDRange.cpp
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
12 
13 /*****************************************************************************
14  *
15  * EventIDRange.cpp
16  *
17  * Author: Charles Leggett
18  *
19  * Validity Range object. Holds two EventIDBases (start and stop)
20  *
21  *****************************************************************************/
22 
24  : // defauld constructor: Range covering everything
25  m_start( 0, 0, 0, 0, 0, 0 )
26  , m_stop( EventIDBase::UNDEFNUM, EventIDBase::UNDEFEVT, EventIDBase::UNDEFNUM, EventIDBase::UNDEFNUM,
27  EventIDBase::UNDEFNUM, 0 ) {}
28 
29 EventIDRange::EventIDRange( const EventIDBase& start, const EventIDBase& stop ) : m_start( start ), m_stop( stop ) {
30 
31  // For pure time-stamp range, re-adjust start so that it covers O-INF in terms of run-lumi
36  }
37  // For pure run/lumi range, re-adjust start so that it covers 0-inf in terms of time-stamp
41  }
42 }
43 
45  if ( this != &r ) {
46  m_start = r.m_start;
47  m_stop = r.m_stop;
48  }
49  return *this;
50 }
51 
53  os << (std::string)rhs;
54  return os;
55 }
static const number_type UNDEFNUM
Definition: EventIDBase.h:71
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:202
EventIDBase m_stop
Definition: EventIDRange.h:77
event_number_t m_event_number
event number
Definition: EventIDBase.h:196
def start
Definition: IOTest.py:108
STL class.
number_type m_time_stamp
posix time in seconds since 1970/01/01
Definition: EventIDBase.h:199
number_type m_lumi_block
luminosity block number: the number which uniquely tags a luminosity block within a run
Definition: EventIDBase.h:206
Event ID Range object.
Definition: EventIDRange.h:33
EventIDRange & operator=(const EventIDRange &r)
number_type m_run_number
run number
Definition: EventIDBase.h:193
This class provides a unique identification for each event, in terms of run/event number and/or a tim...
Definition: EventIDBase.h:66
Event Range object.
EventIDBase m_start
Definition: EventIDRange.h:76
STL class.