ATLAS Offline Software
Loading...
Searching...
No Matches
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
14
15class LB_IOVRange: public IOVRange
16{
17 public:
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
24 uint32_t getNumExpected() const {return m_NumExpected;}
25 uint32_t getNumSeen() const {return m_NumSeen;}
26 void setNumExpected(uint32_t num) {m_NumExpected=num;}
27 void setNumSeen(uint32_t num) {m_NumSeen=num;}
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:
33 uint32_t m_NumExpected;
34 uint32_t m_NumSeen;
35
36};
37
38inline 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
46inline bool operator!=(const LB_IOVRange& lhs, const LB_IOVRange& rhs) {
47 return !(lhs==rhs);
48}
49#endif //>LUMIBLOCKDATA_LB_IOVRANGE_H
Validity Range object.
bool operator==(const LB_IOVRange &lhs, const LB_IOVRange &rhs)
Definition LB_IOVRange.h:38
bool operator!=(const LB_IOVRange &lhs, const LB_IOVRange &rhs)
Definition LB_IOVRange.h:46
const IOVTime & stop() const
Definition IOVRange.h:39
IOVRange()
Definition IOVRange.h:32
const IOVTime & start() const
Definition IOVRange.h:38
Basic time unit for IOVSvc.
Definition IOVTime.h:33
void setNumSeen(uint32_t num)
Definition LB_IOVRange.h:27
uint32_t m_NumSeen
Definition LB_IOVRange.h:34
uint32_t m_NumExpected
Definition LB_IOVRange.h:33
friend bool operator==(const LB_IOVRange &lhs, const LB_IOVRange &rhs)
Definition LB_IOVRange.h:38
uint32_t getNumExpected() const
Definition LB_IOVRange.h:24
uint32_t getNumSeen() const
Definition LB_IOVRange.h:25
void setNumExpected(uint32_t num)
Definition LB_IOVRange.h:26
friend bool operator!=(const LB_IOVRange &lhs, const LB_IOVRange &rhs)
Definition LB_IOVRange.h:46
int r
Definition globals.cxx:22