ATLAS Offline Software
IOVRange.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 #include "GaudiKernel/MsgStream.h"
7 #include "GaudiKernel/EventIDRange.h"
8 
9 #include <sstream>
10 #include <stdexcept>
11 #include <iostream>
12 
13 /*****************************************************************************
14  *
15  * IOVRange.cxx
16  * IOVSvc
17  *
18  * Author: Charles Leggett
19  *
20  * Validity Range object. Holds two IOVTimes (start and stop)
21  *
22  *****************************************************************************/
23 
26 }
27 
28 IOVRange::IOVRange( const EventIDRange& eir ):
29  m_start(eir.start()), m_stop(eir.stop()) {
34 }
35 
36 
37 IOVRange::operator EventIDRange() const {
38  return EventIDRange( EventIDBase(m_start), EventIDBase(m_stop) );
39 }
40 
41 
42 std::ostream& operator << (std::ostream& os, const IOVRange& rhs) {
43  os << (std::string) rhs;
44  return os;
45 }
46 
47 MsgStream& operator<< (MsgStream &msg, const IOVRange& rhs) {
48  msg << (std::string) rhs;
49  return msg;
50 }
51 
52 IOVRange::operator std::string () const {
53  std::ostringstream os;
54  os << '{' << m_start << " - " << m_stop << '}';
55  return os.str();
56 }
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:13
athena.value
value
Definition: athena.py:124
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
m_start
std::chrono::time_point< std::chrono::high_resolution_clock > m_start
Definition: ColumnarPhysliteTest.cxx:65
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
python.changerun.m_stop
m_stop
Definition: changerun.py:83
IOVRange::IOVRange
IOVRange()
Definition: IOVRange.h:32
operator<<
std::ostream & operator<<(std::ostream &os, const IOVRange &rhs)
Definition: IOVRange.cxx:42
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7