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
LuminosityBlockNumber_t luminosityBlock() const
LuminosityBlockNumber_t endLumi() const
bool contains(EventRange const &lh, EventID const &rh)
Definition: EventRange.cc:37
bool int lh
Definition: SIMDVec.h:20
unsigned int LuminosityBlockNumber_t
bool distinct(EventRange const &lh, EventRange const &rh)
Definition: EventRange.cc:69
LuminosityBlockID endLumiID() const
RunNumber_t startRun() const
RunNumber_t run() const
bool merge(LuminosityBlockRange &lh, LuminosityBlockRange &rh)
bool overlaps(EventRange const &lh, EventRange const &rh)
Definition: EventRange.cc:51
HLT enums.
std::vector< EventRange > & sortAndRemoveOverlaps(std::vector< EventRange > &eventRange)
Definition: EventRange.cc:98
bool lessThan(EventRange const &lh, EventRange const &rh)
Definition: EventRange.cc:64
string lumiRange
unsigned int RunNumber_t
LuminosityBlockID startLumiID() const
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger tbale.
LuminosityBlockNumber_t startLumi() const