CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
bool contains(EventRange const &lh, EventID const &rh)
Definition: EventRange.cc:37
bool int lh
Definition: SIMDVec.h:20
unsigned int LuminosityBlockNumber_t
LuminosityBlockNumber_t startLumi() const
bool distinct(EventRange const &lh, EventRange const &rh)
Definition: EventRange.cc:69
RunNumber_t run() const
RunNumber_t startRun() const
bool merge(LuminosityBlockRange &lh, LuminosityBlockRange &rh)
LuminosityBlockNumber_t luminosityBlock() const
bool overlaps(EventRange const &lh, EventRange const &rh)
Definition: EventRange.cc:51
LuminosityBlockID startLumiID() const
LuminosityBlockID endLumiID() const
std::vector< EventRange > & sortAndRemoveOverlaps(std::vector< EventRange > &eventRange)
Definition: EventRange.cc:98
string end
Definition: dataset.py:937
RunNumber_t endRun() const
bool lessThan(EventRange const &lh, EventRange const &rh)
Definition: EventRange.cc:64
unsigned int RunNumber_t
LuminosityBlockNumber_t endLumi() const
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger tbale.