#include <InputSource.h>
Classes | |
class | EventSourceSentry |
class | FileCloseSentry |
class | FileOpenSentry |
class | ItemTypeInfo |
class | LumiSourceSentry |
class | ProcessBlockSourceSentry |
class | RunSourceSentry |
Public Types | |
enum | ItemPosition : char { ItemPosition::Invalid, ItemPosition::LastItemToBeMerged, ItemPosition::NotLastItemToBeMerged } |
enum | ItemType : char { ItemType::IsInvalid, ItemType::IsStop, ItemType::IsFile, ItemType::IsRun, ItemType::IsLumi, ItemType::IsEvent, ItemType::IsRepeat, ItemType::IsSynchronize } |
enum | ProcessingMode { Runs, RunsAndLumis, RunsLumisAndEvents } |
Public Member Functions | |
std::shared_ptr< ActivityRegistry > | actReg () const |
Accessor for Activity Registry. More... | |
std::shared_ptr< BranchIDListHelper const > | branchIDListHelper () const |
Accessors for branchIDListHelper. More... | |
std::shared_ptr< BranchIDListHelper > & | branchIDListHelper () |
void | closeFile (FileBlock *, bool cleaningUpAfterException) |
close current file More... | |
void | doBeginJob () |
Called by framework at beginning of job. More... | |
virtual void | doBeginLumi (LuminosityBlockPrincipal &lbp, ProcessContext const *) |
Called by framework at beginning of lumi block. More... | |
virtual void | doBeginRun (RunPrincipal &rp, ProcessContext const *) |
Called by framework at beginning of run. More... | |
void | doEndJob () |
Called by framework at end of job. More... | |
void | fillProcessBlockHelper () |
Fill the ProcessBlockHelper with info for the current file. More... | |
ProcessingController::ForwardState | forwardState () const |
bool | goToEvent (EventID const &eventID) |
InputSource (ParameterSet const &, InputSourceDescription const &) | |
Constructor. More... | |
InputSource (InputSource const &)=delete | |
void | issueReports (EventID const &eventID, StreamID streamID) |
issue an event report More... | |
LuminosityBlockNumber_t | luminosityBlock () const |
Accessor for current luminosity block number. More... | |
std::shared_ptr< LuminosityBlockAuxiliary > | luminosityBlockAuxiliary () const |
Called by the framework to merge or insert lumi in principal cache. More... | |
int | maxEvents () const |
int | maxLuminosityBlocks () const |
ModuleDescription const & | moduleDescription () const |
Accessor for 'module' description. More... | |
ItemTypeInfo | nextItemType () |
Advances the source to the next item. More... | |
bool | nextProcessBlock (ProcessBlockPrincipal &) |
Next process block, return false if there is none, sets the processName in the principal. More... | |
InputSource & | operator= (InputSource const &)=delete |
std::shared_ptr< ProcessBlockHelper const > | processBlockHelper () const |
Accessors for processBlockHelper. More... | |
std::shared_ptr< ProcessBlockHelper > & | processBlockHelper () |
ProcessConfiguration const & | processConfiguration () const |
Accessor for Process Configuration. More... | |
std::string const & | processGUID () const |
Accessor for global process identifier. More... | |
ProcessHistoryRegistry const & | processHistoryRegistry () const |
Accessors for process history registry. More... | |
ProcessHistoryRegistry & | processHistoryRegistry () |
ProcessingMode | processingMode () const |
RunsLumisAndEvents (default), RunsAndLumis, or Runs. More... | |
std::shared_ptr< ProductRegistry const > | productRegistry () const |
Accessors for product registry. More... | |
bool | randomAccess () const |
void | readAndMergeLumi (LuminosityBlockPrincipal &lbp) |
Read next luminosity block (same as a prior lumi) More... | |
void | readAndMergeRun (RunPrincipal &rp) |
Read next run (same as a prior run) More... | |
void | readEvent (EventPrincipal &ep, StreamContext &) |
Read next event. More... | |
bool | readEvent (EventPrincipal &ep, EventID const &, StreamContext &) |
Read a specific event. More... | |
std::shared_ptr< FileBlock > | readFile () |
Read next file. More... | |
void | readLuminosityBlock (LuminosityBlockPrincipal &lumiPrincipal, HistoryAppender &historyAppender) |
Read next luminosity block (new lumi) More... | |
std::shared_ptr< LuminosityBlockAuxiliary > | readLuminosityBlockAuxiliary () |
Read next luminosity block Auxilary. More... | |
void | readProcessBlock (ProcessBlockPrincipal &) |
Read next process block. More... | |
void | readRun (RunPrincipal &runPrincipal, HistoryAppender &historyAppender) |
Read next run (new run) More... | |
std::shared_ptr< RunAuxiliary > | readRunAuxiliary () |
Read next run Auxiliary. More... | |
ProcessHistoryID const & | reducedProcessHistoryID () const |
virtual void | registerProducts () |
Register any produced products. More... | |
int | remainingEvents () const |
int | remainingLuminosityBlocks () const |
void | repeat () |
Reset the remaining number of events/lumis to the maximum number. More... | |
std::pair< SharedResourcesAcquirer *, std::recursive_mutex * > | resourceSharedWithDelayedReader () |
Returns nullptr if no resource shared between the Source and a DelayedReader. More... | |
ProcessingController::ReverseState | reverseState () const |
void | rewind () |
Begin again at the first event. More... | |
RunNumber_t | run () const |
Accessor for current run number. More... | |
std::shared_ptr< RunAuxiliary > | runAuxiliary () const |
Called by the framework to merge or insert run in principal cache. More... | |
void | setLuminosityBlockNumber_t (LuminosityBlockNumber_t lb) |
Set the luminosity block ID. More... | |
void | setRunNumber (RunNumber_t r) |
Set the run number. More... | |
void | skipEvents (int offset) |
void | switchTo (std::shared_ptr< ProductRegistry > iOther) |
switch to a different ProductRegistry. More... | |
std::shared_ptr< ThinnedAssociationsHelper const > | thinnedAssociationsHelper () const |
Accessors for thinnedAssociationsHelper. More... | |
std::shared_ptr< ThinnedAssociationsHelper > & | thinnedAssociationsHelper () |
Timestamp const & | timestamp () const |
Accessor for the current time, as seen by the input source. More... | |
virtual | ~InputSource () noexcept(false) |
Destructor. More... | |
Static Public Member Functions | |
static const std::string & | baseType () |
static void | fillDescription (ParameterSetDescription &desc) |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &) |
Public Attributes | |
signalslot::Signal< void(StreamContext const &, ModuleCallingContext const &)> | postEventReadFromSourceSignal_ |
signalslot::Signal< void(StreamContext const &, ModuleCallingContext const &)> | preEventReadFromSourceSignal_ |
Protected Member Functions | |
virtual void | beginJob () |
Begin protected makes it easier to do template programming. More... | |
void | decreaseRemainingEventsBy (int iSkipped) |
bool | eventCached () const |
bool | newLumi () const |
bool | newRun () const |
ProcessHistoryRegistry & | processHistoryRegistryForUpdate () |
ProductRegistry & | productRegistryUpdate () |
void | reset () const |
void | resetEventCached () |
void | resetLuminosityBlockAuxiliary (bool isNewLumi=true) const |
void | resetNewLumi () |
void | resetNewRun () |
void | resetRunAuxiliary (bool isNewRun=true) const |
void | setEventCached () |
Called by the framework to merge or ached() const {return eventCached_;}. More... | |
void | setLuminosityBlockAuxiliary (LuminosityBlockAuxiliary *lbp) |
void | setNewLumi () |
void | setNewRun () |
void | setRunAuxiliary (RunAuxiliary *rp) |
void | setTimestamp (Timestamp const &theTime) |
To set the current time, as seen by the input source. More... | |
virtual void | skip (int offset) |
ItemTypeInfo | state () const |
Definition at line 52 of file InputSource.h.
|
strong |
Enumerator | |
---|---|
Invalid | |
LastItemToBeMerged | |
NotLastItemToBeMerged |
Definition at line 55 of file InputSource.h.
|
strong |
Enumerator | |
---|---|
IsInvalid | |
IsStop | |
IsFile | |
IsRun | |
IsLumi | |
IsEvent | |
IsRepeat | |
IsSynchronize |
Definition at line 54 of file InputSource.h.
Enumerator | |
---|---|
Runs | |
RunsAndLumis | |
RunsLumisAndEvents |
Definition at line 85 of file InputSource.h.
|
explicit |
Constructor.
Definition at line 47 of file InputSource.cc.
References edm::errors::Configuration, Exception, maxSecondsUntilRampdown_, submitPVValidationJobs::now, processingMode(), processingMode_, processingStart_, muonDTDigis_cfi::pset, TopDecaySubset_cfi::runMode, Runs, RunsAndLumis, statusFileName_, and AlCaHLTBitMon_QueryRunRegistry::string.
|
virtualnoexcept |
|
delete |
|
inline |
Accessor for Activity Registry.
Definition at line 258 of file InputSource.h.
References actReg_.
Referenced by edm::InputSource::LumiSourceSentry::LumiSourceSentry(), edm::InputSource::ProcessBlockSourceSentry::ProcessBlockSourceSentry(), and edm::InputSource::RunSourceSentry::RunSourceSentry().
|
static |
Definition at line 115 of file InputSource.cc.
References edm::kBaseType().
|
protectedvirtual |
Begin protected makes it easier to do template programming.
Reimplemented in edm::RepeatingCachedRootSource, edm::IDGeneratorSourceBase< InputSource >, edm::IDGeneratorSourceBase< PuttableSourceBase >, edm::PuttableSourceBase, and edm::ThrowingSource.
Definition at line 439 of file InputSource.cc.
Referenced by doBeginJob().
|
inline |
Accessors for branchIDListHelper.
Definition at line 172 of file InputSource.h.
References branchIDListHelper_, and edm::get_underlying_safe().
Referenced by edm::RepeatingCachedRootSource::beginJob(), edm::DelayedReaderThrowingSource::DelayedReaderThrowingSource(), edm::RootSecondaryFileSequence::makeRootFile(), edm::RootPrimaryFileSequence::makeRootFile(), edm::RepeatingCachedRootSource::makeRootFile(), edm::streamer::StreamerInputSource::read(), edm::DelayedReaderThrowingSource::readEvent_(), and edm::streamer::StreamerInputSource::updateEventMetaData().
|
inline |
Definition at line 175 of file InputSource.h.
References branchIDListHelper_, and edm::get_underlying_safe().
void InputSource::closeFile | ( | FileBlock * | fb, |
bool | cleaningUpAfterException | ||
) |
close current file
Definition at line 230 of file InputSource.cc.
References edm::FileBlock::close(), and closeFile_().
|
inlineprivatevirtual |
Reimplemented in edm::PoolSource, edm::RawInputSource, and edm::ThrowingSource.
Definition at line 430 of file InputSource.h.
Referenced by closeFile().
|
protected |
Called by inheriting classes when running multicore when the receiver has told them to skip some events.
Definition at line 410 of file InputSource.cc.
References remainingEvents_.
void InputSource::doBeginJob | ( | ) |
Called by framework at beginning of job.
Definition at line 208 of file InputSource.cc.
References beginJob().
|
virtual |
Called by framework at beginning of lumi block.
Reimplemented in edm::PuttableSourceBase.
Definition at line 423 of file InputSource.cc.
|
virtual |
Called by framework at beginning of run.
Reimplemented in edm::PuttableSourceBase.
Definition at line 421 of file InputSource.cc.
void InputSource::doEndJob | ( | ) |
Called by framework at end of job.
Definition at line 210 of file InputSource.cc.
References endJob().
Referenced by edm::EventProcessor::endJob().
|
privatevirtual |
Reimplemented in edm::PoolSource, LH5Source, LHESource, and edm::ThrowingSource.
Definition at line 441 of file InputSource.cc.
Referenced by doEndJob().
|
inlineprotected |
Definition at line 389 of file InputSource.h.
References eventCached_.
Referenced by edm::RawInputSource::getNextItemType(), edm::ThrowingSource::readEvent_(), edm::RawInputSource::readEvent_(), LH5Source::readEvent_(), LHESource::readEvent_(), and edm::streamer::StreamerInputSource::resetAfterEndRun().
|
inlineprivate |
Definition at line 402 of file InputSource.h.
References remainingEvents_.
Referenced by limitReached(), nextItemType(), and readEvent().
|
static |
Definition at line 117 of file InputSource.cc.
References submitPVResolutionJobs::desc, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by edm::RawInputSource::fillDescription(), edm::PoolSource::fillDescriptions(), and edm::RepeatingCachedRootSource::fillDescriptions().
|
static |
Definition at line 105 of file InputSource.cc.
References edm::ConfigurationDescriptions::addDefault(), and submitPVResolutionJobs::desc.
void InputSource::fillProcessBlockHelper | ( | ) |
Fill the ProcessBlockHelper with info for the current file.
Definition at line 272 of file InputSource.cc.
References fillProcessBlockHelper_().
|
privatevirtual |
Reimplemented in edm::RepeatingCachedRootSource, and edm::PoolSource.
Definition at line 284 of file InputSource.cc.
Referenced by fillProcessBlockHelper().
ProcessingController::ForwardState InputSource::forwardState | ( | ) | const |
Definition at line 429 of file InputSource.cc.
References forwardState_().
|
privatevirtual |
Reimplemented in edm::PoolSource.
Definition at line 445 of file InputSource.cc.
References edm::ProcessingController::kUnknownForward.
Referenced by forwardState().
|
privatepure virtual |
Implemented in DQMRootSource, edm::RepeatingCachedRootSource, edm::IDGeneratorSourceBase< InputSource >, edm::IDGeneratorSourceBase< PuttableSourceBase >, edmtest::SourceWithWaits, edm::PoolSource, edm::RawInputSource, edmtest::PutOrMergeTestSource, dqmservices::DQMProtobufReader, edm::TestSource, and edm::OneLumiPoolSource.
Referenced by nextItemType_().
bool InputSource::goToEvent | ( | EventID const & | eventID | ) |
Definition at line 343 of file InputSource.cc.
References goToEvent_().
|
privatevirtual |
Reimplemented in edm::RepeatingCachedRootSource, and edm::PoolSource.
Definition at line 397 of file InputSource.cc.
References Exception, and edm::errors::LogicError.
Referenced by goToEvent().
issue an event report
Definition at line 357 of file InputSource.cc.
References edm::EventID::event(), edm::isFwkInfoEnabled(), edm::EventID::luminosityBlock(), readCount_, edm::EventID::run(), statusFileName_, ticlDumper_cff::suffix, and edm::StreamID::value().
Referenced by readEvent().
|
inlineprivate |
Definition at line 417 of file InputSource.h.
References eventLimitReached(), and lumiLimitReached().
Referenced by readEvent(), and readFile().
|
inlineprivate |
Definition at line 403 of file InputSource.h.
References submitPVResolutionJobs::count, maxSecondsUntilRampdown_, submitPVValidationJobs::now, processingStart_, and remainingLumis_.
Referenced by limitReached(), and nextItemType().
LuminosityBlockNumber_t InputSource::luminosityBlock | ( | ) | const |
Accessor for current luminosity block number.
Definition at line 463 of file InputSource.cc.
References cms::cuda::assert(), and luminosityBlockAuxiliary().
Referenced by Types.EventID::cppID(), Types.LuminosityBlockID::cppID(), edm::streamer::StreamerInputSource::deserializeEventCommon(), FedRawDataInputSource::maybeOpenNewLumiSection(), DAQSource::maybeOpenNewLumiSection(), and edm::PoolSource::readIt().
|
inline |
Called by the framework to merge or insert lumi in principal cache.
Definition at line 264 of file InputSource.h.
References lumiAuxiliary_.
Referenced by edm::streamer::StreamerInputSource::deserializeEventCommon(), edm::RawInputSource::getNextItemType(), luminosityBlock(), FedRawDataInputSource::maybeOpenNewLumiSection(), DAQSource::maybeOpenNewLumiSection(), LHESource::readLuminosityBlock_(), LH5Source::readLuminosityBlock_(), and edm::RawInputSource::readLuminosityBlockAuxiliary_().
|
inline |
Accessor for maximum number of events to be read. -1 is used for unlimited.
Definition at line 205 of file InputSource.h.
References maxEvents_.
|
inline |
Accessor for maximum number of lumis to be read. -1 is used for unlimited.
Definition at line 213 of file InputSource.h.
References maxLumis_.
|
inline |
Accessor for 'module' description.
Definition at line 220 of file InputSource.h.
References moduleDescription_.
Referenced by edm::PuttableSourceBase::beginJob(), edm::PuttableSourceBase::doBeginLumi(), edm::PuttableSourceBase::doBeginRun(), processConfiguration(), edm::ProducerSourceBase::readEvent_(), and edm::PuttableSourceBase::registerProducts().
|
inlineprotected |
Definition at line 386 of file InputSource.h.
References newLumi_.
Referenced by edm::RawInputSource::getNextItemType(), edm::RawInputSource::readEvent_(), and edm::RawInputSource::readLuminosityBlockAuxiliary_().
|
inlineprotected |
Definition at line 383 of file InputSource.h.
References newRun_.
Referenced by edm::RawInputSource::getNextItemType(), edm::RawInputSource::readEvent_(), edm::RawInputSource::readLuminosityBlockAuxiliary_(), and edm::RawInputSource::readRunAuxiliary_().
InputSource::ItemTypeInfo InputSource::nextItemType | ( | ) |
Advances the source to the next item.
Definition at line 151 of file InputSource.cc.
References cms::cuda::assert(), eventLimitReached(), IsEvent, IsFile, IsInvalid, IsLumi, IsRun, IsStop, IsSynchronize, edm::InputSource::ItemTypeInfo::itemType(), lumiAuxiliary_, lumiLimitReached(), nextItemType_(), processingMode(), readLuminosityBlockAuxiliary(), readRunAuxiliary(), runAuxiliary_, Runs, RunsLumisAndEvents, and state_.
|
private |
Definition at line 136 of file InputSource.cc.
References getNextItemType(), IsEvent, IsLumi, processingMode(), Runs, RunsLumisAndEvents, and skipEvents().
Referenced by nextItemType().
bool InputSource::nextProcessBlock | ( | ProcessBlockPrincipal & | processBlockPrincipal | ) |
Next process block, return false if there is none, sets the processName in the principal.
Definition at line 274 of file InputSource.cc.
References nextProcessBlock_().
|
privatevirtual |
Reimplemented in edm::RepeatingCachedRootSource, and edm::PoolSource.
Definition at line 286 of file InputSource.cc.
Referenced by nextProcessBlock().
|
delete |
|
static |
Definition at line 111 of file InputSource.cc.
|
inline |
Accessors for processBlockHelper.
Definition at line 178 of file InputSource.h.
References edm::get_underlying_safe(), and processBlockHelper_.
Referenced by edm::RootPrimaryFileSequence::makeRootFile(), and edm::RepeatingCachedRootSource::makeRootFile().
|
inline |
Definition at line 181 of file InputSource.h.
References edm::get_underlying_safe(), and processBlockHelper_.
|
inline |
Accessor for Process Configuration.
Definition at line 223 of file InputSource.h.
References moduleDescription(), and edm::ModuleDescription::processConfiguration().
Referenced by edm::RepeatingCachedRootSource::beginJob(), edm::RootSecondaryFileSequence::makeRootFile(), edm::RootPrimaryFileSequence::makeRootFile(), edm::RepeatingCachedRootSource::makeRootFile(), edm::PoolSource::PoolSource(), edm::PoolSource::readLuminosityBlock_(), and edm::PoolSource::readRun_().
|
inline |
Accessor for global process identifier.
Definition at line 226 of file InputSource.h.
References processGUID_.
Referenced by FedRawDataInputSource::read(), edm::TestSource::readEvent_(), edm::ThrowingSource::readEvent_(), LHESource::readEvent_(), LH5Source::readEvent_(), and edmtest::SourceWithWaits::readEvent_().
|
inline |
Accessors for process history registry.
Definition at line 168 of file InputSource.h.
References processHistoryRegistry_.
Referenced by edm::DelayedReaderThrowingSource::DelayedReaderThrowingSource(), edm::RawInputSource::makeEvent(), edm::streamer::StreamerInputSource::read(), edm::TestSource::readEvent_(), edm::ThrowingSource::readEvent_(), LH5Source::readEvent_(), LHESource::readEvent_(), edmtest::SourceWithWaits::readEvent_(), edm::RepeatingCachedRootSource::readEvent_(), dqmservices::DQMProtobufReader::readLuminosityBlock_(), LHESource::readLuminosityBlock_(), LH5Source::readLuminosityBlock_(), DQMRootSource::readLuminosityBlock_(), readLuminosityBlock_(), edmtest::PutOrMergeTestSource::readRun_(), and readRun_().
|
inline |
Definition at line 169 of file InputSource.h.
References processHistoryRegistry_.
|
inlineprotected |
Definition at line 360 of file InputSource.h.
References processHistoryRegistry_.
Referenced by DAQSource::DAQSource(), edm::streamer::StreamerInputSource::deserializeEventCommon(), FedRawDataInputSource::FedRawDataInputSource(), LH5Source::LH5Source(), LHESource::LHESource(), edm::RepeatingCachedRootSource::makeRootFile(), LHESource::nextEvent(), LH5Source::nextEvent(), dqmservices::DQMProtobufReader::readRun_(), LH5Source::readRun_(), LHESource::readRun_(), and DQMRootSource::readRun_().
|
inline |
RunsLumisAndEvents (default), RunsAndLumis, or Runs.
Definition at line 255 of file InputSource.h.
References processingMode_.
Referenced by InputSource(), edm::RootSecondaryFileSequence::makeRootFile(), edm::RootPrimaryFileSequence::makeRootFile(), edm::RepeatingCachedRootSource::makeRootFile(), nextItemType(), nextItemType_(), edm::ThrowingSource::readEvent_(), LHESource::readEvent_(), LH5Source::readEvent_(), edm::ThrowingSource::readLuminosityBlockAuxiliary_(), LHESource::readLuminosityBlockAuxiliary_(), and LH5Source::readLuminosityBlockAuxiliary_().
|
inline |
Accessors for product registry.
Definition at line 165 of file InputSource.h.
References edm::get_underlying_safe(), and productRegistry_.
Referenced by edm::PuttableSourceBase::beginJob(), edm::RepeatingCachedRootSource::beginJob(), and edm::streamer::StreamerInputSource::read().
|
inlineprotected |
Definition at line 359 of file InputSource.h.
References productRegistry_.
Referenced by DAQSource::DAQSource(), edm::DelayedReaderThrowingSource::DelayedReaderThrowingSource(), edm::streamer::StreamerInputSource::deserializeAndMergeWithRegistry(), FedRawDataInputSource::FedRawDataInputSource(), edm::PoolSource::PoolSource(), edmtest::PutOrMergeTestSource::registerProducts(), edm::PuttableSourceBase::registerProducts(), and edm::RepeatingCachedRootSource::RepeatingCachedRootSource().
bool InputSource::randomAccess | ( | ) | const |
Definition at line 425 of file InputSource.cc.
References randomAccess_().
|
privatevirtual |
Reimplemented in edm::PoolSource.
Definition at line 443 of file InputSource.cc.
Referenced by randomAccess().
void InputSource::readAndMergeLumi | ( | LuminosityBlockPrincipal & | lbp | ) |
Read next luminosity block (same as a prior lumi)
Definition at line 263 of file InputSource.cc.
References edm::LuminosityBlockPrincipal::index(), readLuminosityBlock_(), and remainingLumis_.
void InputSource::readAndMergeRun | ( | RunPrincipal & | rp | ) |
Read next run (same as a prior run)
Definition at line 249 of file InputSource.cc.
References edm::RunPrincipal::index(), and readRun_().
void InputSource::readEvent | ( | EventPrincipal & | ep, |
StreamContext & | streamContext | ||
) |
Read next event.
Definition at line 302 of file InputSource.cc.
References cms::cuda::assert(), SiStripBadComponentsDQMServiceTemplate_cfg::ep, eventLimitReached(), IsEvent, issueReports(), readCount_, readEvent_(), remainingEvents_, setTimestamp(), and state_.
bool InputSource::readEvent | ( | EventPrincipal & | ep, |
EventID const & | eventID, | ||
StreamContext & | streamContext | ||
) |
Read a specific event.
Definition at line 319 of file InputSource.cc.
References SiStripBadComponentsDQMServiceTemplate_cfg::ep, issueReports(), limitReached(), readCount_, readIt(), remainingEvents_, and mps_fire::result.
|
privatepure virtual |
Implemented in DQMRootSource, edm::RepeatingCachedRootSource, edmtest::SourceWithWaits, edm::DelayedReaderThrowingSource, edm::PoolSource, LH5Source, LHESource, edmtest::PutOrMergeTestSource, edm::RawInputSource, edm::ProducerSourceBase, dqmservices::DQMProtobufReader, edm::ThrowingSource, edm::TestSource, edm::OneLumiPoolSource, and edm::EmptySource.
Referenced by readEvent().
std::shared_ptr< FileBlock > InputSource::readFile | ( | ) |
Read next file.
Definition at line 223 of file InputSource.cc.
References cms::cuda::assert(), IsFile, limitReached(), readFile_(), and state_.
|
privatevirtual |
Reimplemented in DQMRootSource, edm::PoolSource, edm::RawInputSource, edmtest::PutOrMergeTestSource, and edm::ThrowingSource.
Definition at line 241 of file InputSource.cc.
Referenced by readFile().
|
privatevirtual |
Reimplemented in edm::RepeatingCachedRootSource, and edm::PoolSource.
Definition at line 373 of file InputSource.cc.
References Exception, and edm::errors::LogicError.
Referenced by readEvent().
void InputSource::readLuminosityBlock | ( | LuminosityBlockPrincipal & | lumiPrincipal, |
HistoryAppender & | historyAppender | ||
) |
Read next luminosity block (new lumi)
Definition at line 254 of file InputSource.cc.
References edm::LuminosityBlockPrincipal::index(), readLuminosityBlock_(), and remainingLumis_.
|
privatevirtual |
Reimplemented in DQMRootSource, edm::RepeatingCachedRootSource, edm::PoolSource, LH5Source, LHESource, and dqmservices::DQMProtobufReader.
Definition at line 297 of file InputSource.cc.
References edm::LuminosityBlockPrincipal::aux(), edm::LuminosityBlockPrincipal::fillLuminosityBlockPrincipal(), edm::ProcessHistoryRegistry::getMapped(), edm::LuminosityBlockAuxiliary::processHistoryID(), and processHistoryRegistry().
Referenced by readAndMergeLumi(), and readLuminosityBlock().
std::shared_ptr< LuminosityBlockAuxiliary > InputSource::readLuminosityBlockAuxiliary | ( | ) |
Read next luminosity block Auxilary.
Definition at line 198 of file InputSource.cc.
References readLuminosityBlockAuxiliary_().
Referenced by nextItemType().
|
privatepure virtual |
Implemented in DQMRootSource, edm::RepeatingCachedRootSource, edm::IDGeneratorSourceBase< InputSource >, edm::IDGeneratorSourceBase< PuttableSourceBase >, edmtest::SourceWithWaits, edm::PoolSource, LH5Source, LHESource, edmtest::PutOrMergeTestSource, edm::RawInputSource, dqmservices::DQMProtobufReader, edm::ThrowingSource, edm::TestSource, and edm::OneLumiPoolSource.
Referenced by readLuminosityBlockAuxiliary().
void InputSource::readProcessBlock | ( | ProcessBlockPrincipal & | processBlockPrincipal | ) |
Read next process block.
Definition at line 278 of file InputSource.cc.
References edm::ProcessBlockPrincipal::processName(), and readProcessBlock_().
|
privatevirtual |
Reimplemented in edm::RepeatingCachedRootSource, and edm::PoolSource.
Definition at line 288 of file InputSource.cc.
Referenced by readProcessBlock().
void InputSource::readRun | ( | RunPrincipal & | runPrincipal, |
HistoryAppender & | historyAppender | ||
) |
Read next run (new run)
Definition at line 243 of file InputSource.cc.
References edm::RunPrincipal::index(), and readRun_().
|
privatevirtual |
Reimplemented in DQMRootSource, edm::RepeatingCachedRootSource, edm::PoolSource, LH5Source, LHESource, edmtest::PutOrMergeTestSource, and dqmservices::DQMProtobufReader.
Definition at line 290 of file InputSource.cc.
References edm::RunPrincipal::fillRunPrincipal(), and processHistoryRegistry().
Referenced by readAndMergeRun(), and readRun().
std::shared_ptr< RunAuxiliary > InputSource::readRunAuxiliary | ( | ) |
Read next run Auxiliary.
Definition at line 203 of file InputSource.cc.
References readRunAuxiliary_().
Referenced by nextItemType().
|
privatepure virtual |
Implemented in DQMRootSource, edm::RepeatingCachedRootSource, edm::IDGeneratorSourceBase< InputSource >, edm::IDGeneratorSourceBase< PuttableSourceBase >, edmtest::SourceWithWaits, edm::PoolSource, LH5Source, LHESource, edm::RawInputSource, edmtest::PutOrMergeTestSource, dqmservices::DQMProtobufReader, edm::ThrowingSource, and edm::TestSource.
Referenced by readRunAuxiliary().
ProcessHistoryID const & InputSource::reducedProcessHistoryID | ( | ) | const |
Accessor for the reduced process history ID of the current run. This is the ID of the input process history which does not include the current process.
Definition at line 453 of file InputSource.cc.
References cms::cuda::assert(), processHistoryRegistry_, and runAuxiliary().
|
virtual |
Register any produced products.
Reimplemented in edm::PuttableSourceBase, and edmtest::PutOrMergeTestSource.
Definition at line 220 of file InputSource.cc.
|
inline |
Accessor for remaining number of events to be read. -1 is used for unlimited.
Definition at line 209 of file InputSource.h.
References remainingEvents_.
Referenced by edm::RepeatingCachedRootSource::makeRootFile(), and edm::RootPrimaryFileSequence::remainingEvents().
|
inline |
Accessor for remaining number of lumis to be read. -1 is used for unlimited.
Definition at line 217 of file InputSource.h.
References remainingLumis_.
Referenced by edm::RepeatingCachedRootSource::makeRootFile(), and edm::RootPrimaryFileSequence::remainingLuminosityBlocks().
|
inline |
Reset the remaining number of events/lumis to the maximum number.
Definition at line 192 of file InputSource.h.
References maxEvents_, maxLumis_, remainingEvents_, and remainingLumis_.
|
inlineprotected |
Definition at line 378 of file InputSource.h.
References resetLuminosityBlockAuxiliary(), resetRunAuxiliary(), and state_.
Referenced by edm::streamer::StreamerInputSource::resetAfterEndRun().
|
inlineprotected |
Definition at line 392 of file InputSource.h.
References eventCached_.
Referenced by edm::RawInputSource::getNextItemType(), edm::RawInputSource::readEvent_(), LH5Source::readEvent_(), LHESource::readEvent_(), and rewind().
|
inlineprotected |
Definition at line 374 of file InputSource.h.
References lumiAuxiliary_, and newLumi_.
Referenced by FedRawDataInputSource::checkNext(), DAQSource::checkNext(), edm::streamer::StreamerInputSource::deserializeEventCommon(), edm::RawInputSource::getNextItemType(), FedRawDataInputSource::maybeOpenNewLumiSection(), DAQSource::maybeOpenNewLumiSection(), reset(), and edm::streamer::StreamerInputSource::resetAfterEndRun().
|
inlineprotected |
Definition at line 388 of file InputSource.h.
References newLumi_.
Referenced by edm::ThrowingSource::readLuminosityBlockAuxiliary_(), edm::RawInputSource::readLuminosityBlockAuxiliary_(), LH5Source::readLuminosityBlockAuxiliary_(), and LHESource::readLuminosityBlockAuxiliary_().
|
inlineprotected |
Definition at line 385 of file InputSource.h.
References newRun_.
Referenced by edm::ThrowingSource::readRunAuxiliary_(), edm::RawInputSource::readRunAuxiliary_(), LH5Source::readRunAuxiliary_(), and LHESource::readRunAuxiliary_().
|
inlineprotected |
Definition at line 370 of file InputSource.h.
References newLumi_, newRun_, and runAuxiliary_.
Referenced by edm::RawInputSource::getNextItemType(), LHESource::nextEvent(), LH5Source::nextEvent(), reset(), and edm::streamer::StreamerInputSource::resetAfterEndRun().
std::pair< SharedResourcesAcquirer *, std::recursive_mutex * > InputSource::resourceSharedWithDelayedReader | ( | ) |
Returns nullptr if no resource shared between the Source and a DelayedReader.
Definition at line 212 of file InputSource.cc.
References resourceSharedWithDelayedReader_().
|
privatevirtual |
Reimplemented in edm::PoolSource, and edm::DelayedReaderThrowingSource.
Definition at line 216 of file InputSource.cc.
Referenced by resourceSharedWithDelayedReader().
ProcessingController::ReverseState InputSource::reverseState | ( | ) | const |
Definition at line 434 of file InputSource.cc.
References reverseState_().
|
privatevirtual |
Reimplemented in edm::PoolSource.
Definition at line 449 of file InputSource.cc.
References edm::ProcessingController::kUnknownReverse.
Referenced by reverseState().
void InputSource::rewind | ( | ) |
Begin again at the first event.
Definition at line 348 of file InputSource.cc.
References maxEvents_, remainingEvents_, resetEventCached(), rewind_(), setNewLumi(), setNewRun(), and state_.
|
privatevirtual |
Reimplemented in edm::IDGeneratorSourceBase< InputSource >, edm::IDGeneratorSourceBase< PuttableSourceBase >, edm::PoolSource, DAQSource, FedRawDataInputSource, and edm::RawInputSource.
Definition at line 404 of file InputSource.cc.
References Exception, and edm::errors::LogicError.
Referenced by rewind().
RunNumber_t InputSource::run | ( | ) | const |
Accessor for current run number.
Definition at line 458 of file InputSource.cc.
References cms::cuda::assert(), and runAuxiliary().
Referenced by edm::RepeatingCachedRootSource::beginJob(), DQMRootSource::beginRun(), Types.EventID::cppID(), Types.LuminosityBlockID::cppID(), edm::streamer::StreamerInputSource::deserializeEventCommon(), edm::PuttableSourceBase::doBeginRun(), edm::PoolSource::getNextItemType(), DQMRootSource::keepIt(), FedRawDataInputSource::maybeOpenNewLumiSection(), DAQSource::maybeOpenNewLumiSection(), DQMRootSource::readFile_(), and edm::PoolSource::readIt().
|
inline |
Called by the framework to merge or insert run in principal cache.
Definition at line 261 of file InputSource.h.
References runAuxiliary_.
Referenced by DAQSource::DAQSource(), edm::streamer::StreamerInputSource::deserializeEventCommon(), FedRawDataInputSource::FedRawDataInputSource(), edm::RawInputSource::getNextItemType(), FedRawDataInputSource::maybeOpenNewLumiSection(), DAQSource::maybeOpenNewLumiSection(), edmtest::PutOrMergeTestSource::readRun_(), LH5Source::readRun_(), LHESource::readRun_(), edm::RawInputSource::readRunAuxiliary_(), reducedProcessHistoryID(), and run().
|
inlineprotected |
Called by the framework to merge or ached() const {return eventCached_;}.
Definition at line 391 of file InputSource.h.
References eventCached_.
Referenced by FedRawDataInputSource::checkNext(), DAQSource::checkNext(), and edm::streamer::StreamerInputSource::deserializeEventCommon().
|
privatevirtual |
Definition at line 385 of file InputSource.cc.
References Exception, and edm::errors::LogicError.
Referenced by setLuminosityBlockNumber_t().
|
inlineprotected |
Definition at line 366 of file InputSource.h.
References lumiAuxiliary_, and newLumi_.
Referenced by edm::streamer::StreamerInputSource::deserializeEventCommon(), FedRawDataInputSource::maybeOpenNewLumiSection(), and DAQSource::maybeOpenNewLumiSection().
|
inline |
Set the luminosity block ID.
Definition at line 156 of file InputSource.h.
References setLumi().
|
inlineprotected |
Definition at line 387 of file InputSource.h.
References newLumi_.
Referenced by edm::RawInputSource::getNextItemType(), and rewind().
|
inlineprotected |
Definition at line 384 of file InputSource.h.
References newRun_.
Referenced by DAQSource::DAQSource(), FedRawDataInputSource::FedRawDataInputSource(), edm::RawInputSource::getNextItemType(), and rewind().
|
privatevirtual |
Reimplemented in edm::streamer::StreamerInputSource.
Definition at line 379 of file InputSource.cc.
References Exception, and edm::errors::LogicError.
Referenced by setRunNumber().
|
inlineprotected |
Definition at line 362 of file InputSource.h.
References newLumi_, newRun_, and runAuxiliary_.
Referenced by DAQSource::DAQSource(), edm::streamer::StreamerInputSource::deserializeEventCommon(), and FedRawDataInputSource::FedRawDataInputSource().
|
inline |
|
inlineprotected |
To set the current time, as seen by the input source.
Definition at line 357 of file InputSource.h.
References time_.
Referenced by edm::RawInputSource::RawInputSource(), and readEvent().
|
protectedvirtual |
Reimplemented in edm::RepeatingCachedRootSource, edm::IDGeneratorSourceBase< InputSource >, edm::IDGeneratorSourceBase< PuttableSourceBase >, edm::PoolSource, edm::streamer::StreamerFileReader, and dqmservices::DQMStreamerReader.
Definition at line 391 of file InputSource.cc.
References Exception, and edm::errors::LogicError.
Referenced by skipEvents().
void InputSource::skipEvents | ( | int | offset | ) |
Skip the number of events specified. Offset may be negative.
Definition at line 339 of file InputSource.cc.
References hltrates_dqm_sourceclient-live_cfg::offset, and skip().
Referenced by nextItemType_().
|
inlineprotected |
Definition at line 361 of file InputSource.h.
References state_.
Referenced by edm::RawInputSource::getNextItemType(), edm::PoolSource::getNextItemType(), FedRawDataInputSource::setMonState(), DAQSource::setMonState(), FedRawDataInputSource::setMonStateSup(), and DAQSource::setMonStateSup().
|
inline |
switch to a different ProductRegistry.
Definition at line 201 of file InputSource.h.
References productRegistry_.
|
inline |
Accessors for thinnedAssociationsHelper.
Definition at line 184 of file InputSource.h.
References edm::get_underlying_safe(), and thinnedAssociationsHelper_.
Referenced by edm::RootSecondaryFileSequence::makeRootFile(), edm::RootPrimaryFileSequence::makeRootFile(), edm::RepeatingCachedRootSource::makeRootFile(), and edm::streamer::StreamerInputSource::updateEventMetaData().
|
inline |
Definition at line 187 of file InputSource.h.
References edm::get_underlying_safe(), and thinnedAssociationsHelper_.
|
inline |
Accessor for the current time, as seen by the input source.
Definition at line 241 of file InputSource.h.
References time_.
|
private |
Definition at line 443 of file InputSource.h.
Referenced by actReg().
|
private |
Definition at line 455 of file InputSource.h.
Referenced by branchIDListHelper().
|
private |
Definition at line 462 of file InputSource.h.
Referenced by eventCached(), resetEventCached(), and setEventCached().
|
mutableprivate |
Definition at line 465 of file InputSource.h.
Referenced by luminosityBlockAuxiliary(), nextItemType(), resetLuminosityBlockAuxiliary(), and setLuminosityBlockAuxiliary().
|
private |
Definition at line 444 of file InputSource.h.
Referenced by maxEvents(), repeat(), and rewind().
|
private |
Definition at line 446 of file InputSource.h.
Referenced by maxLuminosityBlocks(), and repeat().
|
private |
Definition at line 449 of file InputSource.h.
Referenced by InputSource(), and lumiLimitReached().
|
private |
Definition at line 452 of file InputSource.h.
Referenced by moduleDescription().
|
mutableprivate |
Definition at line 461 of file InputSource.h.
Referenced by newLumi(), resetLuminosityBlockAuxiliary(), resetNewLumi(), resetRunAuxiliary(), setLuminosityBlockAuxiliary(), setNewLumi(), and setRunAuxiliary().
|
mutableprivate |
Definition at line 460 of file InputSource.h.
Referenced by newRun(), resetNewRun(), resetRunAuxiliary(), setNewRun(), and setRunAuxiliary().
|
private |
Definition at line 468 of file InputSource.h.
signalslot::Signal<void(StreamContext const&, ModuleCallingContext const&)> edm::InputSource::postEventReadFromSourceSignal_ |
Definition at line 351 of file InputSource.h.
signalslot::Signal<void(StreamContext const&, ModuleCallingContext const&)> edm::InputSource::preEventReadFromSourceSignal_ |
Definition at line 350 of file InputSource.h.
|
private |
Definition at line 456 of file InputSource.h.
Referenced by processBlockHelper().
|
private |
Definition at line 458 of file InputSource.h.
Referenced by processGUID().
|
private |
Definition at line 454 of file InputSource.h.
Referenced by processHistoryRegistry(), processHistoryRegistryForUpdate(), and reducedProcessHistoryID().
|
private |
Definition at line 451 of file InputSource.h.
Referenced by InputSource(), and processingMode().
|
private |
Definition at line 450 of file InputSource.h.
Referenced by InputSource(), and lumiLimitReached().
|
private |
Definition at line 453 of file InputSource.h.
Referenced by productRegistry(), productRegistryUpdate(), and switchTo().
|
private |
Definition at line 448 of file InputSource.h.
Referenced by issueReports(), and readEvent().
|
private |
Definition at line 445 of file InputSource.h.
Referenced by decreaseRemainingEventsBy(), eventLimitReached(), readEvent(), remainingEvents(), repeat(), and rewind().
|
private |
Definition at line 447 of file InputSource.h.
Referenced by lumiLimitReached(), readAndMergeLumi(), readLuminosityBlock(), remainingLuminosityBlocks(), and repeat().
|
mutableprivate |
Definition at line 464 of file InputSource.h.
Referenced by nextItemType(), resetRunAuxiliary(), runAuxiliary(), and setRunAuxiliary().
|
mutableprivate |
Definition at line 463 of file InputSource.h.
Referenced by nextItemType(), readEvent(), readFile(), reset(), rewind(), and state().
|
private |
Definition at line 466 of file InputSource.h.
Referenced by InputSource(), and issueReports().
|
private |
Definition at line 457 of file InputSource.h.
Referenced by thinnedAssociationsHelper().
|
private |
Definition at line 459 of file InputSource.h.
Referenced by setTimestamp(), and timestamp().