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

#include <LB_IOVRange.h>

Inheritance diagram for LB_IOVRange:
Collaboration diagram for LB_IOVRange:

Public Member Functions

 LB_IOVRange ()
 
 LB_IOVRange (const IOVTime &start, const IOVTime &stop)
 
 LB_IOVRange (const IOVRange &r)
 
 LB_IOVRange (const IOVRange &r, uint32_t numExpected, uint32_t numSeen)
 
uint32_t getNumExpected () const
 
uint32_t getNumSeen () const
 
void setNumExpected (uint32_t num)
 
void setNumSeen (uint32_t num)
 
const IOVTimestart () const
 
const IOVTimestop () const
 
bool isInRange (const IOVTime &t) const
 
 operator std::string () const
 
 operator EventIDRange () const
 

Protected Attributes

uint32_t m_NumExpected
 
uint32_t m_NumSeen
 

Private Attributes

IOVTime m_start
 
IOVTime m_stop
 

Friends

bool operator== (const LB_IOVRange &lhs, const LB_IOVRange &rhs)
 
bool operator!= (const LB_IOVRange &lhs, const LB_IOVRange &rhs)
 

Detailed Description

Definition at line 15 of file LB_IOVRange.h.

Constructor & Destructor Documentation

◆ LB_IOVRange() [1/4]

LB_IOVRange::LB_IOVRange ( )

Definition at line 12 of file LB_IOVRange.cxx.

◆ LB_IOVRange() [2/4]

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

Definition at line 14 of file LB_IOVRange.cxx.

14  : IOVRange(start, stop ),
15  m_NumExpected(0), m_NumSeen(0) {}

◆ LB_IOVRange() [3/4]

LB_IOVRange::LB_IOVRange ( const IOVRange r)

Definition at line 17 of file LB_IOVRange.cxx.

17  : IOVRange(r.start(),r.stop()) ,
18  m_NumExpected(0), m_NumSeen(0){}

◆ LB_IOVRange() [4/4]

LB_IOVRange::LB_IOVRange ( const IOVRange r,
uint32_t  numExpected,
uint32_t  numSeen 
)

Definition at line 20 of file LB_IOVRange.cxx.

20  : IOVRange(r.start(),r.stop()),
21  m_NumExpected(numExpected), m_NumSeen(numSeen) {}

Member Function Documentation

◆ getNumExpected()

uint32_t LB_IOVRange::getNumExpected ( ) const
inline

Definition at line 24 of file LB_IOVRange.h.

24 {return m_NumExpected;}

◆ getNumSeen()

uint32_t LB_IOVRange::getNumSeen ( ) const
inline

Definition at line 25 of file LB_IOVRange.h.

25 {return m_NumSeen;}

◆ isInRange()

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

Definition at line 41 of file IOVRange.h.

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

◆ operator EventIDRange()

IOVRange::operator EventIDRange ( ) const
inherited

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
inherited

Definition at line 57 of file IOVRange.cxx.

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

◆ setNumExpected()

void LB_IOVRange::setNumExpected ( uint32_t  num)
inline

Definition at line 26 of file LB_IOVRange.h.

◆ setNumSeen()

void LB_IOVRange::setNumSeen ( uint32_t  num)
inline

Definition at line 27 of file LB_IOVRange.h.

27 {m_NumSeen=num;}

◆ start()

const IOVTime& IOVRange::start ( ) const
inlineinherited

Definition at line 38 of file IOVRange.h.

38 { return m_start; }

◆ stop()

const IOVTime& IOVRange::stop ( ) const
inlineinherited

Definition at line 39 of file IOVRange.h.

39 { return m_stop; }

Friends And Related Function Documentation

◆ operator!=

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

Definition at line 46 of file LB_IOVRange.h.

46  {
47  return !(lhs==rhs);
48 }

◆ operator==

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

Definition at line 38 of file LB_IOVRange.h.

38  {
39  return lhs.start()==rhs.start() &&
40  lhs.stop()==rhs.stop() &&
41  lhs.getNumExpected()==rhs.getNumExpected() &&
42  lhs.getNumSeen()==rhs.getNumSeen();
43 }

Member Data Documentation

◆ m_NumExpected

uint32_t LB_IOVRange::m_NumExpected
protected

Definition at line 33 of file LB_IOVRange.h.

◆ m_NumSeen

uint32_t LB_IOVRange::m_NumSeen
protected

Definition at line 34 of file LB_IOVRange.h.

◆ m_start

IOVTime IOVRange::m_start
privateinherited

Definition at line 56 of file IOVRange.h.

◆ m_stop

IOVTime IOVRange::m_stop
privateinherited

Definition at line 57 of file IOVRange.h.


The documentation for this class was generated from the following files:
beamspotman.r
def r
Definition: beamspotman.py:676
LB_IOVRange::getNumExpected
uint32_t getNumExpected() const
Definition: LB_IOVRange.h:24
IOVRange::start
const IOVTime & start() const
Definition: IOVRange.h:38
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
LB_IOVRange::getNumSeen
uint32_t getNumSeen() const
Definition: LB_IOVRange.h:25
IOVRange::stop
const IOVTime & stop() const
Definition: IOVRange.h:39
IOVTime
Basic time unit for IOVSvc. Hold time as a combination of run and event numbers.
Definition: IOVTime.h:33
IOVRange::m_stop
IOVTime m_stop
Definition: IOVRange.h:57
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
trigbs_pickEvents.num
num
Definition: trigbs_pickEvents.py:76
IOVRange::IOVRange
IOVRange()
Definition: IOVRange.h:32
LB_IOVRange::m_NumExpected
uint32_t m_NumExpected
Definition: LB_IOVRange.h:33
IOVRange::m_start
IOVTime m_start
Definition: IOVRange.h:56
LB_IOVRange::m_NumSeen
uint32_t m_NumSeen
Definition: LB_IOVRange.h:34