CMS 3D CMS Logo

LuminosityBlockRange.h
Go to the documentation of this file.
1 #ifndef DataFormats_Provenance_LuminosityBlockRange_h
2 #define DataFormats_Provenance_LuminosityBlockRange_h
3 // -*- C++ -*-
4 //
5 // Package: DataFormats/Provenance
6 // Class : LuminosityBlockRange
7 //
16 //
17 //
18 
19 // system include files
20 #include <functional>
21 #include <iosfwd>
22 #include <vector>
23 
24 // user include files
26 
27 // forward declarations
28 namespace edm {
29 
30  // typedef unsigned int LuminosityBlockNumber_t;
31 
33  public:
35 
37  LuminosityBlockNumber_t startLuminosityBlock,
39  LuminosityBlockNumber_t endLuminosityBlock);
40 
42 
43  //virtual ~LuminosityBlockID();
44 
45  // ---------- const member functions ---------------------
48  RunNumber_t startRun() const { return startLumiID_.run(); }
49  RunNumber_t endRun() const { return endLumiID_.run(); }
52 
53  // ---------- static functions ---------------------------
54 
55  // ---------- member functions ---------------------------
56 
57  private:
58  // ---------- member data --------------------------------
59  //RunNumber_t startRun_;
60  //RunNumber_t endRun_;
61  //LuminosityBlockNumber_t startLumi_;
62  //LuminosityBlockNumber_t endLumi_;
65  };
66 
67  std::ostream& operator<<(std::ostream& oStream, LuminosityBlockRange const& iID);
68  bool contains(LuminosityBlockRange const& lh, LuminosityBlockID const& rh);
69  bool contains(LuminosityBlockRange const& lh, LuminosityBlockRange const& rh);
70  bool lessThan(LuminosityBlockRange const& lh, LuminosityBlockRange const& rh);
71  bool overlaps(LuminosityBlockRange const& lh, LuminosityBlockRange const& rh);
72  bool distinct(LuminosityBlockRange const& lh, LuminosityBlockRange const& rh);
74  std::vector<LuminosityBlockRange>& sortAndRemoveOverlaps(std::vector<LuminosityBlockRange>& lumiRange);
75 } // namespace edm
76 #endif
edm::RunNumber_t
unsigned int RunNumber_t
Definition: RunLumiEventNumber.h:14
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::sortAndRemoveOverlaps
std::vector< EventRange > & sortAndRemoveOverlaps(std::vector< EventRange > &eventRange)
Definition: EventRange.cc:98
mathSSE::lh
bool int lh
Definition: SIMDVec.h:20
edm::LuminosityBlockRange::endRun
RunNumber_t endRun() const
Definition: LuminosityBlockRange.h:49
edm::LuminosityBlockNumber_t
unsigned int LuminosityBlockNumber_t
Definition: RunLumiEventNumber.h:13
LuminosityBlockID.h
end
#define end
Definition: vmac.h:39
edm::operator<<
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger tbale.
Definition: HLTGlobalStatus.h:106
edm::distinct
bool distinct(EventRange const &lh, EventRange const &rh)
Definition: EventRange.cc:69
edm::LuminosityBlockRange::startLumiID
LuminosityBlockID startLumiID() const
Definition: LuminosityBlockRange.h:46
edm::LuminosityBlockRange::endLumiID_
LuminosityBlockID endLumiID_
Definition: LuminosityBlockRange.h:64
edm::LuminosityBlockRange::startLumi
LuminosityBlockNumber_t startLumi() const
Definition: LuminosityBlockRange.h:50
edm::LuminosityBlockID
Definition: LuminosityBlockID.h:31
edm::LuminosityBlockRange::endLumi
LuminosityBlockNumber_t endLumi() const
Definition: LuminosityBlockRange.h:51
edm::LuminosityBlockID::luminosityBlock
LuminosityBlockNumber_t luminosityBlock() const
Definition: LuminosityBlockID.h:42
edm::contains
bool contains(EventRange const &lh, EventID const &rh)
Definition: EventRange.cc:37
edm::merge
bool merge(LuminosityBlockRange &lh, LuminosityBlockRange &rh)
Definition: LuminosityBlockRange.cc:72
edm::lessThan
bool lessThan(EventRange const &lh, EventRange const &rh)
Definition: EventRange.cc:64
edm::LuminosityBlockID::run
RunNumber_t run() const
Definition: LuminosityBlockID.h:41
edm::LuminosityBlockRange::startLumiID_
LuminosityBlockID startLumiID_
Definition: LuminosityBlockRange.h:63
edm::LuminosityBlockRange::endLumiID
LuminosityBlockID endLumiID() const
Definition: LuminosityBlockRange.h:47
edm::LuminosityBlockRange::startRun
RunNumber_t startRun() const
Definition: LuminosityBlockRange.h:48
edm::LuminosityBlockRange::LuminosityBlockRange
LuminosityBlockRange()
Definition: LuminosityBlockRange.cc:25
begin
#define begin
Definition: vmac.h:32
edm::overlaps
bool overlaps(EventRange const &lh, EventRange const &rh)
Definition: EventRange.cc:51
edm::LuminosityBlockRange
Definition: LuminosityBlockRange.h:32