CMS 3D CMS Logo

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

edm::EventID::EventID ( )
inline

Definition at line 34 of file EventID.h.

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

EventNumber_t event_
Definition: EventID.h:131
RunNumber_t const invalidRunNumber
LuminosityBlockNumber_t luminosityBlock_
Definition: EventID.h:130
EventNumber_t const invalidEventNumber
RunNumber_t run_
Definition: EventID.h:129
LuminosityBlockNumber_t const invalidLuminosityBlockNumber
edm::EventID::EventID ( RunNumber_t  iRun,
LuminosityBlockNumber_t  iLumi,
EventNumber_t  iEvent 
)
inline

Definition at line 35 of file EventID.h.

35  :
36  run_(iRun), luminosityBlock_(iLumi), event_(iEvent) {}
EventNumber_t event_
Definition: EventID.h:131
LuminosityBlockNumber_t luminosityBlock_
Definition: EventID.h:130
int iEvent
Definition: GenABIO.cc:230
RunNumber_t run_
Definition: EventID.h:129

Member Function Documentation

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

Definition at line 41 of file EventID.h.

References event_.

Referenced by evf::EvFRecordInserter::analyze(), PerformanceAnalyzer::analyze(), edmtest::FillInfoESAnalyzer::analyze(), EventHeader::analyze(), ElectronGeneralAnalyzer::analyze(), PUDumper::analyze(), edmtest::RunInfoESAnalyzer::analyze(), edmtest::RunSummaryESAnalyzer::analyze(), edmtest::L1TriggerScalerESAnalyzer::analyze(), HLTInspect::analyze(), DTConfigTester::analyze(), CSCRecoBadChannelsAnalyzer::analyze(), sistrip::SpyExtractRunModule::analyze(), DQMEventInfo::analyze(), EventIDChecker::analyze(), SiStripMonitorRawData::analyze(), FFTJetImageRecorder::analyze(), IgProfModule::analyze(), edm::contains(), edm::EventRange::endEvent(), edm::ProducerSourceBase::event(), edm::EventAuxiliary::event(), PFDQMEventSelector::filter(), TrackingFailureFilter::filter(), EcalTangentFilter::filter(), PhotonIsoProducer::filter(), MultiEventFilter::filter(), SiStripCommissioningBasicPrescaler::filter(), BeamSplash::filter(), EcalLaserCorrFilter::filter(), FilterOutScraping::filter(), PhysDecl::filter(), HLTEventNumberFilter::filter(), MCZll::filter(), EcalSkim::filter(), HcalLaserHFFilter2012::filter(), SiStripShotFilter::filter(), edm::eventsetup::no_record_exception_message_builder(), edm::operator<<(), ShallowEventDataProducer::produce(), HcalPatternSource::produce(), edm::FlatRandomPtThetaGunProducer::produce(), edm::FlatRandomEThetaGunProducer::produce(), edm::FileRandomKEThetaGunProducer::produce(), DTDigiToRawModule::produce(), CSCDigiProducer::produce(), edm::FlatRandomOneOverPtGunProducer::produce(), edm::FlatRandomEGunProducer::produce(), edm::FlatRandomPtGunProducer::produce(), edm::ExpoRandomPtGunProducer::produce(), edm::ExpoRandomPGunProducer::produce(), ESRecHitsMerger::produce(), ESDigiToRaw::produce(), PFV0Producer::produce(), NtpProducer< C >::produce(), CastorDigiToRaw::produce(), PFDisplacedVertexProducer::produce(), HcalDigiToRaw::produce(), RPCPackingModule::produce(), PFDisplacedVertexCandidateProducer::produce(), LaserAlignmentProducer::produce(), CSCRecHitDProducer::produce(), SiPixelDigiToRaw::produce(), PFMET::produce(), FakeTBEventHeaderProducer::produce(), edm::BeamHaloProducer::produce(), EventWithHistoryProducer::produce(), EventWithHistoryProducerFromL1ABC::produce(), L1Analysis::L1AnalysisEvent::Set(), and edm::EventRange::startEvent().

41 { return event_; }
EventNumber_t event_
Definition: EventID.h:131
static EventID edm::EventID::firstValidEvent ( )
inlinestatic

Definition at line 115 of file EventID.h.

References EventID().

115  {
116  return EventID(1, 1, 1);
117  }
LuminosityBlockNumber_t edm::EventID::luminosityBlock ( ) const
inline
static EventNumber_t edm::EventID::maxEventNumber ( )
inlinestatic
static LuminosityBlockNumber_t edm::EventID::maxLuminosityBlockNumber ( )
inlinestatic

Definition at line 107 of file EventID.h.

107  {
108  return 0xFFFFFFFFU;
109  }
static RunNumber_t edm::EventID::maxRunNumber ( )
inlinestatic

Definition at line 103 of file EventID.h.

103  {
104  return 0xFFFFFFFFU;
105  }
EventID edm::EventID::next ( LuminosityBlockNumber_t const &  lumi) const
inline

Definition at line 44 of file EventID.h.

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

44  {
45  if(event_ != maxEventNumber()) {
46  return EventID(run_, lumi, event_ + 1);
47  }
48  return EventID(run_ + 1, lumi, 1);
49  }
EventNumber_t event_
Definition: EventID.h:131
tuple lumi
Definition: fjr2json.py:35
RunNumber_t run_
Definition: EventID.h:129
static EventNumber_t maxEventNumber()
Definition: EventID.h:111
EventID edm::EventID::nextRun ( LuminosityBlockNumber_t const &  lumi) const
inline

Definition at line 50 of file EventID.h.

References EventID(), and run_.

50  {
51  return EventID(run_ + 1, lumi, 0);
52  }
tuple lumi
Definition: fjr2json.py:35
RunNumber_t run_
Definition: EventID.h:129
EventID edm::EventID::nextRunFirstEvent ( LuminosityBlockNumber_t const &  lumi) const
inline

Definition at line 53 of file EventID.h.

References EventID(), and run_.

53  {
54  return EventID(run_ + 1, lumi, 1);
55  }
tuple lumi
Definition: fjr2json.py:35
RunNumber_t run_
Definition: EventID.h:129
bool edm::EventID::operator!= ( EventID const &  iRHS) const
inline

Definition at line 89 of file EventID.h.

89  {
90  return !(*this == iRHS);
91  }
bool edm::EventID::operator< ( EventID const &  iRHS) const
inline

Definition at line 73 of file EventID.h.

References event_, luminosityBlock_, and run_.

73  {
74  if (run_ < iRHS.run_) return true;
75  if (run_ > iRHS.run_) return false;
76  if (luminosityBlock_ < iRHS.luminosityBlock_) return true;
77  if (luminosityBlock_ > iRHS.luminosityBlock_) return false;
78  return (event_ < iRHS.event_);
79  }
EventNumber_t event_
Definition: EventID.h:131
LuminosityBlockNumber_t luminosityBlock_
Definition: EventID.h:130
RunNumber_t run_
Definition: EventID.h:129
bool edm::EventID::operator<= ( EventID const &  iRHS) const
inline

Definition at line 93 of file EventID.h.

93  {
94  return (*this < iRHS || *this == iRHS);
95  }
bool edm::EventID::operator== ( EventID const &  iRHS) const
inline

Definition at line 85 of file EventID.h.

85  {
86  return !(*this < iRHS || iRHS < *this);
87  }
bool edm::EventID::operator> ( EventID const &  iRHS) const
inline

Definition at line 97 of file EventID.h.

97  {
98  return !(*this <= iRHS);
99  }
bool edm::EventID::operator>= ( EventID const &  iRHS) const
inline

Definition at line 81 of file EventID.h.

81  {
82  return !(*this < iRHS);
83  }
EventID edm::EventID::previous ( LuminosityBlockNumber_t const &  lumi) const
inline

Definition at line 63 of file EventID.h.

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

63  {
64  if(event_ > 1) {
65  return EventID(run_, lumi, event_-1);
66  }
67  if(run_ != 0) {
68  return EventID(run_ - 1, lumi, maxEventNumber());
69  }
70  return EventID();
71  }
EventNumber_t event_
Definition: EventID.h:131
tuple lumi
Definition: fjr2json.py:35
RunNumber_t run_
Definition: EventID.h:129
static EventNumber_t maxEventNumber()
Definition: EventID.h:111
EventID edm::EventID::previousRunLastEvent ( LuminosityBlockNumber_t const &  lumi) const
inline

Definition at line 56 of file EventID.h.

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

56  {
57  if(run_ > 1) {
58  return EventID(run_ - 1, lumi, maxEventNumber());
59  }
60  return EventID();
61  }
tuple lumi
Definition: fjr2json.py:35
RunNumber_t run_
Definition: EventID.h:129
static EventNumber_t maxEventNumber()
Definition: EventID.h:111
RunNumber_t edm::EventID::run ( ) const
inline

Definition at line 39 of file EventID.h.

References run_.

Referenced by fwlite::RunLumiSelector::accept(), SiStripDetVOffFakeBuilder::analyze(), SiStripNoisesBuilder::analyze(), ESPedestalTask::analyze(), SiStripSummaryBuilder::analyze(), SiStripThresholdBuilder::analyze(), SiStripApvGainBuilder::analyze(), SiStripPedestalsBuilder::analyze(), EventHeader::analyze(), edmtest::FillInfoESAnalyzer::analyze(), HcalTBWriter::analyze(), ElectronGeneralAnalyzer::analyze(), BeamSpotFromDB::analyze(), ESTimingTask::analyze(), PUDumper::analyze(), edmtest::L1TriggerScalerESAnalyzer::analyze(), edmtest::RunInfoESAnalyzer::analyze(), edmtest::RunSummaryESAnalyzer::analyze(), HLTInspect::analyze(), DTConfigTester::analyze(), CSCRecoBadChannelsAnalyzer::analyze(), sistrip::SpyExtractRunModule::analyze(), EventIDChecker::analyze(), sistrip::SpyIdentifyRunsModule::analyze(), SiStripMonitorRawData::analyze(), EcalBxOrbitNumberGrapher::analyze(), FFTJetImageRecorder::analyze(), edm::contains(), fwlite::IOVSyncValue::doOp(), edm::IOVSyncValue::doOp(), edm::EventRange::endRun(), PFDQMEventSelector::filter(), TrackingFailureFilter::filter(), EcalTangentFilter::filter(), PhotonIsoProducer::filter(), MultiEventFilter::filter(), EcalLaserCorrFilter::filter(), BeamSplash::filter(), FilterOutScraping::filter(), PhysDecl::filter(), HcalLaserHFFilter2012::filter(), cond::time::fromIOVSyncValue(), cond::time::limitedIOVSyncValue(), edm::eventsetup::no_record_exception_message_builder(), RunLumiSelector::operator()(), edm::operator<<(), ThroughputService::postStreamEndLumi(), ThroughputService::postStreamEndRun(), ThroughputService::preStreamBeginRun(), ShallowEventDataProducer::produce(), CSCDigiProducer::produce(), EcalTBH2TDCRecInfoProducer::produce(), CalibratedPhotonProducerRun2T< T >::produce(), ESRecHitsMerger::produce(), CalibratedElectronProducerRun2T< T >::produce(), ESDigiToRaw::produce(), PFV0Producer::produce(), NtpProducer< C >::produce(), PFDisplacedVertexProducer::produce(), PFDisplacedVertexCandidateProducer::produce(), CSCRecHitDProducer::produce(), PFMET::produce(), FakeTBEventHeaderProducer::produce(), edm::ProducerSourceBase::run(), edm::EventAuxiliary::run(), L1Analysis::L1AnalysisEvent::Set(), and edm::EventRange::startRun().

39 { return run_; }
RunNumber_t run_
Definition: EventID.h:129
void edm::EventID::setLuminosityBlockNumber ( LuminosityBlockNumber_t const &  lb)
inline

Definition at line 120 of file EventID.h.

References luminosityBlock_.

120  {
121  luminosityBlock_ = lb;
122  }
LuminosityBlockNumber_t luminosityBlock_
Definition: EventID.h:130

Member Data Documentation

EventNumber_t edm::EventID::event_
private

Definition at line 131 of file EventID.h.

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

LuminosityBlockNumber_t edm::EventID::luminosityBlock_
private

Definition at line 130 of file EventID.h.

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

RunNumber_t edm::EventID::run_
private

Definition at line 129 of file EventID.h.

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