ATLAS Offline Software
LB_IOVRange.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // Header file for class LumiBlockCollection
7 // Author: Marjorie Shapiro <mdshapiro@lbl.gov>
9 #ifndef LUMIBLOCKDATA_LB_IOVRANGE_H
10 #define LUMIBLOCKDATA_LB_IOVRANGE_H
11 
12 // The IOVRange class
13 #include "AthenaKernel/IOVRange.h"
14 
15 class LB_IOVRange: public IOVRange
16 {
17  public:
18  LB_IOVRange();
19  LB_IOVRange( const IOVTime& start, const IOVTime& stop );
20  LB_IOVRange( const IOVRange& r);
21  LB_IOVRange( const IOVRange& r, uint32_t numExpected, uint32_t numSeen);
22 
23 
25  uint32_t getNumSeen() const {return m_NumSeen;}
28 
29  friend bool operator==(const LB_IOVRange& lhs, const LB_IOVRange& rhs);
30  friend bool operator!=(const LB_IOVRange& lhs, const LB_IOVRange& rhs);
31 
32  protected:
35 
36 };
37 
38 inline bool operator==(const LB_IOVRange& lhs, const LB_IOVRange& rhs) {
39  return lhs.start()==rhs.start() &&
40  lhs.stop()==rhs.stop() &&
41  lhs.getNumExpected()==rhs.getNumExpected() &&
42  lhs.getNumSeen()==rhs.getNumSeen();
43 }
44 
45 
46 inline bool operator!=(const LB_IOVRange& lhs, const LB_IOVRange& rhs) {
47  return !(lhs==rhs);
48 }
49 #endif //>LUMIBLOCKDATA_LB_IOVRANGE_H
beamspotman.r
def r
Definition: beamspotman.py:676
operator!=
bool operator!=(const LB_IOVRange &lhs, const LB_IOVRange &rhs)
Definition: LB_IOVRange.h:46
LB_IOVRange::setNumExpected
void setNumExpected(uint32_t num)
Definition: LB_IOVRange.h:26
LB_IOVRange::LB_IOVRange
LB_IOVRange()
Definition: LB_IOVRange.cxx:12
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)
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
LB_IOVRange::getNumExpected
uint32_t getNumExpected() const
Definition: LB_IOVRange.h:24
IOVRange::start
const IOVTime & start() const
Definition: IOVRange.h:38
LB_IOVRange::setNumSeen
void setNumSeen(uint32_t num)
Definition: LB_IOVRange.h:27
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
operator==
bool operator==(const LB_IOVRange &lhs, const LB_IOVRange &rhs)
Definition: LB_IOVRange.h:38
trigbs_pickEvents.num
num
Definition: trigbs_pickEvents.py:76
LB_IOVRange::operator==
friend bool operator==(const LB_IOVRange &lhs, const LB_IOVRange &rhs)
Definition: LB_IOVRange.h:38
LB_IOVRange::m_NumExpected
uint32_t m_NumExpected
Definition: LB_IOVRange.h:33
LB_IOVRange
Definition: LB_IOVRange.h:16
LB_IOVRange::operator!=
friend bool operator!=(const LB_IOVRange &lhs, const LB_IOVRange &rhs)
Definition: LB_IOVRange.h:46
LB_IOVRange::m_NumSeen
uint32_t m_NumSeen
Definition: LB_IOVRange.h:34