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 (RunNumber_t iRun, LuminosityBlockNumber_t iLuminosityBlock)
 
 LuminosityBlockID (uint64_t id)
 
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.

Usage: <usage>

Definition at line 31 of file LuminosityBlockID.h.

Constructor & Destructor Documentation

◆ LuminosityBlockID() [1/3]

edm::LuminosityBlockID::LuminosityBlockID ( )
inline

◆ 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)) {}

◆ LuminosityBlockID() [3/3]

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

Definition at line 35 of file LuminosityBlockID.h.

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

Member Function Documentation

◆ doOp()

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

Definition at line 91 of file LuminosityBlockID.h.

91  {
92  //Run takes presidence for comparisions
93  if (run_ == iRHS.run_) {
94  Op<LuminosityBlockNumber_t> op_e;
95  return op_e(luminosityBlock_, iRHS.luminosityBlock_);
96  }
97  Op<RunNumber_t> op;
98  return op(run_, iRHS.run_);
99  }

References luminosityBlock_, and run_.

◆ firstValidLuminosityBlock()

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

Definition at line 86 of file LuminosityBlockID.h.

86 { return LuminosityBlockID(1, 1); }

References LuminosityBlockID().

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

◆ luminosityBlock()

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

Definition at line 42 of file LuminosityBlockID.h.

42 { return luminosityBlock_; }

References luminosityBlock_.

Referenced by WriteCTPPSBeamParameters::analyze(), 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(), SiPixelDigiSource::dqmBeginLuminosityBlock(), DTSegmentAnalysisTest::dqmBeginLuminosityBlock(), L1TTestsSummary::dqmEndLuminosityBlock(), SiPixelEDAClient::dqmEndLuminosityBlock(), BeamSpotProblemMonitor::dqmEndLuminosityBlock(), L1TOccupancyClient::dqmEndLuminosityBlock(), DTDataIntegrityTest::dqmEndLuminosityBlock(), DTBlockedROChannelsTest::dqmEndLuminosityBlock(), QualityTester::dqmEndLuminosityBlock(), TrackingAnalyser::dqmEndLuminosityBlock(), SiPixelPhase1Summary::dqmEndLuminosityBlock(), SiPixelDigiSource::dqmEndLuminosityBlock(), DTSegmentAnalysisTest::dqmEndLuminosityBlock(), DTChamberEfficiencyTest::dqmEndLuminosityBlock(), DTResolutionTest::dqmEndLuminosityBlock(), DTEfficiencyTest::dqmEndLuminosityBlock(), dqm::implementation::DQMStore::DQMStore(), edm::encode(), edm::LuminosityBlockRange::endLumi(), AlcaBeamMonitorClient::endLuminosityBlock(), LumiCalculator::endLuminosityBlock(), BeamMonitor::endLuminosityBlock(), L1ScalersClient::endLuminosityBlock(), BeamMonitorBx::endLuminosityBlock(), FakeBeamMonitor::endLuminosityBlock(), L1TRate_Offline::endLuminosityBlock(), L1TRate::endLuminosityBlock(), HLTScalers::endLuminosityBlock(), HLTScalersClient::endLuminosityBlock(), MEtoEDMConverter::endLuminosityBlockProduce(), dqmservices::DQMMonitoringService::evLumi(), OnlineBeamMonitor::globalBeginLuminosityBlock(), AlcaBeamMonitor::globalBeginLuminosityBlock(), L1Scalers::globalEndLuminosityBlock(), OnlineBeamMonitor::globalEndLuminosityBlock(), SiStripMonitorDigi::globalEndLuminosityBlock(), CTPPSCommonDQMSource::globalEndLuminosityBlock(), AlcaBeamMonitor::globalEndLuminosityBlock(), dqm::DQMFileSaverBase::globalEndLuminosityBlock(), edm::LuminosityBlockAuxiliary::luminosityBlock(), edm::operator<<(), edm::service::IgProfService::postBeginLumi(), edm::service::Tracer::postGlobalBeginLumi(), FastTimerService::postGlobalEndLumi(), edm::service::Tracer::postGlobalEndLumi(), evf::FastMonitoringService::postGlobalEndLumi(), edm::service::Tracer::postGlobalWriteLumi(), edm::service::Tracer::preGlobalBeginLumi(), evf::FastMonitoringService::preGlobalBeginLumi(), evf::FastMonitoringService::preGlobalEarlyTermination(), evf::EvFDaqDirector::preGlobalEndLumi(), edm::service::Tracer::preGlobalEndLumi(), evf::FastMonitoringService::preGlobalEndLumi(), edm::service::Tracer::preGlobalWriteLumi(), PYBIND11_MODULE(), dqmservices::DQMProtobufReader::readLuminosityBlock_(), DQMRootSource::readLuminosityBlock_(), edm::LuminosityBlockRange::startLumi(), edm::service::Tracer::Tracer(), and edm::RootOutputFile::writeLuminosityBlock().

◆ maxLuminosityBlockNumber()

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

◆ next()

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

Definition at line 47 of file LuminosityBlockID.h.

47  {
50  }
51  return LuminosityBlockID(run_ + 1, 1);
52  }

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

◆ nextRun()

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

Definition at line 53 of file LuminosityBlockID.h.

53 { return LuminosityBlockID(run_ + 1, 0); }

References LuminosityBlockID(), and run_.

◆ nextRunFirstLuminosityBlock()

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

Definition at line 54 of file LuminosityBlockID.h.

54 { return LuminosityBlockID(run_ + 1, 1); }

References LuminosityBlockID(), and run_.

◆ operator!=()

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

Definition at line 75 of file LuminosityBlockID.h.

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

◆ operator<()

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

Definition at line 77 of file LuminosityBlockID.h.

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

◆ operator<=()

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

Definition at line 78 of file LuminosityBlockID.h.

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

◆ operator==()

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

Definition at line 72 of file LuminosityBlockID.h.

72  {
73  return iRHS.run_ == run_ && iRHS.luminosityBlock_ == luminosityBlock_;
74  }

References luminosityBlock_, and run_.

◆ operator>()

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

Definition at line 79 of file LuminosityBlockID.h.

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

◆ operator>=()

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

Definition at line 80 of file LuminosityBlockID.h.

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

◆ previous()

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

Definition at line 62 of file LuminosityBlockID.h.

62  {
63  if (luminosityBlock_ > 1) {
65  }
66  if (run_ != 0) {
68  }
69  return LuminosityBlockID(0, 0);
70  }

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

◆ previousRunLastLuminosityBlock()

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

Definition at line 55 of file LuminosityBlockID.h.

55  {
56  if (run_ > 1) {
58  }
59  return LuminosityBlockID(0, 0);
60  }

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

◆ run()

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

Definition at line 41 of file LuminosityBlockID.h.

41 { return run_; }

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::Tracer::postGlobalBeginLumi(), edm::service::Tracer::postGlobalBeginRun(), FastTimerService::postGlobalEndLumi(), edm::service::Tracer::postGlobalEndLumi(), FastTimerService::postGlobalEndRun(), edm::service::Tracer::postGlobalEndRun(), edm::service::Tracer::postGlobalWriteLumi(), edm::service::Tracer::postGlobalWriteRun(), edm::service::Tracer::preGlobalBeginLumi(), edm::service::Tracer::preGlobalBeginRun(), edm::service::MessageLogger::preGlobalBeginRun(), cond::service::PoolDBOutputService::preGlobalBeginRun(), edm::service::Tracer::preGlobalEndLumi(), edm::service::Tracer::preGlobalEndRun(), edm::service::MessageLogger::preGlobalEndRun(), edm::service::Tracer::preGlobalWriteLumi(), edm::service::Tracer::preGlobalWriteRun(), PYBIND11_MODULE(), dqmservices::DQMProtobufReader::readLuminosityBlock_(), DQMRootSource::readLuminosityBlock_(), edm::LuminosityBlockAuxiliary::run(), edm::LuminosityBlockRange::startRun(), edm::service::Tracer::Tracer(), edm::RootOutputFile::writeLuminosityBlock(), NanoAODOutputModule::writeLuminosityBlock(), and DQMRootOutputModule::writeLuminosityBlock().

◆ value()

uint64_t edm::LuminosityBlockID::value ( ) const

Member Data Documentation

◆ luminosityBlock_

LuminosityBlockNumber_t edm::LuminosityBlockID::luminosityBlock_
private

Definition at line 106 of file LuminosityBlockID.h.

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

◆ run_

RunNumber_t edm::LuminosityBlockID::run_
private
edm::invalidLuminosityBlockNumber
const LuminosityBlockNumber_t invalidLuminosityBlockNumber
Definition: RunLumiEventNumber.h:17
edm::LuminosityBlockID::run_
RunNumber_t run_
Definition: LuminosityBlockID.h:105
edm::invalidRunNumber
const RunNumber_t invalidRunNumber
Definition: RunLumiEventNumber.h:18
edm::LuminosityBlockID::luminosityBlock_
LuminosityBlockNumber_t luminosityBlock_
Definition: LuminosityBlockID.h:106
mitigatedMETSequence_cff.U
U
Definition: mitigatedMETSequence_cff.py:36
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
edm::LuminosityBlockID::LuminosityBlockID
LuminosityBlockID()
Definition: LuminosityBlockID.h:33
edm::shift
static unsigned const int shift
Definition: LuminosityBlockID.cc:7
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:31
cond::uint64_t
unsigned long long uint64_t
Definition: Time.h:13
edm::LuminosityBlockID::maxLuminosityBlockNumber
static LuminosityBlockNumber_t maxLuminosityBlockNumber()
Definition: LuminosityBlockID.h:84