CMS 3D CMS Logo

LuminosityBlockID.cc
Go to the documentation of this file.
2 #include <ostream>
3 #include <limits>
4 
5 namespace edm {
6 
7  static unsigned int const shift = 8 * sizeof(unsigned int);
8 
10  : run_(static_cast<RunNumber_t>(id >> shift)),
11  luminosityBlock_(static_cast<LuminosityBlockNumber_t>(std::numeric_limits<unsigned int>::max() & id)) {}
12 
14  uint64_t id = run_;
15  id = id << shift;
16  id += luminosityBlock_;
17  return id;
18  }
19 
20  std::ostream& operator<<(std::ostream& oStream, LuminosityBlockID const& iID) {
21  oStream << "run: " << iID.run() << " luminosityBlock: " << iID.luminosityBlock();
22  return oStream;
23  }
24 } // namespace edm
edm::RunNumber_t
unsigned int RunNumber_t
Definition: RunLumiEventNumber.h:14
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::max
EventID const & max(EventID const &lh, EventID const &rh)
Definition: EventID.h:118
edm::LuminosityBlockID::run_
RunNumber_t run_
Definition: LuminosityBlockID.h:105
edm::LuminosityBlockNumber_t
unsigned int LuminosityBlockNumber_t
Definition: RunLumiEventNumber.h:13
LuminosityBlockID.h
edm::operator<<
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger tbale.
Definition: HLTGlobalStatus.h:106
edm::LuminosityBlockID::luminosityBlock_
LuminosityBlockNumber_t luminosityBlock_
Definition: LuminosityBlockID.h:106
edm::LuminosityBlockID
Definition: LuminosityBlockID.h:31
createfilelist.int
int
Definition: createfilelist.py:10
edm::LuminosityBlockID::luminosityBlock
LuminosityBlockNumber_t luminosityBlock() const
Definition: LuminosityBlockID.h:42
edm::LuminosityBlockID::value
uint64_t value() const
Definition: LuminosityBlockID.cc:13
edm::LuminosityBlockID::LuminosityBlockID
LuminosityBlockID()
Definition: LuminosityBlockID.h:33
std
Definition: JetResolutionObject.h:76
edm::shift
static unsigned const int shift
Definition: LuminosityBlockID.cc:7
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:29
edm::LuminosityBlockID::run
RunNumber_t run() const
Definition: LuminosityBlockID.h:41
cond::uint64_t
unsigned long long uint64_t
Definition: Time.h:13