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

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

Member Function Documentation

◆ event()

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

Definition at line 40 of file EventID.h.

40 { return event_; }

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(), edm::RootPrimaryFileSequence::goToEvent(), edm::RootFile::goToEvent(), edm::InputSource::issueReports(), EgammaHLTNxNClusterProducer::makeNxNClusters(), edm::operator<<(), edm::service::IgProfService::postEvent(), edm::service::Tracer::postEvent(), edm::postIndexIntoFilePrintEventLists(), edm::service::IgProfService::preEvent(), edm::service::Tracer::preEvent(), StraightTrackAlignment::processEvent(), EcalBarrelClusterFastTimer::produce(), TrackTimeValueMapProducer::produce(), gen::Pythia6Gun::produce(), RunManagerMTWorker::produce(), reco::PFMETProducerMVA::produce(), EgammaHLTNxNClusterProducer::produce(), EcalSimpleProducer::produce(), LaserAlignment::produce(), PYBIND11_MODULE(), edm::PoolSource::readEvent_(), CalorimetryManager::reconstruct(), edm::IDGeneratorSourceBase< PuttableSourceBase >::retreatToPrevious(), reco::tau::RecoTauVertexAssociator::setEvent(), CTPPSOpticalFunctionsESSource::setIntervalFor(), CTPPSLHCInfoRandomXangleESSource::setIntervalFor(), PPSAlignmentConfigESSource::setIntervalFor(), CTPPSBeamParametersESSource::setIntervalFor(), PPSPixelTopologyESSource::setIntervalFor(), CTPPSCompositeESSource::setIntervalFor(), CTPPSPixelDAQMappingESSourceXML::setIntervalFor(), TotemDAQMappingESSourceXML::setIntervalFor(), edm::EventPrincipal::setRunAndLumiNumber(), edm::EventRange::startEvent(), edm::service::Tracer::Tracer(), and LaserSorter::writeEventHeader().

◆ firstValidEvent()

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

Definition at line 98 of file EventID.h.

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

References EventID().

◆ luminosityBlock()

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

Definition at line 39 of file EventID.h.

39 { return luminosityBlock_; }

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(), fwlite::IOVSyncValue::luminosityBlockNumber(), edm::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::IDGeneratorSourceBase< PuttableSourceBase >::retreatToPrevious(), CTPPSLHCInfoESSource::setIntervalFor(), CTPPSOpticalFunctionsESSource::setIntervalFor(), CTPPSLHCInfoRandomXangleESSource::setIntervalFor(), CTPPSRPAlignmentCorrectionsDataESSourceXML::setIntervalFor(), edm::eventsetup::DependentRecordIntervalFinder::setIntervalFor(), CTPPSCompositeESSource::setIntervalFor(), edm::IDGeneratorSourceBase< PuttableSourceBase >::skip(), edm::EventRange::startLumi(), and edm::service::Tracer::Tracer().

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

43  {
44  if (event_ != maxEventNumber()) {
45  return EventID(run_, lumi, event_ + 1);
46  }
47  return EventID(run_ + 1, lumi, 1);
48  }

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

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

◆ nextRun()

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

Definition at line 49 of file EventID.h.

49 { return EventID(run_ + 1, lumi, 0); }

References EventID(), and run_.

◆ nextRunFirstEvent()

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

Definition at line 50 of file EventID.h.

50 { return EventID(run_ + 1, lumi, 1); }

References EventID(), and run_.

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

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

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  }

References event_, luminosityBlock_, and run_.

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

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  }

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

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

◆ previousRunLastEvent()

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

Definition at line 51 of file EventID.h.

51  {
52  if (run_ > 1) {
53  return EventID(run_ - 1, lumi, maxEventNumber());
54  }
55  return EventID();
56  }

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

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

◆ run()

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

Definition at line 38 of file EventID.h.

38 { return run_; }

References run_.

Referenced by edm::IDGeneratorSourceBase< PuttableSourceBase >::advanceToNext(), SiStripNoisesBuilder::analyze(), SiStripApvGainBuilder::analyze(), SiStripPedestalsBuilder::analyze(), SiStripSummaryBuilder::analyze(), SiStripThresholdBuilder::analyze(), JetValidation::analyze(), SiStripDetVOffFakeBuilder::analyze(), EcalDQMonitorTask::analyze(), sistrip::SpyExtractRunModule::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(), 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(), RunManagerMTWorker::produce(), reco::PFMETProducerMVA::produce(), EgammaHLTNxNClusterProducer::produce(), LaserAlignment::produce(), DIPLumiProducer::produceDetail(), LumiCorrectionSource::produceLumiCorrectionParam(), DIPLumiProducer::produceSummary(), PYBIND11_MODULE(), DTConfigDBProducer::readDTCCBConfig(), 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(), CTPPSRPAlignmentCorrectionsDataESSourceXML::setIntervalFor(), edm::eventsetup::DependentRecordIntervalFinder::setIntervalFor(), PPSAlignmentConfigESSource::setIntervalFor(), CTPPSBeamParametersESSource::setIntervalFor(), PPSPixelTopologyESSource::setIntervalFor(), CondDBESSource::setIntervalFor(), FWLiteESSource::setIntervalFor(), CTPPSCompositeESSource::setIntervalFor(), CTPPSPixelDAQMappingESSourceXML::setIntervalFor(), TotemDAQMappingESSourceXML::setIntervalFor(), edm::IDGeneratorSourceBase< PuttableSourceBase >::skip(), edm::EventRange::startRun(), and edm::service::Tracer::Tracer().

◆ setLuminosityBlockNumber()

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

Definition at line 101 of file EventID.h.

101 { luminosityBlock_ = lb; }

References luminosityBlock_.

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

edm::invalidLuminosityBlockNumber
const LuminosityBlockNumber_t invalidLuminosityBlockNumber
Definition: RunLumiEventNumber.h:17
edm::EventID::event_
EventNumber_t event_
Definition: EventID.h:111
edm::invalidRunNumber
const RunNumber_t invalidRunNumber
Definition: RunLumiEventNumber.h:18
edm::invalidEventNumber
const EventNumber_t invalidEventNumber
Definition: RunLumiEventNumber.h:16
edm::EventID::maxEventNumber
static EventNumber_t maxEventNumber()
Definition: EventID.h:96
mitigatedMETSequence_cff.U
U
Definition: mitigatedMETSequence_cff.py:36
iEvent
int iEvent
Definition: GenABIO.cc:224
edm::EventID::EventID
EventID()
Definition: EventID.h:33
edm::EventID::run_
RunNumber_t run_
Definition: EventID.h:109
edm::EventID::luminosityBlock_
LuminosityBlockNumber_t luminosityBlock_
Definition: EventID.h:110
lumi
Definition: LumiSectionData.h:20