ATLAS Offline Software
Public Member Functions | Private Attributes | Friends | List of all members
IOVRange Class Reference

Validity Range object. Holds two IOVTimes (start and stop) More...

#include <IOVRange.h>

Inheritance diagram for IOVRange:
Collaboration diagram for IOVRange:

Public Member Functions

 IOVRange ()
 
 IOVRange (const IOVTime &start, const IOVTime &stop)
 
 IOVRange (const EventIDRange &eir)
 
 IOVRange (const IOVRange &r)=default
 
IOVRangeoperator= (const IOVRange &r)=default
 
const IOVTimestart () const
 
const IOVTimestop () const
 
bool isInRange (const IOVTime &t) const
 
 operator std::string () const
 
 operator EventIDRange () const
 

Private Attributes

IOVTime m_start
 
IOVTime m_stop
 

Friends

bool operator== (const IOVRange &lhs, const IOVRange &rhs)
 
bool operator!= (const IOVRange &lhs, const IOVRange &rhs)
 
std::ostream & operator<< (std::ostream &os, const IOVRange &rhs)
 
MsgStream & operator<< (MsgStream &os, const IOVRange &rhs)
 

Detailed Description

Validity Range object. Holds two IOVTimes (start and stop)

Definition at line 30 of file IOVRange.h.

Constructor & Destructor Documentation

◆ IOVRange() [1/4]

IOVRange::IOVRange ( )
inline

Definition at line 32 of file IOVRange.h.

32 : m_start(0),m_stop(0) {};

◆ IOVRange() [2/4]

IOVRange::IOVRange ( const IOVTime start,
const IOVTime stop 
)

Definition at line 29 of file IOVRange.cxx.

29  :
31 }

◆ IOVRange() [3/4]

IOVRange::IOVRange ( const EventIDRange &  eir)

Definition at line 33 of file IOVRange.cxx.

33  :
34  m_start(eir.start()), m_stop(eir.stop()) {
39 }

◆ IOVRange() [4/4]

IOVRange::IOVRange ( const IOVRange r)
default

Member Function Documentation

◆ isInRange()

bool IOVRange::isInRange ( const IOVTime t) const
inline

Definition at line 41 of file IOVRange.h.

41  {
42  return ( t>=m_start && t<m_stop );
43  }

◆ operator EventIDRange()

IOVRange::operator EventIDRange ( ) const

Definition at line 42 of file IOVRange.cxx.

42  {
43  return EventIDRange( EventIDBase(m_start), EventIDBase(m_stop) );
44 }

◆ operator std::string()

IOVRange::operator std::string ( ) const

Definition at line 57 of file IOVRange.cxx.

57  {
58  std::ostringstream os;
59  os << '{' << m_start << " - " << m_stop << '}';
60  return os.str();
61 }

◆ operator=()

IOVRange& IOVRange::operator= ( const IOVRange r)
default

◆ start()

const IOVTime& IOVRange::start ( ) const
inline

Definition at line 38 of file IOVRange.h.

38 { return m_start; }

◆ stop()

const IOVTime& IOVRange::stop ( ) const
inline

Definition at line 39 of file IOVRange.h.

39 { return m_stop; }

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( const IOVRange lhs,
const IOVRange rhs 
)
friend

Definition at line 67 of file IOVRange.h.

67  {
68  return ! (lhs == rhs);
69 }

◆ operator<< [1/2]

MsgStream& operator<< ( MsgStream &  os,
const IOVRange rhs 
)
friend

Definition at line 52 of file IOVRange.cxx.

52  {
53  msg << (std::string) rhs;
54  return msg;
55 }

◆ operator<< [2/2]

std::ostream& operator<< ( std::ostream &  os,
const IOVRange rhs 
)
friend

Definition at line 47 of file IOVRange.cxx.

47  {
48  os << (std::string) rhs;
49  return os;
50 }

◆ operator==

bool operator== ( const IOVRange lhs,
const IOVRange rhs 
)
friend

Definition at line 62 of file IOVRange.h.

62  {
63  return lhs.m_start==rhs.m_start &&
64  lhs.m_stop==rhs.m_stop ;
65 }

Member Data Documentation

◆ m_start

IOVTime IOVRange::m_start
private

Definition at line 56 of file IOVRange.h.

◆ m_stop

IOVTime IOVRange::m_stop
private

Definition at line 57 of file IOVRange.h.


The documentation for this class was generated from the following files:
IOVRange::start
const IOVTime & start() const
Definition: IOVRange.h:38
athena.value
value
Definition: athena.py:124
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
IOVRange::stop
const IOVTime & stop() const
Definition: IOVRange.h:39
IOVRange::m_stop
IOVTime m_stop
Definition: IOVRange.h:57
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
IOVRange::m_start
IOVTime m_start
Definition: IOVRange.h:56
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7