#include <IDGeneratorSourceBase.h>
Public Member Functions | |
EventNumber_t | event () const |
unsigned int | eventCreationDelay () const |
EventID const & | eventID () const |
IDGeneratorSourceBase (ParameterSet const &pset, InputSourceDescription const &desc, bool realData) | |
LuminosityBlockNumber_t | luminosityBlock () const |
unsigned int | numberEventsInLumi () const |
unsigned int | numberEventsInRun () const |
unsigned int | numberEventsInThisLumi () const |
unsigned int | numberEventsInThisRun () const |
TimeValue_t | presentTime () const |
RunNumber_t | run () const |
unsigned int | timeBetweenEvents () const |
~IDGeneratorSourceBase ()(false) override | |
Static Public Member Functions | |
static void | fillDescription (ParameterSetDescription &desc) |
Protected Member Functions | |
template<typename F > | |
void | doReadEvent (EventPrincipal &eventPrincipal, F &&f) |
Private Member Functions | |
void | advanceToNext (EventID &eventID, TimeValue_t &time) |
void | beginJob () override |
virtual size_t | fileIndex () const |
BASE::ItemType | getNextItemType () final |
virtual void | initialize (EventID &id, TimeValue_t &time, TimeValue_t &interval) |
virtual bool | noFiles () const |
std::shared_ptr< LuminosityBlockAuxiliary > | readLuminosityBlockAuxiliary_ () override |
std::shared_ptr< RunAuxiliary > | readRunAuxiliary_ () override |
void | retreatToPrevious (EventID &eventID, TimeValue_t &time) |
void | rewind_ () override |
RunNumber_t | runForLumi (LuminosityBlockNumber_t) const |
virtual bool | setRunAndEventInfo (EventID &id, TimeValue_t &time, EventAuxiliary::ExperimentType &etype)=0 |
void | skip (int offset) override |
Private Attributes | |
EventAuxiliary::ExperimentType | eType_ |
unsigned int | eventCreationDelay_ |
EventID | eventID_ |
std::vector< edm::LuminosityBlockID > | firstLumiForRuns_ |
bool | isRealData_ |
unsigned int | numberEventsInLumi_ |
unsigned int | numberEventsInRun_ |
unsigned int | numberEventsInThisLumi_ |
unsigned int | numberEventsInThisRun_ |
EventID | origEventID_ |
TimeValue_t | origTime_ |
TimeValue_t | presentTime_ |
TimeValue_t | timeBetweenEvents_ |
EventNumber_t const | zerothEvent_ |
Definition at line 23 of file IDGeneratorSourceBase.h.
|
explicit |
Definition at line 41 of file IDGeneratorSourceBase.cc.
References edm::IDGeneratorSourceBase< BASE >::eventID_, edm::IDGeneratorSourceBase< BASE >::firstLumiForRuns_, edm::EventID::luminosityBlock(), edm::IDGeneratorSourceBase< BASE >::numberEventsInRun_, edm::IDGeneratorSourceBase< BASE >::presentTime_, edm::IDGeneratorSourceBase< BASE >::runForLumi(), and edm::IDGeneratorSourceBase< BASE >::zerothEvent_.
|
override |
Definition at line 75 of file IDGeneratorSourceBase.cc.
|
private |
Definition at line 183 of file IDGeneratorSourceBase.cc.
References edm::EventID::event(), edm::IDGeneratorSourceBase< BASE >::eventID_, edm::IDGeneratorSourceBase< BASE >::firstLumiForRuns_, edm::EventID::luminosityBlock(), edm::EventID::next(), edm::EventID::nextRunFirstEvent(), edm::IDGeneratorSourceBase< BASE >::numberEventsInLumi_, edm::IDGeneratorSourceBase< BASE >::numberEventsInRun_, edm::IDGeneratorSourceBase< BASE >::numberEventsInThisLumi_, edm::IDGeneratorSourceBase< BASE >::numberEventsInThisRun_, edm::IDGeneratorSourceBase< BASE >::origEventID_, edm::IDGeneratorSourceBase< BASE >::run(), edm::EventID::run(), edm::IDGeneratorSourceBase< BASE >::runForLumi(), and edm::IDGeneratorSourceBase< BASE >::timeBetweenEvents_.
Referenced by edm::IDGeneratorSourceBase< PuttableSourceBase >::doReadEvent(), edm::IDGeneratorSourceBase< BASE >::getNextItemType(), and edm::IDGeneratorSourceBase< BASE >::skip().
|
overrideprivate |
Definition at line 115 of file IDGeneratorSourceBase.cc.
References bk::beginJob(), edm::IDGeneratorSourceBase< BASE >::eventID_, edm::IDGeneratorSourceBase< BASE >::initialize(), edm::IDGeneratorSourceBase< BASE >::presentTime_, and edm::IDGeneratorSourceBase< BASE >::timeBetweenEvents_.
Referenced by edm::IDGeneratorSourceBase< PuttableSourceBase >::doReadEvent().
|
inlineprotected |
Definition at line 44 of file IDGeneratorSourceBase.h.
|
inline |
Definition at line 37 of file IDGeneratorSourceBase.h.
|
inline |
Definition at line 32 of file IDGeneratorSourceBase.h.
|
inline |
Definition at line 35 of file IDGeneratorSourceBase.h.
Referenced by edm::IDGeneratorSourceBase< PuttableSourceBase >::doReadEvent().
|
privatevirtual |
Reimplemented in edm::ProducerSourceFromFiles.
Definition at line 264 of file IDGeneratorSourceBase.cc.
Referenced by edm::IDGeneratorSourceBase< PuttableSourceBase >::doReadEvent(), and edm::IDGeneratorSourceBase< BASE >::getNextItemType().
|
static |
Definition at line 269 of file IDGeneratorSourceBase.cc.
References edm::ParameterSetDescription::addNode(), edm::ParameterSetDescription::addOptionalUntracked(), edm::ParameterSetDescription::addUntracked(), edm::kAveEventPerSec, edm::ParameterDescriptionNode::setComment(), and mitigatedMETSequence_cff::U.
Referenced by edm::EmptySource::fillDescriptions(), and edm::IDGeneratorSourceBase< PuttableSourceBase >::luminosityBlock().
|
finalprivate |
Definition at line 136 of file IDGeneratorSourceBase.cc.
References edm::IDGeneratorSourceBase< BASE >::advanceToNext(), edm::IDGeneratorSourceBase< BASE >::eType_, edm::IDGeneratorSourceBase< BASE >::eventCreationDelay_, edm::IDGeneratorSourceBase< BASE >::eventID_, edm::IDGeneratorSourceBase< BASE >::fileIndex(), edm::EventID::luminosityBlock(), edm::IDGeneratorSourceBase< BASE >::noFiles(), edm::IDGeneratorSourceBase< BASE >::presentTime_, DTskim_cfg::processingMode, edm::EventID::run(), and edm::IDGeneratorSourceBase< BASE >::setRunAndEventInfo().
Referenced by edm::IDGeneratorSourceBase< PuttableSourceBase >::doReadEvent().
|
privatevirtual |
Reimplemented in cond::EmptyIOVSource.
Definition at line 123 of file IDGeneratorSourceBase.cc.
Referenced by edm::IDGeneratorSourceBase< BASE >::beginJob(), and edm::IDGeneratorSourceBase< PuttableSourceBase >::doReadEvent().
|
inline |
Definition at line 38 of file IDGeneratorSourceBase.h.
|
privatevirtual |
Reimplemented in edm::ProducerSourceFromFiles.
Definition at line 259 of file IDGeneratorSourceBase.cc.
Referenced by edm::IDGeneratorSourceBase< PuttableSourceBase >::doReadEvent(), and edm::IDGeneratorSourceBase< BASE >::getNextItemType().
|
inline |
Definition at line 29 of file IDGeneratorSourceBase.h.
|
inline |
Definition at line 28 of file IDGeneratorSourceBase.h.
|
inline |
Definition at line 34 of file IDGeneratorSourceBase.h.
|
inline |
Definition at line 33 of file IDGeneratorSourceBase.h.
|
inline |
Definition at line 30 of file IDGeneratorSourceBase.h.
|
overrideprivate |
Definition at line 85 of file IDGeneratorSourceBase.cc.
References edm::IDGeneratorSourceBase< BASE >::eventID_, edm::Timestamp::invalidTimestamp(), edm::EventID::luminosityBlock(), edm::IDGeneratorSourceBase< BASE >::presentTime_, DTskim_cfg::processingMode, and edm::EventID::run().
Referenced by edm::IDGeneratorSourceBase< PuttableSourceBase >::doReadEvent().
|
overrideprivate |
Definition at line 78 of file IDGeneratorSourceBase.cc.
References edm::IDGeneratorSourceBase< BASE >::eventID_, edm::Timestamp::invalidTimestamp(), edm::IDGeneratorSourceBase< BASE >::presentTime_, and edm::EventID::run().
Referenced by edm::IDGeneratorSourceBase< PuttableSourceBase >::doReadEvent().
|
private |
Definition at line 214 of file IDGeneratorSourceBase.cc.
References edm::EventID::event(), edm::IDGeneratorSourceBase< BASE >::eventID_, edm::IDGeneratorSourceBase< BASE >::firstLumiForRuns_, edm::EventID::luminosityBlock(), edm::IDGeneratorSourceBase< BASE >::numberEventsInLumi_, edm::IDGeneratorSourceBase< BASE >::numberEventsInRun_, edm::IDGeneratorSourceBase< BASE >::numberEventsInThisLumi_, edm::IDGeneratorSourceBase< BASE >::numberEventsInThisRun_, edm::IDGeneratorSourceBase< BASE >::origEventID_, edm::EventID::previous(), edm::EventID::previousRunLastEvent(), edm::IDGeneratorSourceBase< BASE >::run(), edm::EventID::run(), edm::IDGeneratorSourceBase< BASE >::runForLumi(), and edm::IDGeneratorSourceBase< BASE >::timeBetweenEvents_.
Referenced by edm::IDGeneratorSourceBase< PuttableSourceBase >::doReadEvent(), and edm::IDGeneratorSourceBase< BASE >::skip().
|
overrideprivate |
Definition at line 126 of file IDGeneratorSourceBase.cc.
References edm::IDGeneratorSourceBase< BASE >::eventID_, edm::IDGeneratorSourceBase< BASE >::numberEventsInThisLumi_, edm::IDGeneratorSourceBase< BASE >::numberEventsInThisRun_, edm::IDGeneratorSourceBase< BASE >::origEventID_, edm::IDGeneratorSourceBase< BASE >::origTime_, and edm::IDGeneratorSourceBase< BASE >::presentTime_.
Referenced by edm::IDGeneratorSourceBase< PuttableSourceBase >::doReadEvent().
|
inline |
Definition at line 36 of file IDGeneratorSourceBase.h.
Referenced by edm::IDGeneratorSourceBase< BASE >::advanceToNext(), and edm::IDGeneratorSourceBase< BASE >::retreatToPrevious().
|
private |
Definition at line 247 of file IDGeneratorSourceBase.cc.
References edm::IDGeneratorSourceBase< BASE >::firstLumiForRuns_.
Referenced by edm::IDGeneratorSourceBase< BASE >::advanceToNext(), edm::IDGeneratorSourceBase< PuttableSourceBase >::doReadEvent(), edm::IDGeneratorSourceBase< BASE >::IDGeneratorSourceBase(), and edm::IDGeneratorSourceBase< BASE >::retreatToPrevious().
|
privatepure virtual |
Implemented in L1MuGMTHWFileReader, MCatNLOSource, PixelSLinkDataInputSource, LHESource, AlpgenSource, LmfSource, edm::MCFileSource, FRDStreamSource, HcalTBSource, edm::EmptySource, and cond::EmptyIOVSource.
Referenced by edm::IDGeneratorSourceBase< PuttableSourceBase >::doReadEvent(), and edm::IDGeneratorSourceBase< BASE >::getNextItemType().
|
overrideprivate |
Definition at line 95 of file IDGeneratorSourceBase.cc.
References edm::IDGeneratorSourceBase< BASE >::advanceToNext(), edm::IDGeneratorSourceBase< BASE >::eventID_, edm::EventID::luminosityBlock(), hltrates_dqm_sourceclient-live_cfg::offset, edm::IDGeneratorSourceBase< BASE >::presentTime_, edm::IDGeneratorSourceBase< BASE >::retreatToPrevious(), and edm::EventID::run().
Referenced by edm::IDGeneratorSourceBase< PuttableSourceBase >::doReadEvent().
|
inline |
Definition at line 31 of file IDGeneratorSourceBase.h.
|
private |
Definition at line 83 of file IDGeneratorSourceBase.h.
Referenced by edm::IDGeneratorSourceBase< PuttableSourceBase >::doReadEvent(), and edm::IDGeneratorSourceBase< BASE >::getNextItemType().
|
private |
Definition at line 75 of file IDGeneratorSourceBase.h.
Referenced by edm::IDGeneratorSourceBase< PuttableSourceBase >::eventCreationDelay(), and edm::IDGeneratorSourceBase< BASE >::getNextItemType().
|
private |
Definition at line 80 of file IDGeneratorSourceBase.h.
Referenced by edm::IDGeneratorSourceBase< BASE >::advanceToNext(), edm::IDGeneratorSourceBase< BASE >::beginJob(), edm::IDGeneratorSourceBase< PuttableSourceBase >::doReadEvent(), edm::IDGeneratorSourceBase< PuttableSourceBase >::event(), edm::IDGeneratorSourceBase< PuttableSourceBase >::eventID(), edm::IDGeneratorSourceBase< BASE >::getNextItemType(), edm::IDGeneratorSourceBase< BASE >::IDGeneratorSourceBase(), edm::IDGeneratorSourceBase< PuttableSourceBase >::luminosityBlock(), edm::IDGeneratorSourceBase< BASE >::readLuminosityBlockAuxiliary_(), edm::IDGeneratorSourceBase< BASE >::readRunAuxiliary_(), edm::IDGeneratorSourceBase< BASE >::retreatToPrevious(), edm::IDGeneratorSourceBase< BASE >::rewind_(), edm::IDGeneratorSourceBase< PuttableSourceBase >::run(), and edm::IDGeneratorSourceBase< BASE >::skip().
|
private |
|
private |
Definition at line 82 of file IDGeneratorSourceBase.h.
Referenced by edm::IDGeneratorSourceBase< PuttableSourceBase >::doReadEvent().
|
private |
Definition at line 71 of file IDGeneratorSourceBase.h.
Referenced by edm::IDGeneratorSourceBase< BASE >::advanceToNext(), edm::IDGeneratorSourceBase< PuttableSourceBase >::numberEventsInLumi(), and edm::IDGeneratorSourceBase< BASE >::retreatToPrevious().
|
private |
Definition at line 70 of file IDGeneratorSourceBase.h.
Referenced by edm::IDGeneratorSourceBase< BASE >::advanceToNext(), edm::IDGeneratorSourceBase< BASE >::IDGeneratorSourceBase(), edm::IDGeneratorSourceBase< PuttableSourceBase >::numberEventsInRun(), and edm::IDGeneratorSourceBase< BASE >::retreatToPrevious().
|
private |
Definition at line 78 of file IDGeneratorSourceBase.h.
Referenced by edm::IDGeneratorSourceBase< BASE >::advanceToNext(), edm::IDGeneratorSourceBase< PuttableSourceBase >::numberEventsInThisLumi(), edm::IDGeneratorSourceBase< BASE >::retreatToPrevious(), and edm::IDGeneratorSourceBase< BASE >::rewind_().
|
private |
Definition at line 77 of file IDGeneratorSourceBase.h.
Referenced by edm::IDGeneratorSourceBase< BASE >::advanceToNext(), edm::IDGeneratorSourceBase< PuttableSourceBase >::numberEventsInThisRun(), edm::IDGeneratorSourceBase< BASE >::retreatToPrevious(), and edm::IDGeneratorSourceBase< BASE >::rewind_().
|
private |
Definition at line 81 of file IDGeneratorSourceBase.h.
Referenced by edm::IDGeneratorSourceBase< BASE >::advanceToNext(), edm::IDGeneratorSourceBase< BASE >::retreatToPrevious(), and edm::IDGeneratorSourceBase< BASE >::rewind_().
|
private |
Definition at line 73 of file IDGeneratorSourceBase.h.
Referenced by edm::IDGeneratorSourceBase< BASE >::rewind_().
|
private |
Definition at line 72 of file IDGeneratorSourceBase.h.
Referenced by edm::IDGeneratorSourceBase< BASE >::beginJob(), edm::IDGeneratorSourceBase< PuttableSourceBase >::doReadEvent(), edm::IDGeneratorSourceBase< BASE >::getNextItemType(), edm::IDGeneratorSourceBase< BASE >::IDGeneratorSourceBase(), edm::IDGeneratorSourceBase< PuttableSourceBase >::presentTime(), edm::IDGeneratorSourceBase< BASE >::readLuminosityBlockAuxiliary_(), edm::IDGeneratorSourceBase< BASE >::readRunAuxiliary_(), edm::IDGeneratorSourceBase< BASE >::rewind_(), and edm::IDGeneratorSourceBase< BASE >::skip().
|
private |
Definition at line 74 of file IDGeneratorSourceBase.h.
Referenced by edm::IDGeneratorSourceBase< BASE >::advanceToNext(), edm::IDGeneratorSourceBase< BASE >::beginJob(), edm::IDGeneratorSourceBase< BASE >::retreatToPrevious(), and edm::IDGeneratorSourceBase< PuttableSourceBase >::timeBetweenEvents().
|
private |
Definition at line 79 of file IDGeneratorSourceBase.h.
Referenced by edm::IDGeneratorSourceBase< BASE >::IDGeneratorSourceBase().