test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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  RunNumber_t endRun, LuminosityBlockNumber_t endLuminosityBlock);
38 
40 
41  //virtual ~LuminosityBlockID();
42 
43  // ---------- const member functions ---------------------
46  RunNumber_t startRun() const {return startLumiID_.run();}
47  RunNumber_t endRun() const {return endLumiID_.run();}
50 
51  // ---------- static functions ---------------------------
52 
53  // ---------- member functions ---------------------------
54 
55  private:
56  // ---------- member data --------------------------------
57  //RunNumber_t startRun_;
58  //RunNumber_t endRun_;
59  //LuminosityBlockNumber_t startLumi_;
60  //LuminosityBlockNumber_t endLumi_;
63  };
64 
65  std::ostream& operator<<(std::ostream& oStream, LuminosityBlockRange const& iID);
66  bool contains(LuminosityBlockRange const& lh, LuminosityBlockID const& rh);
67  bool contains(LuminosityBlockRange const& lh, LuminosityBlockRange const& rh);
68  bool lessThan(LuminosityBlockRange const& lh, LuminosityBlockRange const& rh);
69  bool overlaps(LuminosityBlockRange const& lh, LuminosityBlockRange const& rh);
70  bool distinct(LuminosityBlockRange const& lh, LuminosityBlockRange const& rh);
72  std::vector<LuminosityBlockRange>& sortAndRemoveOverlaps(std::vector<LuminosityBlockRange>& lumiRange);
73 }
74 #endif
75 
bool contains(EventRange const &lh, EventID const &rh)
Definition: EventRange.cc:38
bool int lh
Definition: SIMDVec.h:21
unsigned int LuminosityBlockNumber_t
LuminosityBlockNumber_t startLumi() const
bool distinct(EventRange const &lh, EventRange const &rh)
Definition: EventRange.cc:72
RunNumber_t run() const
#define end
Definition: vmac.h:37
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:54
LuminosityBlockID startLumiID() const
#define begin
Definition: vmac.h:30
LuminosityBlockID endLumiID() const
std::vector< EventRange > & sortAndRemoveOverlaps(std::vector< EventRange > &eventRange)
Definition: EventRange.cc:102
RunNumber_t endRun() const
bool lessThan(EventRange const &lh, EventRange const &rh)
Definition: EventRange.cc:67
unsigned int RunNumber_t
LuminosityBlockNumber_t endLumi() const
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger tbale.