CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 (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.

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 ( 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
edm::LuminosityBlockID::LuminosityBlockID ( RunNumber_t  iRun,
LuminosityBlockNumber_t  iLuminosityBlock 
)
inline

Definition at line 35 of file LuminosityBlockID.h.

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 91 of file LuminosityBlockID.h.

References luminosityBlock_, and run_.

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  }
LuminosityBlockNumber_t luminosityBlock_
static LuminosityBlockID edm::LuminosityBlockID::firstValidLuminosityBlock ( )
inlinestatic

Definition at line 86 of file LuminosityBlockID.h.

References LuminosityBlockID().

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

86 { return LuminosityBlockID(1, 1); }
LuminosityBlockNumber_t edm::LuminosityBlockID::luminosityBlock ( ) const
inline

Definition at line 42 of file LuminosityBlockID.h.

References luminosityBlock_.

Referenced by WriteCTPPSBeamParameters::analyze(), FRDOutputModule::beginLuminosityBlock(), DTEfficiencyTask::beginLuminosityBlock(), RawEventOutputModuleForBU< Consumer >::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(), edm::decode(), DTDCSByLumiTask::dqmBeginLuminosityBlock(), DTSegmentAnalysisTest::dqmBeginLuminosityBlock(), L1TTestsSummary::dqmEndLuminosityBlock(), SiPixelEDAClient::dqmEndLuminosityBlock(), BeamSpotProblemMonitor::dqmEndLuminosityBlock(), DTDCSByLumiSummary::dqmEndLuminosityBlock(), L1TOccupancyClient::dqmEndLuminosityBlock(), DTBlockedROChannelsTest::dqmEndLuminosityBlock(), DTDataIntegrityTest::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(), L1TdeStage2CaloLayer1::endLuminosityBlock(), LumiCalculator::endLuminosityBlock(), L1ScalersClient::endLuminosityBlock(), BeamMonitorBx::endLuminosityBlock(), RawEventOutputModuleForBU< Consumer >::endLuminosityBlock(), FakeBeamMonitor::endLuminosityBlock(), BeamMonitor::endLuminosityBlock(), L1TRate_Offline::endLuminosityBlock(), L1TRate::endLuminosityBlock(), HLTScalers::endLuminosityBlock(), HLTScalersClient::endLuminosityBlock(), MEtoEDMConverter::endLuminosityBlockProduce(), dqmservices::DQMMonitoringService::evLumi(), HLTPrescaler::filter(), gen::BaseHadronizer::generateLHE(), OnlineBeamMonitor::globalBeginLuminosityBlock(), AlcaBeamMonitor::globalBeginLuminosityBlock(), SiPixelDigiSource::globalBeginLuminosityBlock(), RunLumiEventChecker::globalBeginLuminosityBlock(), L1Scalers::globalEndLuminosityBlock(), CTPPSCommonDQMSource::globalEndLuminosityBlock(), OnlineBeamMonitor::globalEndLuminosityBlock(), SiStripMonitorDigi::globalEndLuminosityBlock(), SiPixelDigiSource::globalEndLuminosityBlock(), AlcaBeamMonitor::globalEndLuminosityBlock(), DTDataIntegrityTask::globalEndLuminosityBlock(), dqm::DQMFileSaverBase::globalEndLuminosityBlock(), RunLumiEventChecker::globalEndLuminosityBlock(), cond::EmptyIOVSource::initialize(), cond::time::limitedIOVSyncValue(), edm::LuminosityBlockAuxiliary::luminosityBlock(), edm::operator<<(), edm::service::IgProfService::postBeginLumi(), edm::service::IgProfService::postEndLumi(), 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(), Herwig7Hadronizer::randomizeIndex(), gen::BaseHadronizer::randomizeIndex(), dqmservices::DQMProtobufReader::readLuminosityBlock_(), DQMRootSource::readLuminosityBlock_(), edm::RootFile::readLuminosityBlockAuxiliary_(), cond::EmptyIOVSource::setRunAndEventInfo(), edm::LuminosityBlockRange::startLumi(), 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_.

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

Definition at line 54 of file LuminosityBlockID.h.

References LuminosityBlockID(), and run_.

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

Definition at line 75 of file LuminosityBlockID.h.

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

Definition at line 77 of file LuminosityBlockID.h.

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

Definition at line 78 of file LuminosityBlockID.h.

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

Definition at line 72 of file LuminosityBlockID.h.

References luminosityBlock_, and run_.

72  {
73  return iRHS.run_ == run_ && iRHS.luminosityBlock_ == luminosityBlock_;
74  }
LuminosityBlockNumber_t luminosityBlock_
bool edm::LuminosityBlockID::operator> ( LuminosityBlockID const &  iRHS) const
inline

Definition at line 79 of file LuminosityBlockID.h.

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

Definition at line 80 of file LuminosityBlockID.h.

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

Definition at line 62 of file LuminosityBlockID.h.

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

Referenced by BeautifulSoup.PageElement::_invert().

62  {
63  if (luminosityBlock_ > 1) {
65  }
66  if (run_ != 0) {
68  }
69  return LuminosityBlockID(0, 0);
70  }
LuminosityBlockNumber_t luminosityBlock_
static LuminosityBlockNumber_t maxLuminosityBlockNumber()
LuminosityBlockID edm::LuminosityBlockID::previousRunLastLuminosityBlock ( ) const
inline

Definition at line 55 of file LuminosityBlockID.h.

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

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

Definition at line 41 of file LuminosityBlockID.h.

References run_.

Referenced by dqm::implementation::IBooker::bookME(), Types.EventID::cppID(), Types.LuminosityBlockID::cppID(), edm::decode(), dqm::implementation::DQMStore::DQMStore(), edm::encode(), edm::LuminosityBlockRange::endRun(), dqmservices::DQMMonitoringService::evLumi(), edm::exceptionContext(), gen::BaseHadronizer::generateLHE(), RunLumiEventChecker::globalBeginLuminosityBlock(), dqm::DQMFileSaverBase::globalEndLuminosityBlock(), RunLumiEventChecker::globalEndLuminosityBlock(), cond::EmptyIOVSource::initialize(), cond::time::limitedIOVSyncValue(), edm::operator<<(), edm::service::IgProfService::postBeginRun(), edm::service::IgProfService::postEndRun(), 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(), gen::BaseHadronizer::randomizeIndex(), dqmservices::DQMProtobufReader::readLuminosityBlock_(), DQMRootSource::readLuminosityBlock_(), edm::RootFile::readLuminosityBlockAuxiliary_(), edm::LuminosityBlockAuxiliary::run(), cond::EmptyIOVSource::setRunAndEventInfo(), edm::LuminosityBlockRange::startRun(), cond::time::toIOVSyncValue(), edm::service::Tracer::Tracer(), edm::RootOutputFile::writeLuminosityBlock(), NanoAODOutputModule::writeLuminosityBlock(), and DQMRootOutputModule::writeLuminosityBlock().

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

Definition at line 13 of file LuminosityBlockID.cc.

References gpuClustering::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(), and DQMRootOutputModule::writeLuminosityBlock().

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

Member Data Documentation

LuminosityBlockNumber_t edm::LuminosityBlockID::luminosityBlock_
private

Definition at line 106 of file LuminosityBlockID.h.

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

RunNumber_t edm::LuminosityBlockID::run_
private