CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
edm::EventID Class Reference

#include <EventID.h>

Public Member Functions

EventNumber_t event () const
 
 EventID ()
 
 EventID (RunNumber_t iRun, LuminosityBlockNumber_t iLumi, EventNumber_t iEvent)
 
LuminosityBlockNumber_t luminosityBlock () const
 
EventID next (LuminosityBlockNumber_t const &lumi) const
 
EventID nextRun (LuminosityBlockNumber_t const &lumi) const
 
EventID nextRunFirstEvent (LuminosityBlockNumber_t const &lumi) const
 
bool operator!= (EventID const &iRHS) const
 
bool operator< (EventID const &iRHS) const
 
bool operator<= (EventID const &iRHS) const
 
bool operator== (EventID const &iRHS) const
 
bool operator> (EventID const &iRHS) const
 
bool operator>= (EventID const &iRHS) const
 
EventID previous (LuminosityBlockNumber_t const &lumi) const
 
EventID previousRunLastEvent (LuminosityBlockNumber_t const &lumi) const
 
RunNumber_t run () const
 
void setLuminosityBlockNumber (LuminosityBlockNumber_t const &lb)
 

Static Public Member Functions

static EventID firstValidEvent ()
 
static EventNumber_t maxEventNumber ()
 
static LuminosityBlockNumber_t maxLuminosityBlockNumber ()
 
static RunNumber_t maxRunNumber ()
 

Private Attributes

EventNumber_t event_
 
LuminosityBlockNumber_t luminosityBlock_
 
RunNumber_t run_
 

Detailed Description

Description: Holds run, lumi, and event numbers.

Usage: <usage>

Definition at line 31 of file EventID.h.

Constructor & Destructor Documentation

◆ EventID() [1/2]

edm::EventID::EventID ( )
inline

Definition at line 33 of file EventID.h.

Referenced by firstValidEvent(), next(), nextRun(), nextRunFirstEvent(), previous(), and previousRunLastEvent().

EventNumber_t event_
Definition: EventID.h:111
RunNumber_t const invalidRunNumber
LuminosityBlockNumber_t luminosityBlock_
Definition: EventID.h:110
EventNumber_t const invalidEventNumber
RunNumber_t run_
Definition: EventID.h:109
LuminosityBlockNumber_t const invalidLuminosityBlockNumber

◆ EventID() [2/2]

edm::EventID::EventID ( RunNumber_t  iRun,
LuminosityBlockNumber_t  iLumi,
EventNumber_t  iEvent 
)
inline

Definition at line 34 of file EventID.h.

35  : run_(iRun), luminosityBlock_(iLumi), event_(iEvent) {}
EventNumber_t event_
Definition: EventID.h:111
LuminosityBlockNumber_t luminosityBlock_
Definition: EventID.h:110
int iEvent
Definition: GenABIO.cc:224
RunNumber_t run_
Definition: EventID.h:109

Member Function Documentation

◆ event()

EventNumber_t edm::EventID::event ( ) const
inline

Definition at line 40 of file EventID.h.

References event_.

Referenced by sistrip::SpyEventMatcher::addNextEventToMap(), edm::IDGeneratorSourceBase< PuttableSourceBase >::advanceToNext(), JetValidation::analyze(), EcalDQMonitorTask::analyze(), sistrip::SpyExtractRunModule::analyze(), BeamHaloAnalyzer::analyze(), edm::contains(), Types.EventID::cppID(), edm::encode(), edm::EventRange::endEvent(), edm::IDGeneratorSourceBase< PuttableSourceBase >::event(), edm::EventAuxiliary::event(), edm::CompactEventAuxiliaryVector::CompactEventAuxiliary::event(), edm::RootFile::fillEventHistory(), DaqFakeReader::fillFEDs(), DaqFakeReader::fillTCDSFED(), RunManagerMTWorker::generateEvent(), AlCaHcalIsotrkProducer::getProducts(), edm::RootPrimaryFileSequence::goToEvent(), edm::RootFile::goToEvent(), edm::InputSource::issueReports(), EgammaHLTNxNClusterProducer::makeNxNClusters(), edm::operator<<(), edm::service::IgProfService::postEvent(), edm::service::JeProfService::postEvent(), edm::service::Tracer::postEvent(), edm::postIndexIntoFilePrintEventLists(), edm::service::IgProfService::postModuleEvent(), edm::service::JeProfService::postModuleEvent(), edm::service::IgProfService::preEvent(), edm::service::JeProfService::preEvent(), edm::service::Tracer::preEvent(), edm::service::IgProfService::preModuleEvent(), edm::service::JeProfService::preModuleEvent(), StraightTrackAlignment::processEvent(), EcalBarrelClusterFastTimer::produce(), TrackTimeValueMapProducer::produce(), reco::PFMETProducerMVA::produce(), gen::Pythia6Gun::produce(), EgammaHLTNxNClusterProducer::produce(), RunManagerMTWorker::produce(), EcalSimpleProducer::produce(), LaserAlignment::produce(), PYBIND11_MODULE(), edm::PoolSource::readEvent_(), CalorimetryManager::reconstruct(), edm::IDGeneratorSourceBase< PuttableSourceBase >::retreatToPrevious(), reco::tau::RecoTauVertexAssociator::setEvent(), CTPPSOpticalFunctionsESSource::setIntervalFor(), CTPPSLHCInfoRandomXangleESSource::setIntervalFor(), PPSAssociationCutsESSource::setIntervalFor(), PPSAlignmentConfigurationESSource::setIntervalFor(), PPSPixelTopologyESSource::setIntervalFor(), CTPPSBeamParametersESSource::setIntervalFor(), CTPPSCompositeESSource::setIntervalFor(), CTPPSPixelDAQMappingESSourceXML::setIntervalFor(), TotemDAQMappingESSourceXML::setIntervalFor(), edm::EventPrincipal::setRunAndLumiNumber(), edm::EventRange::startEvent(), edm::service::Tracer::Tracer(), and LaserSorter::writeEventHeader().

40 { return event_; }
EventNumber_t event_
Definition: EventID.h:111

◆ firstValidEvent()

static EventID edm::EventID::firstValidEvent ( )
inlinestatic

Definition at line 98 of file EventID.h.

References EventID().

98 { return EventID(1, 1, 1); }

◆ luminosityBlock()

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

Definition at line 39 of file EventID.h.

References luminosityBlock_.

Referenced by edm::IDGeneratorSourceBase< PuttableSourceBase >::advanceToNext(), EcalDQMonitorTask::analyze(), Types.EventID::cppID(), Types.LuminosityBlockID::cppID(), edm::encode(), edm::EventRange::endLumi(), edm::IDGeneratorSourceBase< PuttableSourceBase >::getNextItemType(), edm::RootPrimaryFileSequence::goToEvent(), edm::RootFile::goToEvent(), edm::InputSource::issueReports(), edm::IDGeneratorSourceBase< PuttableSourceBase >::luminosityBlock(), edm::EventAuxiliary::luminosityBlock(), edm::CompactEventAuxiliaryVector::CompactEventAuxiliary::luminosityBlock(), edm::EventPrincipal::luminosityBlock(), edm::IOVSyncValue::luminosityBlockNumber(), fwlite::IOVSyncValue::luminosityBlockNumber(), edm::operator<<(), FastTimerService::postEvent(), edm::service::Tracer::postEvent(), edm::service::Tracer::postStreamBeginLumi(), edm::service::Tracer::postStreamEndLumi(), edm::service::Tracer::preEvent(), edm::service::Tracer::preStreamBeginLumi(), evf::FastMonitoringService::preStreamBeginLumi(), evf::FastMonitoringService::preStreamEarlyTermination(), edm::service::Tracer::preStreamEndLumi(), evf::FastMonitoringService::preStreamEndLumi(), EcalBarrelClusterFastTimer::produce(), TrackTimeValueMapProducer::produce(), PYBIND11_MODULE(), edm::ThrowingSource::readLuminosityBlockAuxiliary_(), LH5Source::readLuminosityBlockAuxiliary_(), LHESource::readLuminosityBlockAuxiliary_(), edm::IDGeneratorSourceBase< PuttableSourceBase >::retreatToPrevious(), CTPPSLHCInfoESSource::setIntervalFor(), CTPPSOpticalFunctionsESSource::setIntervalFor(), CTPPSLHCInfoRandomXangleESSource::setIntervalFor(), PPSAssociationCutsESSource::setIntervalFor(), CTPPSRPAlignmentCorrectionsDataESSourceXML::setIntervalFor(), edm::eventsetup::DependentRecordIntervalFinder::setIntervalFor(), CTPPSCompositeESSource::setIntervalFor(), edm::IDGeneratorSourceBase< PuttableSourceBase >::skip(), edm::EventRange::startLumi(), and edm::service::Tracer::Tracer().

39 { return luminosityBlock_; }
LuminosityBlockNumber_t luminosityBlock_
Definition: EventID.h:110

◆ maxEventNumber()

static EventNumber_t edm::EventID::maxEventNumber ( )
inlinestatic

◆ maxLuminosityBlockNumber()

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

◆ maxRunNumber()

static RunNumber_t edm::EventID::maxRunNumber ( )
inlinestatic

◆ next()

EventID edm::EventID::next ( LuminosityBlockNumber_t const &  lumi) const
inline

Definition at line 43 of file EventID.h.

References event_, EventID(), maxEventNumber(), and run_.

Referenced by edm::IDGeneratorSourceBase< PuttableSourceBase >::advanceToNext().

43  {
44  if (event_ != maxEventNumber()) {
45  return EventID(run_, lumi, event_ + 1);
46  }
47  return EventID(run_ + 1, lumi, 1);
48  }
EventNumber_t event_
Definition: EventID.h:111
RunNumber_t run_
Definition: EventID.h:109
static EventNumber_t maxEventNumber()
Definition: EventID.h:96

◆ nextRun()

EventID edm::EventID::nextRun ( LuminosityBlockNumber_t const &  lumi) const
inline

Definition at line 49 of file EventID.h.

References EventID(), and run_.

Referenced by edmtest::DoodadESSource::setIntervalFor().

49 { return EventID(run_ + 1, lumi, 0); }
RunNumber_t run_
Definition: EventID.h:109

◆ nextRunFirstEvent()

EventID edm::EventID::nextRunFirstEvent ( LuminosityBlockNumber_t const &  lumi) const
inline

Definition at line 50 of file EventID.h.

References EventID(), and run_.

Referenced by edm::IDGeneratorSourceBase< PuttableSourceBase >::advanceToNext().

50 { return EventID(run_ + 1, lumi, 1); }
RunNumber_t run_
Definition: EventID.h:109

◆ operator!=()

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

Definition at line 84 of file EventID.h.

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

◆ operator<()

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

Definition at line 68 of file EventID.h.

References event_, luminosityBlock_, and run_.

68  {
69  if (run_ < iRHS.run_)
70  return true;
71  if (run_ > iRHS.run_)
72  return false;
73  if (luminosityBlock_ < iRHS.luminosityBlock_)
74  return true;
75  if (luminosityBlock_ > iRHS.luminosityBlock_)
76  return false;
77  return (event_ < iRHS.event_);
78  }
EventNumber_t event_
Definition: EventID.h:111
LuminosityBlockNumber_t luminosityBlock_
Definition: EventID.h:110
RunNumber_t run_
Definition: EventID.h:109

◆ operator<=()

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

Definition at line 86 of file EventID.h.

86 { return (*this < iRHS || *this == iRHS); }

◆ operator==()

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

Definition at line 82 of file EventID.h.

82 { return !(*this < iRHS || iRHS < *this); }

◆ operator>()

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

Definition at line 88 of file EventID.h.

88 { return !(*this <= iRHS); }

◆ operator>=()

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

Definition at line 80 of file EventID.h.

80 { return !(*this < iRHS); }

◆ previous()

EventID edm::EventID::previous ( LuminosityBlockNumber_t const &  lumi) const
inline

Definition at line 58 of file EventID.h.

References event_, EventID(), maxEventNumber(), and run_.

Referenced by edm::IDGeneratorSourceBase< PuttableSourceBase >::retreatToPrevious().

58  {
59  if (event_ > 1) {
60  return EventID(run_, lumi, event_ - 1);
61  }
62  if (run_ != 0) {
63  return EventID(run_ - 1, lumi, maxEventNumber());
64  }
65  return EventID();
66  }
EventNumber_t event_
Definition: EventID.h:111
RunNumber_t run_
Definition: EventID.h:109
static EventNumber_t maxEventNumber()
Definition: EventID.h:96

◆ previousRunLastEvent()

EventID edm::EventID::previousRunLastEvent ( LuminosityBlockNumber_t const &  lumi) const
inline

Definition at line 51 of file EventID.h.

References EventID(), maxEventNumber(), and run_.

Referenced by edm::IDGeneratorSourceBase< PuttableSourceBase >::retreatToPrevious(), and edmtest::DoodadESSource::setIntervalFor().

51  {
52  if (run_ > 1) {
53  return EventID(run_ - 1, lumi, maxEventNumber());
54  }
55  return EventID();
56  }
RunNumber_t run_
Definition: EventID.h:109
static EventNumber_t maxEventNumber()
Definition: EventID.h:96

◆ run()

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

Definition at line 38 of file EventID.h.

References run_.

Referenced by edm::IDGeneratorSourceBase< PuttableSourceBase >::advanceToNext(), JetValidation::analyze(), SiStripPedestalsBuilder::analyze(), SiStripThresholdBuilder::analyze(), SiStripNoisesBuilder::analyze(), SiStripApvGainBuilder::analyze(), SiStripSummaryBuilder::analyze(), SiStripDetVOffFakeBuilder::analyze(), EcalDQMonitorTask::analyze(), sistrip::SpyExtractRunModule::analyze(), PixelPopConCalibChecker::analyze(), sistrip::SpyIdentifyRunsModule::analyze(), EcalTestDevDB::analyze(), MillePedeAlignmentAlgorithm::beginRun(), edm::contains(), Types.EventID::cppID(), Types.LuminosityBlockID::cppID(), fwlite::IOVSyncValue::doOp(), edm::IOVSyncValue::doOp(), edm::encode(), edm::EventRange::endRun(), edm::RootFile::fillEventHistory(), edm::IDGeneratorSourceBase< PuttableSourceBase >::getNextItemType(), AlCaHcalIsotrkProducer::getProducts(), edm::RootPrimaryFileSequence::goToEvent(), edm::RootFile::goToEvent(), HIPAlignmentAlgorithm::initialize(), edm::InputSource::issueReports(), EgammaHLTNxNClusterProducer::makeNxNClusters(), edm::operator<<(), edm::service::Tracer::postEvent(), edm::service::Tracer::postStreamBeginLumi(), edm::service::Tracer::postStreamBeginRun(), edm::service::Tracer::postStreamEndLumi(), edm::service::Tracer::postStreamEndRun(), edm::service::Tracer::preEvent(), edm::service::CheckTransitions::preGlobalBeginLumi(), edm::service::CheckTransitions::preGlobalBeginRun(), edm::service::CheckTransitions::preGlobalEndLumi(), edm::service::CheckTransitions::preGlobalEndRun(), edm::service::Tracer::preStreamBeginLumi(), edm::service::MessageLogger::preStreamBeginRun(), edm::service::Tracer::preStreamBeginRun(), edm::service::Tracer::preStreamEndLumi(), edm::service::MessageLogger::preStreamEndRun(), edm::service::Tracer::preStreamEndRun(), StraightTrackAlignment::processEvent(), EcalBarrelClusterFastTimer::produce(), RunInfoTestESProducer::produce(), TrackTimeValueMapProducer::produce(), reco::PFMETProducerMVA::produce(), EgammaHLTNxNClusterProducer::produce(), RunManagerMTWorker::produce(), LaserAlignment::produce(), DIPLumiProducer::produceDetail(), LumiCorrectionSource::produceLumiCorrectionParam(), DIPLumiProducer::produceSummary(), PYBIND11_MODULE(), DTConfigDBProducer::readDTCCBConfig(), edm::ThrowingSource::readLuminosityBlockAuxiliary_(), LH5Source::readLuminosityBlockAuxiliary_(), LHESource::readLuminosityBlockAuxiliary_(), edm::ThrowingSource::readRunAuxiliary_(), LHESource::readRunAuxiliary_(), LH5Source::readRunAuxiliary_(), edm::IDGeneratorSourceBase< PuttableSourceBase >::retreatToPrevious(), edm::IDGeneratorSourceBase< PuttableSourceBase >::run(), edm::EventForOutput::run(), edm::EventAuxiliary::run(), edm::CompactEventAuxiliaryVector::CompactEventAuxiliary::run(), edm::Event::run(), edm::EventPrincipal::run(), CTPPSLHCInfoESSource::setIntervalFor(), CTPPSOpticalFunctionsESSource::setIntervalFor(), CTPPSLHCInfoRandomXangleESSource::setIntervalFor(), PPSAssociationCutsESSource::setIntervalFor(), edmtest::DoodadESSource::setIntervalFor(), PPSAlignmentConfigurationESSource::setIntervalFor(), CTPPSRPAlignmentCorrectionsDataESSourceXML::setIntervalFor(), edm::eventsetup::DependentRecordIntervalFinder::setIntervalFor(), PPSPixelTopologyESSource::setIntervalFor(), CTPPSBeamParametersESSource::setIntervalFor(), CondDBESSource::setIntervalFor(), FWLiteESSource::setIntervalFor(), CTPPSCompositeESSource::setIntervalFor(), CTPPSPixelDAQMappingESSourceXML::setIntervalFor(), TotemDAQMappingESSourceXML::setIntervalFor(), edm::IDGeneratorSourceBase< PuttableSourceBase >::skip(), edm::EventRange::startRun(), and edm::service::Tracer::Tracer().

38 { return run_; }
RunNumber_t run_
Definition: EventID.h:109

◆ setLuminosityBlockNumber()

void edm::EventID::setLuminosityBlockNumber ( LuminosityBlockNumber_t const &  lb)
inline

Definition at line 101 of file EventID.h.

References luminosityBlock_.

101 { luminosityBlock_ = lb; }
LuminosityBlockNumber_t luminosityBlock_
Definition: EventID.h:110

Member Data Documentation

◆ event_

EventNumber_t edm::EventID::event_
private

Definition at line 111 of file EventID.h.

Referenced by event(), next(), operator<(), and previous().

◆ luminosityBlock_

LuminosityBlockNumber_t edm::EventID::luminosityBlock_
private

Definition at line 110 of file EventID.h.

Referenced by luminosityBlock(), operator<(), and setLuminosityBlockNumber().

◆ run_

RunNumber_t edm::EventID::run_
private

Definition at line 109 of file EventID.h.

Referenced by next(), nextRun(), nextRunFirstEvent(), operator<(), previous(), previousRunLastEvent(), and run().