ATLAS Offline Software
IOVRange.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ATHENAKERNEL_IOVRANGE_H
6  #include "AthenaKernel/IOVRange.h"
7 #endif
8 #ifndef GAUDIKERNEL_MSGSTREAM_H
9  #include "GaudiKernel/MsgStream.h"
10 #endif
11 
12 #include "GaudiKernel/EventIDRange.h"
13 #include <sstream>
14 #include <stdexcept>
15 #include <iostream>
16 
17 /*****************************************************************************
18  *
19  * IOVRange.cxx
20  * IOVSvc
21  *
22  * Author: Charles Leggett
23  * $Id: IOVRange.cxx,v 1.5 2008-05-08 15:57:15 leggett Exp $
24  *
25  * Validity Range object. Holds two IOVTimes (start and stop)
26  *
27  *****************************************************************************/
28 
31 }
32 
33 IOVRange::IOVRange( const EventIDRange& eir ):
34  m_start(eir.start()), m_stop(eir.stop()) {
39 }
40 
41 
42 IOVRange::operator EventIDRange() const {
43  return EventIDRange( EventIDBase(m_start), EventIDBase(m_stop) );
44 }
45 
46 
47 std::ostream& operator << (std::ostream& os, const IOVRange& rhs) {
48  os << (std::string) rhs;
49  return os;
50 }
51 
52 MsgStream& operator<< (MsgStream &msg, const IOVRange& rhs) {
53  msg << (std::string) rhs;
54  return msg;
55 }
56 
57 IOVRange::operator std::string () const {
58  std::ostringstream os;
59  os << '{' << m_start << " - " << m_stop << '}';
60  return os.str();
61 }
IOVRange
Validity Range object. Holds two IOVTimes (start and stop)
Definition: IOVRange.h:30
IOVRange.h
Validity Range object. Holds two IOVTime instances (start and stop)
mergePhysValFiles.start
start
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:14
athena.value
value
Definition: athena.py:122
PixelModuleFeMask_create_db.stop
int stop
Definition: PixelModuleFeMask_create_db.py:76
IOVTime
Basic time unit for IOVSvc. Hold time as a combination of run and event numbers.
Definition: IOVTime.h:33
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
python.changerun.m_stop
m_stop
Definition: changerun.py:85
IOVRange::IOVRange
IOVRange()
Definition: IOVRange.h:32
operator<<
std::ostream & operator<<(std::ostream &os, const IOVRange &rhs)
Definition: IOVRange.cxx:47
python.changerun.m_start
m_start
Definition: changerun.py:84
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7