CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
edm::LuminosityBlockID Class Reference

#include <LuminosityBlockID.h>

Public Member Functions

LuminosityBlockNumber_t luminosityBlock () const
 
 LuminosityBlockID ()
 
 LuminosityBlockID (boost::uint64_t id)
 
 LuminosityBlockID (RunNumber_t iRun, LuminosityBlockNumber_t iLuminosityBlock)
 
LuminosityBlockID next () const
 
LuminosityBlockID nextRun () const
 
LuminosityBlockID nextRunFirstLuminosityBlock () const
 
bool operator!= (LuminosityBlockID const &iRHS) const
 
bool operator< (LuminosityBlockID const &iRHS) const
 
bool operator<= (LuminosityBlockID const &iRHS) const
 
bool operator== (LuminosityBlockID const &iRHS) const
 
bool operator> (LuminosityBlockID const &iRHS) const
 
bool operator>= (LuminosityBlockID const &iRHS) const
 
LuminosityBlockID previous () const
 
LuminosityBlockID previousRunLastLuminosityBlock () const
 
RunNumber_t run () const
 
boost::uint64_t value () const
 

Static Public Member Functions

static LuminosityBlockID firstValidLuminosityBlock ()
 
static LuminosityBlockNumber_t maxLuminosityBlockNumber ()
 

Private Member Functions

template<template< typename > class Op>
bool doOp (LuminosityBlockID const &iRHS) const
 

Private Attributes

LuminosityBlockNumber_t luminosityBlock_
 
RunNumber_t run_
 

Detailed Description

Description: Holds run and luminosityBlock number.

Usage: <usage>

Definition at line 31 of file LuminosityBlockID.h.

Constructor & Destructor Documentation

edm::LuminosityBlockID::LuminosityBlockID ( )
inline

Definition at line 33 of file LuminosityBlockID.h.

Referenced by firstValidLuminosityBlock(), next(), nextRun(), nextRunFirstLuminosityBlock(), previous(), and previousRunLastLuminosityBlock().

LuminosityBlockNumber_t luminosityBlock_
RunNumber_t const invalidRunNumber
LuminosityBlockNumber_t const invalidLuminosityBlockNumber
edm::LuminosityBlockID::LuminosityBlockID ( boost::uint64_t  id)
explicit

Definition at line 11 of file LuminosityBlockID.cc.

11  :
12  run_(static_cast<RunNumber_t>(id >> shift)),
13  luminosityBlock_(static_cast<LuminosityBlockNumber_t>(std::numeric_limits<unsigned int>::max() & id))
14  {
15  }
LuminosityBlockNumber_t luminosityBlock_
static unsigned int const shift
edm::LuminosityBlockID::LuminosityBlockID ( RunNumber_t  iRun,
LuminosityBlockNumber_t  iLuminosityBlock 
)
inline

Definition at line 35 of file LuminosityBlockID.h.

35  :
36  run_(iRun), luminosityBlock_(iLuminosityBlock) {}
LuminosityBlockNumber_t luminosityBlock_

Member Function Documentation

template<template< typename > class Op>
bool edm::LuminosityBlockID::doOp ( LuminosityBlockID const &  iRHS) const
inlineprivate

Definition at line 109 of file LuminosityBlockID.h.

References luminosityBlock_, and run_.

109  {
110  //Run takes presidence for comparisions
111  if(run_ == iRHS.run_) {
112  Op<LuminosityBlockNumber_t> op_e;
113  return op_e(luminosityBlock_, iRHS.luminosityBlock_);
114  }
115  Op<RunNumber_t> op;
116  return op(run_, iRHS.run_) ;
117  }
LuminosityBlockNumber_t luminosityBlock_
static LuminosityBlockID edm::LuminosityBlockID::firstValidLuminosityBlock ( )
inlinestatic

Definition at line 102 of file LuminosityBlockID.h.

References LuminosityBlockID().

Referenced by edm::RootFile::overrideRunNumber().

102  {
103  return LuminosityBlockID(1, 1);
104  }
LuminosityBlockNumber_t edm::LuminosityBlockID::luminosityBlock ( ) const
inline

Definition at line 42 of file LuminosityBlockID.h.

References luminosityBlock_.

Referenced by AlcaBeamMonitor::beginLuminosityBlock(), SiStripMonitorDigi::beginLuminosityBlock(), RawEventOutputModuleForBU< Consumer >::beginLuminosityBlock(), DQMEventInfo::beginLuminosityBlock(), DTEfficiencyTask::beginLuminosityBlock(), DTResolutionAnalysisTask::beginLuminosityBlock(), DTChamberEfficiencyTask::beginLuminosityBlock(), DTDCSByLumiTask::beginLuminosityBlock(), L1TRate::beginLuminosityBlock(), L1TRate_Offline::beginLuminosityBlock(), MulticoreRunLumiEventChecker::beginLuminosityBlock(), DTDigiTask::beginLuminosityBlock(), L1TSync::beginLuminosityBlock(), DTLocalTriggerTask::beginLuminosityBlock(), L1TBPTX::beginLuminosityBlock(), L1TEfficiencyMuons_Offline::beginLuminosityBlock(), BOOST_PYTHON_MODULE(), Types.EventID::cppID(), Types.LuminosityBlockID::cppID(), edm::decode(), RPCDcsInfoClient::dqmEndLuminosityBlock(), L1TTestsSummary::dqmEndLuminosityBlock(), SiPixelEDAClient::dqmEndLuminosityBlock(), DTDCSByLumiSummary::dqmEndLuminosityBlock(), L1TOccupancyClient::dqmEndLuminosityBlock(), DTBlockedROChannelsTest::dqmEndLuminosityBlock(), DTDataIntegrityTest::dqmEndLuminosityBlock(), TrackingAnalyser::dqmEndLuminosityBlock(), DTChamberEfficiencyTest::dqmEndLuminosityBlock(), DTSegmentAnalysisTest::dqmEndLuminosityBlock(), DTResolutionTest::dqmEndLuminosityBlock(), DTEfficiencyTest::dqmEndLuminosityBlock(), L1TEfficiency_Harvesting::dqmEndLuminosityBlock(), L1TEfficiencyMuons_Offline::dqmEndLuminosityBlock(), edm::encode(), edm::LuminosityBlockRange::endLumi(), L1Scalers::endLuminosityBlock(), AlcaBeamMonitorClient::endLuminosityBlock(), DQMDcsInfoClient::endLuminosityBlock(), SiStripMonitorDigi::endLuminosityBlock(), TKStatus::endLuminosityBlock(), LumiCalculator::endLuminosityBlock(), DQMProvInfo::endLuminosityBlock(), RawEventOutputModuleForBU< Consumer >::endLuminosityBlock(), L1ScalersClient::endLuminosityBlock(), BeamMonitorBx::endLuminosityBlock(), QualityTester::endLuminosityBlock(), BeamSpotProblemMonitor::endLuminosityBlock(), BeamMonitor::endLuminosityBlock(), L1TRate::endLuminosityBlock(), L1TRate_Offline::endLuminosityBlock(), MulticoreRunLumiEventChecker::endLuminosityBlock(), HLTScalers::endLuminosityBlock(), HLTScalersClient::endLuminosityBlock(), MEtoEDMConverter::endLuminosityBlockProduce(), DQMEDAnalyzer::endLuminosityBlockSummary(), dqmservices::DQMMonitoringService::evLumi(), HLTPrescaler::filter(), DQMFileSaver::globalEndLuminosityBlock(), cond::EmptyIOVSource::initialize(), cond::limitedIOVSyncValue(), cond::time::limitedIOVSyncValue(), edm::LuminosityBlockAuxiliary::luminosityBlock(), edm::operator<<(), edm::service::IgProfService::postBeginLumi(), edm::service::Tracer::postGlobalBeginLumi(), edm::service::Tracer::postGlobalEndLumi(), evf::FastMonitoringService::postGlobalEndLumi(), edm::service::Tracer::preGlobalBeginLumi(), evf::FastMonitoringService::preGlobalBeginLumi(), evf::FastMonitoringService::preGlobalEarlyTermination(), evf::EvFDaqDirector::preGlobalEndLumi(), edm::service::Tracer::preGlobalEndLumi(), evf::FastMonitoringService::preGlobalEndLumi(), dqmservices::DQMProtobufReader::readLuminosityBlock_(), DQMRootSource::readLuminosityBlock_(), edm::RootFile::readLuminosityBlockAuxiliary_(), cond::EmptyIOVSource::setRunAndEventInfo(), edm::LuminosityBlockRange::startLumi(), cond::toIOVSyncValue(), cond::time::toIOVSyncValue(), edm::service::Tracer::Tracer(), and edm::RootOutputFile::writeLuminosityBlock().

42 { return luminosityBlock_; }
LuminosityBlockNumber_t luminosityBlock_
static LuminosityBlockNumber_t edm::LuminosityBlockID::maxLuminosityBlockNumber ( )
inlinestatic
LuminosityBlockID edm::LuminosityBlockID::next ( void  ) const
inline

Definition at line 47 of file LuminosityBlockID.h.

References luminosityBlock_, LuminosityBlockID(), maxLuminosityBlockNumber(), and run_.

Referenced by BeautifulSoup.PageElement::_invert().

47  {
50  }
51  return LuminosityBlockID(run_+1, 1);
52  }
LuminosityBlockNumber_t luminosityBlock_
static LuminosityBlockNumber_t maxLuminosityBlockNumber()
LuminosityBlockID edm::LuminosityBlockID::nextRun ( ) const
inline

Definition at line 53 of file LuminosityBlockID.h.

References LuminosityBlockID(), and run_.

53  {
54  return LuminosityBlockID(run_+1, 0);
55  }
LuminosityBlockID edm::LuminosityBlockID::nextRunFirstLuminosityBlock ( ) const
inline

Definition at line 56 of file LuminosityBlockID.h.

References LuminosityBlockID(), and run_.

56  {
57  return LuminosityBlockID(run_+1, 1);
58  }
bool edm::LuminosityBlockID::operator!= ( LuminosityBlockID const &  iRHS) const
inline

Definition at line 79 of file LuminosityBlockID.h.

79  {
80  return ! (*this == iRHS);
81  }
bool edm::LuminosityBlockID::operator< ( LuminosityBlockID const &  iRHS) const
inline

Definition at line 83 of file LuminosityBlockID.h.

83  {
84  return doOp<std::less>(iRHS);
85  }
bool edm::LuminosityBlockID::operator<= ( LuminosityBlockID const &  iRHS) const
inline

Definition at line 86 of file LuminosityBlockID.h.

86  {
87  return doOp<std::less_equal>(iRHS);
88  }
bool edm::LuminosityBlockID::operator== ( LuminosityBlockID const &  iRHS) const
inline

Definition at line 76 of file LuminosityBlockID.h.

References luminosityBlock_, and run_.

76  {
77  return iRHS.run_ == run_ && iRHS.luminosityBlock_ == luminosityBlock_;
78  }
LuminosityBlockNumber_t luminosityBlock_
bool edm::LuminosityBlockID::operator> ( LuminosityBlockID const &  iRHS) const
inline

Definition at line 89 of file LuminosityBlockID.h.

89  {
90  return doOp<std::greater>(iRHS);
91  }
bool edm::LuminosityBlockID::operator>= ( LuminosityBlockID const &  iRHS) const
inline

Definition at line 92 of file LuminosityBlockID.h.

92  {
93  return doOp<std::greater_equal>(iRHS);
94  }
LuminosityBlockID edm::LuminosityBlockID::previous ( ) const
inline

Definition at line 66 of file LuminosityBlockID.h.

References luminosityBlock_, LuminosityBlockID(), maxLuminosityBlockNumber(), and run_.

Referenced by BeautifulSoup.PageElement::_invert().

66  {
67  if(luminosityBlock_ > 1) {
69  }
70  if(run_ != 0) {
72  }
73  return LuminosityBlockID(0,0);
74  }
LuminosityBlockNumber_t luminosityBlock_
static LuminosityBlockNumber_t maxLuminosityBlockNumber()
LuminosityBlockID edm::LuminosityBlockID::previousRunLastLuminosityBlock ( ) const
inline

Definition at line 59 of file LuminosityBlockID.h.

References LuminosityBlockID(), maxLuminosityBlockNumber(), and run_.

59  {
60  if(run_ > 1) {
62  }
63  return LuminosityBlockID(0,0);
64  }
static LuminosityBlockNumber_t maxLuminosityBlockNumber()
RunNumber_t edm::LuminosityBlockID::run ( ) const
inline

Definition at line 41 of file LuminosityBlockID.h.

References run_.

Referenced by MulticoreRunLumiEventChecker::beginLuminosityBlock(), BOOST_PYTHON_MODULE(), Types.EventID::cppID(), Types.LuminosityBlockID::cppID(), edm::decode(), edm::encode(), MulticoreRunLumiEventChecker::endLuminosityBlock(), edm::LuminosityBlockRange::endRun(), dqmservices::DQMMonitoringService::evLumi(), DQMFileSaver::globalEndLuminosityBlock(), cond::EmptyIOVSource::initialize(), cond::limitedIOVSyncValue(), cond::time::limitedIOVSyncValue(), edm::operator<<(), edm::service::IgProfService::postBeginRun(), edm::service::Tracer::postGlobalBeginLumi(), edm::service::Tracer::postGlobalBeginRun(), edm::service::Tracer::postGlobalEndLumi(), edm::service::Tracer::postGlobalEndRun(), FastTimerService::postGlobalEndRun(), edm::service::Tracer::preGlobalBeginLumi(), edm::service::MessageLogger::preGlobalBeginLumi(), edm::service::Tracer::preGlobalBeginRun(), edm::service::MessageLogger::preGlobalBeginRun(), cond::service::PoolDBOutputService::preGlobalBeginRun(), edm::service::Tracer::preGlobalEndLumi(), edm::service::MessageLogger::preGlobalEndLumi(), edm::service::Tracer::preGlobalEndRun(), edm::service::MessageLogger::preGlobalEndRun(), dqmservices::DQMProtobufReader::readLuminosityBlock_(), DQMRootSource::readLuminosityBlock_(), edm::RootFile::readLuminosityBlockAuxiliary_(), edm::LuminosityBlockAuxiliary::run(), cond::EmptyIOVSource::setRunAndEventInfo(), edm::LuminosityBlockRange::startRun(), cond::toIOVSyncValue(), cond::time::toIOVSyncValue(), edm::service::Tracer::Tracer(), edm::RootOutputFile::writeLuminosityBlock(), and DQMRootOutputModule::writeLuminosityBlock().

41 { return run_; }
boost::uint64_t edm::LuminosityBlockID::value ( ) const

Definition at line 18 of file LuminosityBlockID.cc.

References luminosityBlock_, run_, and edm::shift.

Referenced by Types.int32::__nonzero__(), Types.uint32::__nonzero__(), Types.int64::__nonzero__(), Types.uint64::__nonzero__(), Types.double::__nonzero__(), Types.bool::__nonzero__(), Types.string::__nonzero__(), average.Average::average(), Vispa.Views.PropertyView.FileProperty::buttonClicked(), Types.string::configValue(), Types.FileInPath::configValue(), Mixins.UsingBlock::dumpPython(), cond::fromIOVSyncValue(), cond::time::fromIOVSyncValue(), Types.int32::insertInto(), Types.uint32::insertInto(), Types.int64::insertInto(), Types.uint64::insertInto(), Mixins.UsingBlock::insertInto(), Types.double::insertInto(), Types.bool::insertInto(), Types.string::insertInto(), Types.FileInPath::insertInto(), Types.vint32::insertInto(), Types.vuint32::insertInto(), Types.vint64::insertInto(), Types.vuint64::insertInto(), Types.vdouble::insertInto(), Types.vbool::insertInto(), Types.vstring::insertInto(), Vispa.Views.PropertyView.FileProperty::labelDoubleClicked(), cond::service::PoolDBOutputService::preGlobalBeginLumi(), edm::service::Tracer::Tracer(), and DQMRootOutputModule::writeLuminosityBlock().

18  {
19  boost::uint64_t id = run_;
20  id = id << shift;
21  id += luminosityBlock_;
22  return id;
23  }
LuminosityBlockNumber_t luminosityBlock_
unsigned long long uint64_t
Definition: Time.h:15
static unsigned int const shift

Member Data Documentation

LuminosityBlockNumber_t edm::LuminosityBlockID::luminosityBlock_
private

Definition at line 124 of file LuminosityBlockID.h.

Referenced by doOp(), luminosityBlock(), next(), operator==(), previous(), and value().

RunNumber_t edm::LuminosityBlockID::run_
private