CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
LuminosityBlockID.cc
Go to the documentation of this file.
2 #include <ostream>
3 #include <limits>
4 
5 
6 
7 namespace edm {
8 
9  static unsigned int const shift = 8 * sizeof(unsigned int);
10 
12  run_(static_cast<RunNumber_t>(id >> shift)),
13  luminosityBlock_(static_cast<LuminosityBlockNumber_t>(std::numeric_limits<unsigned int>::max() & id))
14  {
15  }
16 
19  boost::uint64_t id = run_;
20  id = id << shift;
21  id += luminosityBlock_;
22  return id;
23  }
24 
25  std::ostream& operator<<(std::ostream& oStream, LuminosityBlockID const& iID) {
26  oStream<< "run: " << iID.run() << " luminosityBlock: " << iID.luminosityBlock();
27  return oStream;
28  }
29 }
LuminosityBlockNumber_t luminosityBlock_
boost::uint64_t value() const
unsigned int LuminosityBlockNumber_t
Definition: EventID.h:31
RunNumber_t run() const
unsigned long long uint64_t
Definition: Time.h:15
LuminosityBlockNumber_t luminosityBlock() const
static unsigned int const shift
unsigned int RunNumber_t
Definition: EventRange.h:32
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger tbale.
EventID const & max(EventID const &lh, EventID const &rh)
Definition: EventID.h:137