CMS 3D CMS Logo

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 (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
 
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.

Definition at line 23 of file LuminosityBlockID.h.

Constructor & Destructor Documentation

◆ LuminosityBlockID() [1/3]

edm::LuminosityBlockID::LuminosityBlockID ( )
inline

Definition at line 25 of file LuminosityBlockID.h.

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

LuminosityBlockNumber_t luminosityBlock_
RunNumber_t const invalidRunNumber
LuminosityBlockNumber_t const invalidLuminosityBlockNumber

◆ LuminosityBlockID() [2/3]

edm::LuminosityBlockID::LuminosityBlockID ( uint64_t  id)
explicit

Definition at line 9 of file LuminosityBlockID.cc.

10  : run_(static_cast<RunNumber_t>(id >> shift)),
11  luminosityBlock_(static_cast<LuminosityBlockNumber_t>(std::numeric_limits<unsigned int>::max() & id)) {}
LuminosityBlockNumber_t luminosityBlock_
static unsigned int const shift

◆ LuminosityBlockID() [3/3]

edm::LuminosityBlockID::LuminosityBlockID ( RunNumber_t  iRun,
LuminosityBlockNumber_t  iLuminosityBlock 
)
inline

Definition at line 27 of file LuminosityBlockID.h.

28  : run_(iRun), luminosityBlock_(iLuminosityBlock) {}
LuminosityBlockNumber_t luminosityBlock_

Member Function Documentation

◆ doOp()

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

Definition at line 80 of file LuminosityBlockID.h.

References luminosityBlock_, findAndChange::op, and run_.

80  {
81  //Run takes presidence for comparisions
82  if (run_ == iRHS.run_) {
83  Op<LuminosityBlockNumber_t> op_e;
84  return op_e(luminosityBlock_, iRHS.luminosityBlock_);
85  }
86  Op<RunNumber_t> op;
87  return op(run_, iRHS.run_);
88  }
LuminosityBlockNumber_t luminosityBlock_

◆ firstValidLuminosityBlock()

static LuminosityBlockID edm::LuminosityBlockID::firstValidLuminosityBlock ( )
inlinestatic

Definition at line 76 of file LuminosityBlockID.h.

References LuminosityBlockID().

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

76 { return LuminosityBlockID(1, 1); }

◆ luminosityBlock()

LuminosityBlockNumber_t edm::LuminosityBlockID::luminosityBlock ( ) const
inline

Definition at line 32 of file LuminosityBlockID.h.

References luminosityBlock_.

Referenced by WriteCTPPSBeamParameters::analyze(), FRDOutputModule::beginLuminosityBlock(), DTEfficiencyTask::beginLuminosityBlock(), DTChamberEfficiencyTask::beginLuminosityBlock(), L1TRate_Offline::beginLuminosityBlock(), L1TRate::beginLuminosityBlock(), DTDigiTask::beginLuminosityBlock(), L1TSync::beginLuminosityBlock(), DTLocalTriggerTask::beginLuminosityBlock(), L1TBPTX::beginLuminosityBlock(), dqm::implementation::IBooker::bookME(), Types.EventID::cppID(), Types.LuminosityBlockID::cppID(), DTDCSByLumiTask::dqmBeginLuminosityBlock(), DTSegmentAnalysisTest::dqmBeginLuminosityBlock(), L1TTestsSummary::dqmEndLuminosityBlock(), SiPixelEDAClient::dqmEndLuminosityBlock(), BeamSpotProblemMonitor::dqmEndLuminosityBlock(), L1TOccupancyClient::dqmEndLuminosityBlock(), DTDataIntegrityTest::dqmEndLuminosityBlock(), DTBlockedROChannelsTest::dqmEndLuminosityBlock(), SiPixelPhase1Summary::dqmEndLuminosityBlock(), QualityTester::dqmEndLuminosityBlock(), TrackingAnalyser::dqmEndLuminosityBlock(), DTSegmentAnalysisTest::dqmEndLuminosityBlock(), DTChamberEfficiencyTest::dqmEndLuminosityBlock(), DTResolutionTest::dqmEndLuminosityBlock(), DTEfficiencyTest::dqmEndLuminosityBlock(), GEMDQMHarvester::dqmEndLuminosityBlock(), dqm::implementation::DQMStore::DQMStore(), edm::encode(), edm::LuminosityBlockRange::endLumi(), FRDOutputModule::endLuminosityBlock(), AlcaBeamMonitorClient::endLuminosityBlock(), L1ScalersClient::endLuminosityBlock(), LumiCalculator::endLuminosityBlock(), BeamMonitorBx::endLuminosityBlock(), FakeBeamMonitor::endLuminosityBlock(), BeamMonitor::endLuminosityBlock(), L1TRate_Offline::endLuminosityBlock(), L1TRate::endLuminosityBlock(), HLTScalers::endLuminosityBlock(), HLTScalersClient::endLuminosityBlock(), MEtoEDMConverter::endLuminosityBlockProduce(), dqmservices::DQMMonitoringService::evLumi(), OnlineBeamMonitor::globalBeginLuminosityBlock(), AlcaBeamMonitor::globalBeginLuminosityBlock(), L1Scalers::globalEndLuminosityBlock(), CTPPSCommonDQMSource::globalEndLuminosityBlock(), SiStripMonitorDigi::globalEndLuminosityBlock(), SiPixelDigiSource::globalEndLuminosityBlock(), OnlineBeamMonitor::globalEndLuminosityBlock(), AlcaBeamMonitor::globalEndLuminosityBlock(), dqm::DQMFileSaverBase::globalEndLuminosityBlock(), edm::LuminosityBlockAuxiliary::luminosityBlock(), edm::operator<<(), edm::service::IgProfService::postBeginLumi(), edm::service::JeProfService::postBeginLumi(), edm::service::IgProfService::postEndLumi(), edm::service::JeProfService::postEndLumi(), edmtest::TestServiceTwo::postGlobalBeginLumi(), edmtest::TestServiceOne::postGlobalBeginLumi(), edm::service::Tracer::postGlobalBeginLumi(), edmtest::TestServiceTwo::postGlobalEndLumi(), edmtest::TestServiceOne::postGlobalEndLumi(), FastTimerService::postGlobalEndLumi(), edm::service::Tracer::postGlobalEndLumi(), evf::FastMonitoringService::postGlobalEndLumi(), edmtest::TestServiceTwo::postGlobalWriteLumi(), edmtest::TestServiceOne::postGlobalWriteLumi(), edm::service::Tracer::postGlobalWriteLumi(), edmtest::TestServiceTwo::postModuleGlobalBeginLumi(), edmtest::TestServiceOne::postModuleGlobalBeginLumi(), edmtest::TestServiceTwo::postModuleGlobalEndLumi(), edmtest::TestServiceOne::postModuleGlobalEndLumi(), edmtest::TestServiceTwo::preGlobalBeginLumi(), edmtest::TestServiceOne::preGlobalBeginLumi(), edm::service::Tracer::preGlobalBeginLumi(), evf::FastMonitoringService::preGlobalBeginLumi(), evf::FastMonitoringService::preGlobalEarlyTermination(), edmtest::TestServiceTwo::preGlobalEndLumi(), evf::EvFDaqDirector::preGlobalEndLumi(), edmtest::TestServiceOne::preGlobalEndLumi(), edm::service::Tracer::preGlobalEndLumi(), evf::FastMonitoringService::preGlobalEndLumi(), edmtest::TestServiceTwo::preGlobalWriteLumi(), edmtest::TestServiceOne::preGlobalWriteLumi(), edm::service::Tracer::preGlobalWriteLumi(), edmtest::TestServiceTwo::preModuleGlobalBeginLumi(), edmtest::TestServiceOne::preModuleGlobalBeginLumi(), edmtest::TestServiceTwo::preModuleGlobalEndLumi(), edmtest::TestServiceOne::preModuleGlobalEndLumi(), PYBIND11_MODULE(), dqmservices::DQMProtobufReader::readLuminosityBlock_(), DQMRootSource::readLuminosityBlock_(), edm::service::tracer::setupFile(), edm::service::moduleAlloc::setupFile(), edm::LuminosityBlockRange::startLumi(), edm::service::Tracer::Tracer(), and edm::RootOutputFile::writeLuminosityBlock().

32 { return luminosityBlock_; }
LuminosityBlockNumber_t luminosityBlock_

◆ maxLuminosityBlockNumber()

static LuminosityBlockNumber_t edm::LuminosityBlockID::maxLuminosityBlockNumber ( )
inlinestatic

◆ next()

LuminosityBlockID edm::LuminosityBlockID::next ( void  ) const
inline

Definition at line 37 of file LuminosityBlockID.h.

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

37  {
40  }
41  return LuminosityBlockID(run_ + 1, 1);
42  }
LuminosityBlockNumber_t luminosityBlock_
static LuminosityBlockNumber_t maxLuminosityBlockNumber()

◆ nextRun()

LuminosityBlockID edm::LuminosityBlockID::nextRun ( ) const
inline

Definition at line 43 of file LuminosityBlockID.h.

References LuminosityBlockID(), and run_.

◆ nextRunFirstLuminosityBlock()

LuminosityBlockID edm::LuminosityBlockID::nextRunFirstLuminosityBlock ( ) const
inline

Definition at line 44 of file LuminosityBlockID.h.

References LuminosityBlockID(), and run_.

◆ operator!=()

bool edm::LuminosityBlockID::operator!= ( LuminosityBlockID const &  iRHS) const
inline

Definition at line 65 of file LuminosityBlockID.h.

65 { return !(*this == iRHS); }

◆ operator<()

bool edm::LuminosityBlockID::operator< ( LuminosityBlockID const &  iRHS) const
inline

Definition at line 67 of file LuminosityBlockID.h.

67 { return doOp<std::less>(iRHS); }

◆ operator<=()

bool edm::LuminosityBlockID::operator<= ( LuminosityBlockID const &  iRHS) const
inline

Definition at line 68 of file LuminosityBlockID.h.

68 { return doOp<std::less_equal>(iRHS); }

◆ operator==()

bool edm::LuminosityBlockID::operator== ( LuminosityBlockID const &  iRHS) const
inline

Definition at line 62 of file LuminosityBlockID.h.

References luminosityBlock_, and run_.

62  {
63  return iRHS.run_ == run_ && iRHS.luminosityBlock_ == luminosityBlock_;
64  }
LuminosityBlockNumber_t luminosityBlock_

◆ operator>()

bool edm::LuminosityBlockID::operator> ( LuminosityBlockID const &  iRHS) const
inline

Definition at line 69 of file LuminosityBlockID.h.

69 { return doOp<std::greater>(iRHS); }

◆ operator>=()

bool edm::LuminosityBlockID::operator>= ( LuminosityBlockID const &  iRHS) const
inline

Definition at line 70 of file LuminosityBlockID.h.

70 { return doOp<std::greater_equal>(iRHS); }

◆ previous()

LuminosityBlockID edm::LuminosityBlockID::previous ( ) const
inline

Definition at line 52 of file LuminosityBlockID.h.

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

52  {
53  if (luminosityBlock_ > 1) {
55  }
56  if (run_ != 0) {
58  }
59  return LuminosityBlockID(0, 0);
60  }
LuminosityBlockNumber_t luminosityBlock_
static LuminosityBlockNumber_t maxLuminosityBlockNumber()

◆ previousRunLastLuminosityBlock()

LuminosityBlockID edm::LuminosityBlockID::previousRunLastLuminosityBlock ( ) const
inline

Definition at line 45 of file LuminosityBlockID.h.

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

45  {
46  if (run_ > 1) {
48  }
49  return LuminosityBlockID(0, 0);
50  }
static LuminosityBlockNumber_t maxLuminosityBlockNumber()

◆ run()

RunNumber_t edm::LuminosityBlockID::run ( ) const
inline

Definition at line 31 of file LuminosityBlockID.h.

References run_.

Referenced by dqm::implementation::IBooker::bookME(), Types.EventID::cppID(), Types.LuminosityBlockID::cppID(), dqm::implementation::DQMStore::DQMStore(), edm::encode(), edm::LuminosityBlockRange::endRun(), dqmservices::DQMMonitoringService::evLumi(), edm::exceptionContext(), dqm::DQMFileSaverBase::globalEndLuminosityBlock(), edm::operator<<(), edm::service::IgProfService::postBeginRun(), edm::service::JeProfService::postBeginRun(), edm::service::IgProfService::postEndRun(), edm::service::JeProfService::postEndRun(), edmtest::TestServiceTwo::postGlobalBeginLumi(), edmtest::TestServiceOne::postGlobalBeginLumi(), edm::service::Tracer::postGlobalBeginLumi(), edmtest::TestServiceTwo::postGlobalBeginRun(), edmtest::TestServiceOne::postGlobalBeginRun(), edm::service::Tracer::postGlobalBeginRun(), edmtest::TestServiceTwo::postGlobalEndLumi(), edmtest::TestServiceOne::postGlobalEndLumi(), FastTimerService::postGlobalEndLumi(), edm::service::Tracer::postGlobalEndLumi(), edmtest::TestServiceTwo::postGlobalEndRun(), FastTimerService::postGlobalEndRun(), edmtest::TestServiceOne::postGlobalEndRun(), edm::service::Tracer::postGlobalEndRun(), edmtest::TestServiceTwo::postGlobalWriteLumi(), edmtest::TestServiceOne::postGlobalWriteLumi(), edm::service::Tracer::postGlobalWriteLumi(), edmtest::TestServiceTwo::postGlobalWriteRun(), edmtest::TestServiceOne::postGlobalWriteRun(), edm::service::Tracer::postGlobalWriteRun(), edmtest::TestServiceTwo::postModuleGlobalBeginLumi(), edmtest::TestServiceOne::postModuleGlobalBeginLumi(), edmtest::TestServiceTwo::postModuleGlobalBeginRun(), edmtest::TestServiceOne::postModuleGlobalBeginRun(), edmtest::TestServiceTwo::postModuleGlobalEndLumi(), edmtest::TestServiceOne::postModuleGlobalEndLumi(), edmtest::TestServiceTwo::postModuleGlobalEndRun(), edmtest::TestServiceOne::postModuleGlobalEndRun(), edm::service::IgProfService::preEndRun(), edm::service::JeProfService::preEndRun(), edmtest::TestServiceTwo::preGlobalBeginLumi(), edmtest::TestServiceOne::preGlobalBeginLumi(), edm::service::Tracer::preGlobalBeginLumi(), edmtest::TestServiceTwo::preGlobalBeginRun(), edmtest::TestServiceOne::preGlobalBeginRun(), edm::service::Tracer::preGlobalBeginRun(), edm::service::MessageLogger::preGlobalBeginRun(), cond::service::PoolDBOutputService::preGlobalBeginRun(), edmtest::TestServiceTwo::preGlobalEndLumi(), edmtest::TestServiceOne::preGlobalEndLumi(), edm::service::Tracer::preGlobalEndLumi(), edmtest::TestServiceTwo::preGlobalEndRun(), edmtest::TestServiceOne::preGlobalEndRun(), edm::service::Tracer::preGlobalEndRun(), edm::service::MessageLogger::preGlobalEndRun(), edmtest::TestServiceTwo::preGlobalWriteLumi(), edmtest::TestServiceOne::preGlobalWriteLumi(), edm::service::Tracer::preGlobalWriteLumi(), edmtest::TestServiceTwo::preGlobalWriteRun(), edmtest::TestServiceOne::preGlobalWriteRun(), edm::service::Tracer::preGlobalWriteRun(), edmtest::TestServiceTwo::preModuleGlobalBeginLumi(), edmtest::TestServiceOne::preModuleGlobalBeginLumi(), edmtest::TestServiceTwo::preModuleGlobalBeginRun(), edmtest::TestServiceOne::preModuleGlobalBeginRun(), edmtest::TestServiceTwo::preModuleGlobalEndLumi(), edmtest::TestServiceOne::preModuleGlobalEndLumi(), edmtest::TestServiceTwo::preModuleGlobalEndRun(), edmtest::TestServiceOne::preModuleGlobalEndRun(), PYBIND11_MODULE(), dqmservices::DQMProtobufReader::readLuminosityBlock_(), DQMRootSource::readLuminosityBlock_(), edm::LuminosityBlockAuxiliary::run(), edm::service::tracer::setupFile(), edm::service::moduleAlloc::setupFile(), edm::LuminosityBlockRange::startRun(), edm::service::Tracer::Tracer(), NanoAODOutputModule::writeLuminosityBlock(), NanoAODRNTupleOutputModule::writeLuminosityBlock(), edm::RootOutputFile::writeLuminosityBlock(), and DQMRootOutputModule::writeLuminosityBlock().

31 { return run_; }

◆ value()

uint64_t edm::LuminosityBlockID::value ( ) const

Definition at line 13 of file LuminosityBlockID.cc.

References l1ctLayer2EG_cff::id, 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(), Types.string::configValue(), Types.FileInPath::configValue(), Mixins.UsingBlock::dumpPython(), cond::time::fromIOVSyncValue(), Mixins.UsingBlock::insertInto(), Types.int32::insertInto(), Types.uint32::insertInto(), Types.int64::insertInto(), Types.uint64::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(), cond::service::PoolDBOutputService::preGlobalBeginLumi(), edm::service::Tracer::Tracer(), NanoAODOutputModule::writeLuminosityBlock(), NanoAODRNTupleOutputModule::writeLuminosityBlock(), and DQMRootOutputModule::writeLuminosityBlock().

13  {
14  uint64_t id = run_;
15  id = id << shift;
16  id += luminosityBlock_;
17  return id;
18  }
LuminosityBlockNumber_t luminosityBlock_
unsigned long long uint64_t
Definition: Time.h:13
static unsigned int const shift

Member Data Documentation

◆ luminosityBlock_

LuminosityBlockNumber_t edm::LuminosityBlockID::luminosityBlock_
private

Definition at line 92 of file LuminosityBlockID.h.

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

◆ run_

RunNumber_t edm::LuminosityBlockID::run_
private