ATLAS Offline Software
Control
AthenaKernel
src
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
29
IOVRange::IOVRange
(
const
IOVTime
&
start
,
const
IOVTime
&
stop
):
30
m_start
(
start
),
m_stop
(
stop
) {
31
}
32
33
IOVRange::IOVRange
(
const
EventIDRange& eir ):
34
m_start
(eir.
start
()),
m_stop
(eir.
stop
()) {
35
static_assert(
std::is_trivially_copyable<IOVRange>::value
);
36
static_assert(
std::is_trivially_destructible<IOVRange>::value
);
37
static_assert(
std::is_trivially_copyable<IOVTime>::value
);
38
static_assert(
std::is_trivially_destructible<IOVTime>::value
);
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
Generated on Sun Jun 30 2024 21:18:01 for ATLAS Offline Software by
1.8.18