#include <InputSource.h>
Classes | |
class | EventSourceSentry |
class | FileCloseSentry |
class | FileOpenSentry |
class | LumiSourceSentry |
class | RunSourceSentry |
class | SourceSentry |
Public Types | |
enum | ItemType { IsInvalid, IsStop, IsFile, IsRun, IsLumi, IsEvent, IsRepeat, IsSynchronize } |
enum | ProcessingMode { Runs, RunsAndLumis, RunsLumisAndEvents } |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Member Functions | |
boost::shared_ptr < ActivityRegistry > | actReg () const |
Accessor for Activity Registry. More... | |
boost::shared_ptr < BranchIDListHelper > | branchIDListHelper () const |
Accessor for branchIDListHelper. More... | |
void | closeFile (FileBlock *, bool cleaningUpAfterException) |
close current file More... | |
void | doBeginJob () |
Called by framework at beginning of job. More... | |
void | doBeginLumi (LuminosityBlockPrincipal &lbp, ProcessContext const *) |
Called by framework at beginning of lumi block. More... | |
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 | doEndLumi (LuminosityBlockPrincipal &lbp, bool cleaningUpAfterException, ProcessContext const *) |
Called by framework at end of lumi block. More... | |
void | doEndRun (RunPrincipal &rp, bool cleaningUpAfterException, ProcessContext const *) |
Called by framework at end of run. More... | |
void | doPostForkReacquireResources (boost::shared_ptr< multicore::MessageReceiverForSource >) |
void | doPreForkReleaseResources () |
Called by the framework before forking the process. 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) |
issue an event report More... | |
LuminosityBlockNumber_t | luminosityBlock () const |
Accessor for current luminosity block number. More... | |
boost::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... | |
ItemType | nextItemType () |
Advances the source to the next item. More... | |
InputSource & | operator= (InputSource const &)=delete |
bool | primary () const |
Accessor for primary input source flag. More... | |
ProcessConfiguration const & | processConfiguration () const |
Accessor for Process Configuration. More... | |
std::string const & | processGUID () const |
Accessor for global process identifier. More... | |
ProcessHistoryRegistry const & | processHistoryRegistry () const |
Const accessor for process history registry. More... | |
ProcessHistoryRegistry & | processHistoryRegistryForUpdate () |
Non-const accessor for process history registry. More... | |
ProcessingMode | processingMode () const |
RunsLumisAndEvents (default), RunsAndLumis, or Runs. More... | |
boost::shared_ptr < ProductRegistry const > | productRegistry () const |
Accessor 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::unique_ptr< FileBlock > | readFile () |
Read next file. More... | |
void | readLuminosityBlock (LuminosityBlockPrincipal &lumiPrincipal, HistoryAppender &historyAppender) |
Read next luminosity block (new lumi) More... | |
boost::shared_ptr < LuminosityBlockAuxiliary > | readLuminosityBlockAuxiliary () |
Read next luminosity block Auxilary. More... | |
void | readRun (RunPrincipal &runPrincipal, HistoryAppender &historyAppender) |
Read next run (new run) More... | |
boost::shared_ptr< RunAuxiliary > | readRunAuxiliary () |
Read next run Auxiliary. More... | |
ProcessHistoryID const & | reducedProcessHistoryID () const |
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... | |
SharedResourcesAcquirer * | resourceSharedWithDelayedReader () const |
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... | |
boost::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) |
bool | skipForForking () |
Timestamp const & | timestamp () const |
Accessor for the current time, as seen by the input source. More... | |
virtual | ~InputSource () |
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 &) |
Protected Member Functions | |
void | decreaseRemainingEventsBy (int iSkipped) |
bool | eventCached () const |
boost::shared_ptr < LuminosityBlockPrincipal > const | luminosityBlockPrincipal () const |
bool | newLumi () const |
bool | newRun () const |
ProcessHistoryRegistry & | processHistoryRegistryUpdate () const |
ProductRegistry & | productRegistryUpdate () const |
void | reset () const |
void | resetEventCached () |
void | resetLuminosityBlockAuxiliary (bool isNewLumi=true) const |
void | resetNewLumi () |
void | resetNewRun () |
void | resetRunAuxiliary (bool isNewRun=true) const |
boost::shared_ptr < RunPrincipal > const | runPrincipal () 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) |
ItemType | state () const |
Private Member Functions | |
virtual void | beginJob () |
virtual void | beginLuminosityBlock (LuminosityBlock &) |
virtual void | beginRun (Run &) |
virtual void | closeFile_ () |
virtual void | endJob () |
virtual void | endLuminosityBlock (LuminosityBlock &) |
virtual void | endRun (Run &) |
bool | eventLimitReached () const |
virtual ProcessingController::ForwardState | forwardState_ () const |
virtual ItemType | getNextItemType ()=0 |
virtual bool | goToEvent_ (EventID const &eventID) |
bool | limitReached () const |
bool | lumiLimitReached () const |
ItemType | nextItemType_ () |
virtual void | postForkReacquireResources (boost::shared_ptr< multicore::MessageReceiverForSource >) |
virtual void | preForkReleaseResources () |
virtual bool | randomAccess_ () const |
virtual void | readEvent_ (EventPrincipal &eventPrincipal)=0 |
virtual std::unique_ptr < FileBlock > | readFile_ () |
virtual bool | readIt (EventID const &id, EventPrincipal &eventPrincipal, StreamContext &streamContext) |
virtual void | readLuminosityBlock_ (LuminosityBlockPrincipal &lumiPrincipal) |
virtual boost::shared_ptr < LuminosityBlockAuxiliary > | readLuminosityBlockAuxiliary_ ()=0 |
virtual void | readRun_ (RunPrincipal &runPrincipal) |
virtual boost::shared_ptr < RunAuxiliary > | readRunAuxiliary_ ()=0 |
virtual SharedResourcesAcquirer * | resourceSharedWithDelayedReader_ () const |
virtual ProcessingController::ReverseState | reverseState_ () const |
virtual void | rewind_ () |
virtual void | setLumi (LuminosityBlockNumber_t lb) |
virtual void | setRun (RunNumber_t r) |
Private Member Functions inherited from edm::ProductRegistryHelper | |
template<class ProductType > | |
TypeLabelItem const & | produces () |
declare what type of product will make and with which optional label More... | |
template<class ProductType > | |
TypeLabelItem const & | produces (std::string const &instanceName) |
template<typename ProductType , BranchType B> | |
TypeLabelItem const & | produces () |
template<typename ProductType , BranchType B> | |
TypeLabelItem const & | produces (std::string const &instanceName) |
TypeLabelItem const & | produces (const TypeID &id, std::string const &instanceName=std::string()) |
template<BranchType B> | |
TypeLabelItem const & | produces (const TypeID &id, std::string const &instanceName=std::string()) |
ProductRegistryHelper () | |
TypeLabelList & | typeLabelList () |
used by the fwk to register the list of products of this module More... | |
~ProductRegistryHelper () | |
Private Attributes | |
boost::shared_ptr < ActivityRegistry > | actReg_ |
boost::shared_ptr < BranchIDListHelper > | branchIDListHelper_ |
bool | eventCached_ |
boost::shared_ptr < LuminosityBlockAuxiliary > | lumiAuxiliary_ |
int | maxEvents_ |
int | maxLumis_ |
ModuleDescription const | moduleDescription_ |
bool | newLumi_ |
bool | newRun_ |
unsigned int | numberOfEventsBeforeBigSkip_ |
bool const | primary_ |
std::string | processGUID_ |
std::unique_ptr < ProcessHistoryRegistry > | processHistoryRegistry_ |
ProcessingMode | processingMode_ |
boost::shared_ptr < ProductRegistry > | productRegistry_ |
int | readCount_ |
boost::shared_ptr < edm::multicore::MessageReceiverForSource > | receiver_ |
int | remainingEvents_ |
int | remainingLumis_ |
boost::shared_ptr< RunAuxiliary > | runAuxiliary_ |
ItemType | state_ |
std::string | statusFileName_ |
Timestamp | time_ |
Additional Inherited Members | |
Private Types inherited from edm::ProductRegistryHelper | |
typedef std::list< TypeLabelItem > | TypeLabelList |
Static Private Member Functions inherited from edm::ProductRegistryHelper | |
static void | addToRegistry (TypeLabelList::const_iterator const &iBegin, TypeLabelList::const_iterator const &iEnd, ModuleDescription const &iDesc, ProductRegistry &iReg, bool iIsListener=false) |
Definition at line 75 of file InputSource.h.
Definition at line 94 of file InputSource.h.
Enumerator | |
---|---|
IsInvalid | |
IsStop | |
IsFile | |
IsRun | |
IsLumi | |
IsEvent | |
IsRepeat | |
IsSynchronize |
Definition at line 77 of file InputSource.h.
Enumerator | |
---|---|
Runs | |
RunsAndLumis | |
RunsLumisAndEvents |
Definition at line 88 of file InputSource.h.
|
explicit |
Constructor.
Definition at line 52 of file InputSource.cc.
References edm::errors::Configuration, edm::hlt::Exception, edm::ParameterSet::getUntrackedParameter(), primary_, processingMode(), processingMode_, edm::InputSourceDescription::productRegistry_, Runs, RunsAndLumis, statusFileName_, and AlCaHLTBitMon_QueryRunRegistry::string.
|
virtual |
|
delete |
|
inline |
Accessor for Activity Registry.
Definition at line 256 of file InputSource.h.
References actReg_.
Referenced by edm::InputSource::EventSourceSentry::EventSourceSentry(), edm::InputSource::FileCloseSentry::FileCloseSentry(), and edm::InputSource::FileOpenSentry::FileOpenSentry().
|
static |
Definition at line 127 of file InputSource.cc.
References edm::kBaseType().
|
privatevirtual |
Reimplemented in edm::ProducerSourceBase.
Definition at line 557 of file InputSource.cc.
Referenced by doBeginJob().
|
privatevirtual |
Reimplemented in edm::ProducerSourceBase, and FRDStreamSource.
Definition at line 545 of file InputSource.cc.
Referenced by doBeginLumi().
|
privatevirtual |
Reimplemented in MCatNLOSource, edm::ProducerSourceBase, AlpgenSource, LHESource, and FRDStreamSource.
Definition at line 551 of file InputSource.cc.
Referenced by doBeginRun().
|
inline |
Accessor for branchIDListHelper.
Definition at line 177 of file InputSource.h.
References branchIDListHelper_.
Referenced by edm::StreamerInputSource::deserializeAndMergeWithRegistry(), edm::RootInputFileSequence::initFile(), and edm::StreamerInputSource::read().
void InputSource::closeFile | ( | FileBlock * | fb, |
bool | cleaningUpAfterException | ||
) |
close current file
Definition at line 280 of file InputSource.cc.
References edm::FileBlock::close(), and closeFile_().
Referenced by edm::RawInputSource::preForkReleaseResources(), and Vispa.Main.Application.Application::tabCloseRequest().
|
inlineprivatevirtual |
Reimplemented in DQMRootSource, edm::PoolSource, edm::StreamerFileReader, and edm::StreamerInputModule< Producer >.
Definition at line 401 of file InputSource.h.
Referenced by closeFile(), dqmservices::DQMStreamerReader::openNextFile_(), dqmservices::DQMStreamerReader::prepareNextEvent(), dqmservices::DQMStreamerReader::prepareNextFile(), and dqmservices::DQMStreamerReader::~DQMStreamerReader().
|
protected |
Called by inheriting classes when running multicore when the receiver has told them to skip some events.
Definition at line 472 of file InputSource.cc.
References remainingEvents_.
Referenced by rewind(), and skipForForking().
void InputSource::doBeginJob | ( | ) |
Called by framework at beginning of job.
Definition at line 244 of file InputSource.cc.
References beginJob().
void InputSource::doBeginLumi | ( | LuminosityBlockPrincipal & | lbp, |
ProcessContext const * | processContext | ||
) |
Called by framework at beginning of lumi block.
Definition at line 500 of file InputSource.cc.
References beginLuminosityBlock(), edm::LuminosityBlock::commit_(), and moduleDescription().
void InputSource::doBeginRun | ( | RunPrincipal & | rp, |
ProcessContext const * | processContext | ||
) |
Called by framework at beginning of run.
Definition at line 484 of file InputSource.cc.
References beginRun(), edm::Run::commit_(), moduleDescription(), and run().
void InputSource::doEndJob | ( | ) |
Called by framework at end of job.
Definition at line 249 of file InputSource.cc.
References endJob().
Referenced by edm::EventProcessor::endJob().
void InputSource::doEndLumi | ( | LuminosityBlockPrincipal & | lbp, |
bool | cleaningUpAfterException, | ||
ProcessContext const * | processContext | ||
) |
Called by framework at end of lumi block.
Definition at line 507 of file InputSource.cc.
References edm::LuminosityBlock::commit_(), endLuminosityBlock(), moduleDescription(), edm::LuminosityBlockPrincipal::setComplete(), edm::LuminosityBlockPrincipal::setEndTime(), and time_.
void InputSource::doEndRun | ( | RunPrincipal & | rp, |
bool | cleaningUpAfterException, | ||
ProcessContext const * | processContext | ||
) |
Called by framework at end of run.
Definition at line 491 of file InputSource.cc.
References edm::Run::commit_(), endRun(), moduleDescription(), run(), edm::RunPrincipal::setComplete(), edm::RunPrincipal::setEndTime(), and time_.
void InputSource::doPostForkReacquireResources | ( | boost::shared_ptr< multicore::MessageReceiverForSource > | iReceiver | ) |
Definition at line 521 of file InputSource.cc.
References postForkReacquireResources().
void InputSource::doPreForkReleaseResources | ( | ) |
Called by the framework before forking the process.
Definition at line 516 of file InputSource.cc.
References preForkReleaseResources().
|
privatevirtual |
Reimplemented in MCatNLOSource, edm::PoolSource, and LHESource.
Definition at line 560 of file InputSource.cc.
Referenced by doEndJob().
|
privatevirtual |
Reimplemented in edm::ProducerSourceBase, and FRDStreamSource.
Definition at line 548 of file InputSource.cc.
Referenced by doEndLumi().
|
privatevirtual |
Reimplemented in edm::ProducerSourceBase, LHESource, and FRDStreamSource.
Definition at line 554 of file InputSource.cc.
Referenced by doEndRun().
|
inlineprotected |
Definition at line 379 of file InputSource.h.
References eventCached_.
Referenced by edm::RawInputSource::getNextItemType(), edm::ProducerSourceBase::getNextItemType(), edm::RawInputSource::readEvent_(), LHESource::readEvent_(), edm::ProducerSourceBase::readEvent_(), and edm::StreamerInputSource::resetAfterEndRun().
|
inlineprivate |
Definition at line 389 of file InputSource.h.
References remainingEvents_.
Referenced by limitReached(), nextItemType(), readEvent(), and skipForForking().
|
static |
Definition at line 132 of file InputSource.cc.
References edm::ParameterSetDescription::addUntracked(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by edm::RawInputSource::fillDescription(), edm::EDInputSource::fillDescription(), and edm::ProducerSourceBase::fillDescription().
|
static |
Definition at line 113 of file InputSource.cc.
References edm::ConfigurationDescriptions::addDefault(), and edm::ParameterSetDescription::setUnknown().
ProcessingController::ForwardState InputSource::forwardState | ( | ) | const |
Definition at line 533 of file InputSource.cc.
References forwardState_().
|
privatevirtual |
Reimplemented in edm::PoolSource.
Definition at line 579 of file InputSource.cc.
References edm::ProcessingController::kUnknownForward.
Referenced by forwardState().
|
privatepure virtual |
Implemented in DQMRootSource, edm::PoolSource, edm::ProducerSourceBase, edm::RawInputSource, and dqmservices::DQMProtobufReader.
Referenced by nextItemType_().
bool InputSource::goToEvent | ( | EventID const & | eventID | ) |
Definition at line 385 of file InputSource.cc.
References goToEvent_().
|
privatevirtual |
Reimplemented in edm::PoolSource.
Definition at line 455 of file InputSource.cc.
References edm::hlt::Exception, and edm::errors::LogicError.
Referenced by goToEvent().
void InputSource::issueReports | ( | EventID const & | eventID | ) |
issue an event report
Definition at line 405 of file InputSource.cc.
References edm::EventID::event(), edm::isInfoEnabled(), edm::EventID::luminosityBlock(), readCount_, edm::EventID::run(), statusFileName_, and createPayload::suffix.
Referenced by readEvent().
|
inlineprivate |
Definition at line 391 of file InputSource.h.
References eventLimitReached(), and lumiLimitReached().
Referenced by readEvent(), and readFile().
|
inlineprivate |
Definition at line 390 of file InputSource.h.
References remainingLumis_.
Referenced by limitReached(), and nextItemType().
LuminosityBlockNumber_t InputSource::luminosityBlock | ( | ) | const |
Accessor for current luminosity block number.
Definition at line 601 of file InputSource.cc.
References luminosityBlockAuxiliary().
Referenced by Types.EventID::cppID(), Types.LuminosityBlockID::cppID(), edm::StreamerInputSource::deserializeEvent(), FedRawDataInputSource::maybeOpenNewLumiSection(), and edm::PoolSource::readIt().
|
inline |
Called by the framework to merge or insert lumi in principal cache.
Definition at line 262 of file InputSource.h.
References lumiAuxiliary_.
Referenced by edm::StreamerInputSource::deserializeEvent(), edm::RawInputSource::getNextItemType(), luminosityBlock(), FedRawDataInputSource::maybeOpenNewLumiSection(), LHESource::readLuminosityBlock_(), and edm::RawInputSource::readLuminosityBlockAuxiliary_().
|
protected |
|
inline |
Accessor for maximum number of events to be read. -1 is used for unlimited.
Definition at line 190 of file InputSource.h.
References maxEvents_.
|
inline |
Accessor for maximum number of lumis to be read. -1 is used for unlimited.
Definition at line 198 of file InputSource.h.
References maxLumis_.
|
inline |
Accessor for 'module' description.
Definition at line 205 of file InputSource.h.
References moduleDescription_.
Referenced by doBeginLumi(), doBeginRun(), doEndLumi(), doEndRun(), processConfiguration(), edm::ProducerSourceBase::readEvent_(), and registerProducts().
|
inlineprotected |
Definition at line 376 of file InputSource.h.
References newLumi_.
Referenced by edm::RawInputSource::getNextItemType(), edm::ProducerSourceBase::getNextItemType(), edm::RawInputSource::readEvent_(), and edm::RawInputSource::readLuminosityBlockAuxiliary_().
|
inlineprotected |
Definition at line 373 of file InputSource.h.
References newRun_.
Referenced by edm::RawInputSource::getNextItemType(), edm::ProducerSourceBase::getNextItemType(), edm::RawInputSource::readEvent_(), edm::RawInputSource::readLuminosityBlockAuxiliary_(), and edm::RawInputSource::readRunAuxiliary_().
InputSource::ItemType InputSource::nextItemType | ( | ) |
Advances the source to the next item.
Definition at line 185 of file InputSource.cc.
References eventLimitReached(), IsEvent, IsFile, IsInvalid, IsLumi, IsRun, IsStop, IsSynchronize, lumiAuxiliary_, lumiLimitReached(), nextItemType_(), edmStreamStallGrapher::oldState, processingMode(), readLuminosityBlockAuxiliary(), readRunAuxiliary(), runAuxiliary_, Runs, RunsLumisAndEvents, and state_.
|
private |
Definition at line 170 of file InputSource.cc.
References getNextItemType(), IsEvent, IsLumi, processingMode(), Runs, RunsLumisAndEvents, and skipEvents().
Referenced by nextItemType().
|
delete |
|
privatevirtual |
Definition at line 566 of file InputSource.cc.
References numberOfEventsBeforeBigSkip_, receiver_, and rewind().
Referenced by doPostForkReacquireResources().
|
privatevirtual |
Reimplemented in edm::PoolSource, FedRawDataInputSource, and edm::RawInputSource.
Definition at line 563 of file InputSource.cc.
Referenced by doPreForkReleaseResources().
|
static |
Definition at line 120 of file InputSource.cc.
|
inline |
Accessor for primary input source flag.
Definition at line 211 of file InputSource.h.
References primary_.
|
inline |
Accessor for Process Configuration.
Definition at line 208 of file InputSource.h.
References moduleDescription(), and edm::ModuleDescription::processConfiguration().
Referenced by edm::RootInputFileSequence::processConfiguration(), edm::PoolSource::readLuminosityBlock_(), and edm::PoolSource::readRun_().
|
inline |
Accessor for global process identifier.
Definition at line 214 of file InputSource.h.
References processGUID_.
Referenced by FedRawDataInputSource::read(), LHESource::readEvent_(), and edm::ProducerSourceBase::readEvent_().
|
inline |
Const accessor for process history registry.
Definition at line 171 of file InputSource.h.
References processHistoryRegistry_.
Referenced by edm::RawInputSource::makeEvent(), edm::RootInputFileSequence::processHistoryRegistry(), edm::StreamerInputSource::read(), edm::ProducerSourceBase::readEvent_(), readLuminosityBlock_(), and readRun_().
|
inline |
Non-const accessor for process history registry.
Definition at line 174 of file InputSource.h.
References processHistoryRegistry_.
Referenced by FedRawDataInputSource::FedRawDataInputSource(), LHESource::LHESource(), LHESource::nextEvent(), edm::RootInputFileSequence::processHistoryRegistryForUpdate(), LHESource::readEvent_(), dqmservices::DQMProtobufReader::readLuminosityBlock_(), LHESource::readLuminosityBlock_(), DQMRootSource::readLuminosityBlock_(), dqmservices::DQMProtobufReader::readRun_(), LHESource::readRun_(), and DQMRootSource::readRun_().
|
inlineprotected |
Definition at line 348 of file InputSource.h.
References processHistoryRegistry_.
Referenced by edm::StreamerInputSource::deserializeEvent(), and DQMRootSource::setupFile().
|
inline |
RunsLumisAndEvents (default), RunsAndLumis, or Runs.
Definition at line 253 of file InputSource.h.
References processingMode_.
Referenced by edm::ProducerSourceBase::getNextItemType(), edm::RootInputFileSequence::initFile(), InputSource(), nextItemType(), nextItemType_(), LHESource::readEvent_(), edm::ProducerSourceBase::readEvent_(), and edm::ProducerSourceBase::readLuminosityBlockAuxiliary_().
|
inline |
Accessor for product registry.
Definition at line 168 of file InputSource.h.
References productRegistry_.
Referenced by edm::RootInputFileSequence::productRegistry(), and edm::StreamerInputSource::read().
|
inlineprotected |
Definition at line 347 of file InputSource.h.
References productRegistry_.
Referenced by edm::StreamerInputSource::deserializeAndMergeWithRegistry(), FedRawDataInputSource::FedRawDataInputSource(), edm::RootInputFileSequence::productRegistryUpdate(), and registerProducts().
bool InputSource::randomAccess | ( | ) | const |
|
privatevirtual |
Reimplemented in edm::PoolSource.
Definition at line 574 of file InputSource.cc.
Referenced by randomAccess().
void InputSource::readAndMergeLumi | ( | LuminosityBlockPrincipal & | lbp | ) |
Read next luminosity block (same as a prior lumi)
Definition at line 318 of file InputSource.cc.
References readLuminosityBlock_(), and remainingLumis_.
void InputSource::readAndMergeRun | ( | RunPrincipal & | rp | ) |
Read next run (same as a prior run)
Definition at line 303 of file InputSource.cc.
References readRun_().
void InputSource::readEvent | ( | EventPrincipal & | ep, |
StreamContext & | streamContext | ||
) |
Read next event.
Definition at line 340 of file InputSource.cc.
References eventLimitReached(), edm::EventPrincipal::id(), IsEvent, issueReports(), numberOfEventsBeforeBigSkip_, readCount_, readEvent_(), receiver_, remainingEvents_, setTimestamp(), state_, and edm::EventPrincipal::time().
bool InputSource::readEvent | ( | EventPrincipal & | ep, |
EventID const & | eventID, | ||
StreamContext & | streamContext | ||
) |
Read a specific event.
Definition at line 360 of file InputSource.cc.
References edm::EventPrincipal::id(), issueReports(), limitReached(), readCount_, readIt(), remainingEvents_, and query::result.
|
privatepure virtual |
Implemented in DQMRootSource, edm::ProducerSourceBase, LHESource, edm::PoolSource, edm::RawInputSource, and dqmservices::DQMProtobufReader.
Referenced by readEvent().
std::unique_ptr< FileBlock > InputSource::readFile | ( | ) |
Read next file.
Definition at line 272 of file InputSource.cc.
References IsFile, limitReached(), readFile_(), and state_.
Referenced by Vispa.Plugins.EventBrowser.EventBrowserTabController.EventBrowserTabController::navigate(), Vispa.Main.TabController.TabController::open(), and Vispa.Main.TabController.TabController::refresh().
|
privatevirtual |
Reimplemented in DQMRootSource, edm::StreamerInputSource, and edm::PoolSource.
Definition at line 292 of file InputSource.cc.
Referenced by readFile().
|
privatevirtual |
Reimplemented in edm::PoolSource.
Definition at line 423 of file InputSource.cc.
References edm::hlt::Exception, and edm::errors::LogicError.
Referenced by readEvent().
void InputSource::readLuminosityBlock | ( | LuminosityBlockPrincipal & | lumiPrincipal, |
HistoryAppender & | historyAppender | ||
) |
Read next luminosity block (new lumi)
Definition at line 309 of file InputSource.cc.
References readLuminosityBlock_(), and remainingLumis_.
|
privatevirtual |
Reimplemented in DQMRootSource, edm::PoolSource, LHESource, and dqmservices::DQMProtobufReader.
Definition at line 335 of file InputSource.cc.
References edm::LuminosityBlockPrincipal::fillLuminosityBlockPrincipal(), and processHistoryRegistry().
Referenced by readAndMergeLumi(), and readLuminosityBlock().
boost::shared_ptr< LuminosityBlockAuxiliary > InputSource::readLuminosityBlockAuxiliary | ( | ) |
Read next luminosity block Auxilary.
Definition at line 232 of file InputSource.cc.
References readLuminosityBlockAuxiliary_().
Referenced by nextItemType().
|
privatepure virtual |
Implemented in DQMRootSource, edm::ProducerSourceBase, edm::PoolSource, edm::RawInputSource, and dqmservices::DQMProtobufReader.
Referenced by readLuminosityBlockAuxiliary().
void InputSource::readRun | ( | RunPrincipal & | runPrincipal, |
HistoryAppender & | historyAppender | ||
) |
Read next run (new run)
Definition at line 297 of file InputSource.cc.
References readRun_(), and runPrincipal().
|
privatevirtual |
Reimplemented in DQMRootSource, edm::PoolSource, LHESource, and dqmservices::DQMProtobufReader.
Definition at line 327 of file InputSource.cc.
References edm::RunPrincipal::fillRunPrincipal(), and processHistoryRegistry().
Referenced by readAndMergeRun(), and readRun().
boost::shared_ptr< RunAuxiliary > InputSource::readRunAuxiliary | ( | ) |
Read next run Auxiliary.
Definition at line 238 of file InputSource.cc.
References readRunAuxiliary_().
Referenced by nextItemType().
|
privatepure virtual |
Implemented in DQMRootSource, edm::ProducerSourceBase, edm::PoolSource, edm::RawInputSource, and dqmservices::DQMProtobufReader.
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 589 of file InputSource.cc.
References processHistoryRegistry_, and runAuxiliary().
void InputSource::registerProducts | ( | ) |
Register any produced products.
Definition at line 264 of file InputSource.cc.
References edm::ProductRegistryHelper::addToRegistry(), begin, relativeConstraints::empty, end, moduleDescription(), productRegistryUpdate(), and edm::ProductRegistryHelper::typeLabelList().
|
inline |
Accessor for remaining number of events to be read. -1 is used for unlimited.
Definition at line 194 of file InputSource.h.
References remainingEvents_.
Referenced by edm::RootInputFileSequence::remainingEvents(), and skipForForking().
|
inline |
Accessor for remaining number of lumis to be read. -1 is used for unlimited.
Definition at line 202 of file InputSource.h.
References remainingLumis_.
Referenced by edm::RootInputFileSequence::remainingLuminosityBlocks(), and skipForForking().
|
inline |
Reset the remaining number of events/lumis to the maximum number.
Definition at line 180 of file InputSource.h.
References maxEvents_, maxLumis_, remainingEvents_, and remainingLumis_.
|
inlineprotected |
Definition at line 366 of file InputSource.h.
References IsInvalid, resetLuminosityBlockAuxiliary(), resetRunAuxiliary(), and state_.
Referenced by edm::StreamerInputSource::resetAfterEndRun().
|
inlineprotected |
Definition at line 382 of file InputSource.h.
References eventCached_.
Referenced by edm::RawInputSource::readEvent_(), LHESource::readEvent_(), edm::ProducerSourceBase::readEvent_(), and rewind().
|
inlineprotected |
Definition at line 362 of file InputSource.h.
References lumiAuxiliary_, and newLumi_.
Referenced by FedRawDataInputSource::checkNextEvent(), edm::StreamerInputSource::deserializeEvent(), edm::RawInputSource::getNextItemType(), FedRawDataInputSource::maybeOpenNewLumiSection(), reset(), and edm::StreamerInputSource::resetAfterEndRun().
|
inlineprotected |
Definition at line 378 of file InputSource.h.
References newLumi_.
Referenced by edm::RawInputSource::readLuminosityBlockAuxiliary_(), and edm::ProducerSourceBase::readLuminosityBlockAuxiliary_().
|
inlineprotected |
Definition at line 375 of file InputSource.h.
References newRun_.
Referenced by edm::RawInputSource::readRunAuxiliary_(), and edm::ProducerSourceBase::readRunAuxiliary_().
|
inlineprotected |
Definition at line 358 of file InputSource.h.
References newLumi_, newRun_, and runAuxiliary_.
Referenced by edm::RawInputSource::getNextItemType(), LHESource::nextEvent(), reset(), and edm::StreamerInputSource::resetAfterEndRun().
SharedResourcesAcquirer * InputSource::resourceSharedWithDelayedReader | ( | ) | const |
Returns nullptr if no resource shared between the Source and a DelayedReader.
Definition at line 254 of file InputSource.cc.
References resourceSharedWithDelayedReader_().
|
privatevirtual |
Reimplemented in edm::PoolSource.
Definition at line 259 of file InputSource.cc.
Referenced by resourceSharedWithDelayedReader().
ProcessingController::ReverseState InputSource::reverseState | ( | ) | const |
Definition at line 539 of file InputSource.cc.
References reverseState_().
|
privatevirtual |
Reimplemented in edm::PoolSource.
Definition at line 584 of file InputSource.cc.
References edm::ProcessingController::kUnknownReverse.
Referenced by reverseState().
void InputSource::rewind | ( | ) |
Begin again at the first event.
Definition at line 390 of file InputSource.cc.
References decreaseRemainingEventsBy(), IsInvalid, maxEvents_, receiver_, remainingEvents_, resetEventCached(), rewind_(), setNewLumi(), setNewRun(), skip(), and state_.
Referenced by postForkReacquireResources().
|
privatevirtual |
Reimplemented in FedRawDataInputSource, edm::ProducerSourceBase, edm::PoolSource, and edm::RawInputSource.
Definition at line 464 of file InputSource.cc.
References edm::hlt::Exception, and edm::errors::LogicError.
Referenced by rewind().
RunNumber_t InputSource::run | ( | void | ) | const |
Accessor for current run number.
Definition at line 595 of file InputSource.cc.
References runAuxiliary().
Referenced by Types.EventID::cppID(), Types.LuminosityBlockID::cppID(), edm::StreamerInputSource::deserializeEvent(), doBeginRun(), doEndRun(), edm::PoolSource::getNextItemType(), FedRawDataInputSource::maybeOpenNewLumiSection(), and edm::PoolSource::readIt().
|
inline |
Called by the framework to merge or insert run in principal cache.
Definition at line 259 of file InputSource.h.
References runAuxiliary_.
Referenced by edm::StreamerInputSource::deserializeEvent(), FedRawDataInputSource::FedRawDataInputSource(), edm::RawInputSource::getNextItemType(), FedRawDataInputSource::maybeOpenNewLumiSection(), LHESource::readRun_(), edm::RawInputSource::readRunAuxiliary_(), reducedProcessHistoryID(), and run().
|
protected |
Referenced by readRun(), and LHESource::readRun_().
|
inlineprotected |
Called by the framework to merge or ached() const {return eventCached_;}.
Definition at line 381 of file InputSource.h.
References eventCached_.
Referenced by FedRawDataInputSource::checkNextEvent(), edm::StreamerInputSource::deserializeEvent(), and edm::ProducerSourceBase::getNextItemType().
|
privatevirtual |
Definition at line 439 of file InputSource.cc.
References edm::hlt::Exception, and edm::errors::LogicError.
Referenced by setLuminosityBlockNumber_t().
|
inlineprotected |
Definition at line 354 of file InputSource.h.
References lumiAuxiliary_, and newLumi_.
Referenced by edm::StreamerInputSource::deserializeEvent(), and FedRawDataInputSource::maybeOpenNewLumiSection().
|
inline |
Set the luminosity block ID.
Definition at line 159 of file InputSource.h.
References setLumi().
|
inlineprotected |
Definition at line 377 of file InputSource.h.
References newLumi_.
Referenced by edm::ProducerSourceBase::getNextItemType(), rewind(), edm::ProducerSourceBase::rewind_(), and edm::ProducerSourceBase::skip().
|
inlineprotected |
Definition at line 374 of file InputSource.h.
References newRun_.
Referenced by FedRawDataInputSource::FedRawDataInputSource(), edm::ProducerSourceBase::getNextItemType(), rewind(), edm::ProducerSourceBase::rewind_(), and edm::ProducerSourceBase::skip().
|
privatevirtual |
Reimplemented in edm::StreamerInputSource.
Definition at line 431 of file InputSource.cc.
References edm::hlt::Exception, and edm::errors::LogicError.
Referenced by setRunNumber().
|
inlineprotected |
Definition at line 350 of file InputSource.h.
References newLumi_, newRun_, and runAuxiliary_.
Referenced by edm::StreamerInputSource::deserializeEvent(), FedRawDataInputSource::FedRawDataInputSource(), and FedRawDataInputSource::postForkReacquireResources().
|
inline |
|
inlineprotected |
To set the current time, as seen by the input source.
Definition at line 345 of file InputSource.h.
References time_.
Referenced by edm::ProducerSourceBase::ProducerSourceBase(), edm::RawInputSource::RawInputSource(), and readEvent().
|
protectedvirtual |
Reimplemented in edm::ProducerSourceBase, edm::PoolSource, dqmservices::DQMStreamerReader, and edm::StreamerFileReader.
Definition at line 447 of file InputSource.cc.
References edm::hlt::Exception, and edm::errors::LogicError.
Referenced by rewind(), and skipEvents().
void InputSource::skipEvents | ( | int | offset | ) |
Skip the number of events specified. Offset may be negative.
Definition at line 380 of file InputSource.cc.
References evf::evtn::offset(), and skip().
Referenced by nextItemType_(), and skipForForking().
bool InputSource::skipForForking | ( | ) |
Skips the correct number of events if this is a forked process returns false if we are out of events
Definition at line 142 of file InputSource.cc.
References decreaseRemainingEventsBy(), eventLimitReached(), numberOfEventsBeforeBigSkip_, or, receiver_, remainingEvents(), remainingLuminosityBlocks(), and skipEvents().
|
inlineprotected |
Definition at line 349 of file InputSource.h.
References state_.
Referenced by edm::RawInputSource::getNextItemType(), edm::ProducerSourceBase::getNextItemType(), and edm::PoolSource::getNextItemType().
|
inline |
Accessor for the current time, as seen by the input source.
Definition at line 239 of file InputSource.h.
References time_.
|
private |
Definition at line 422 of file InputSource.h.
Referenced by actReg().
|
private |
Definition at line 432 of file InputSource.h.
Referenced by branchIDListHelper().
|
private |
Definition at line 438 of file InputSource.h.
Referenced by eventCached(), resetEventCached(), and setEventCached().
|
mutableprivate |
Definition at line 441 of file InputSource.h.
Referenced by luminosityBlockAuxiliary(), nextItemType(), resetLuminosityBlockAuxiliary(), and setLuminosityBlockAuxiliary().
|
private |
Definition at line 423 of file InputSource.h.
Referenced by maxEvents(), repeat(), and rewind().
|
private |
Definition at line 425 of file InputSource.h.
Referenced by maxLuminosityBlocks(), and repeat().
|
private |
Definition at line 429 of file InputSource.h.
Referenced by moduleDescription().
|
mutableprivate |
Definition at line 437 of file InputSource.h.
Referenced by newLumi(), resetLuminosityBlockAuxiliary(), resetNewLumi(), resetRunAuxiliary(), setLuminosityBlockAuxiliary(), setNewLumi(), and setRunAuxiliary().
|
mutableprivate |
Definition at line 436 of file InputSource.h.
Referenced by newRun(), resetNewRun(), resetRunAuxiliary(), setNewRun(), and setRunAuxiliary().
|
private |
Definition at line 446 of file InputSource.h.
Referenced by postForkReacquireResources(), readEvent(), and skipForForking().
|
private |
Definition at line 433 of file InputSource.h.
Referenced by InputSource(), and primary().
|
private |
Definition at line 434 of file InputSource.h.
Referenced by processGUID().
|
private |
Definition at line 431 of file InputSource.h.
Referenced by processHistoryRegistry(), processHistoryRegistryForUpdate(), processHistoryRegistryUpdate(), and reducedProcessHistoryID().
|
private |
Definition at line 428 of file InputSource.h.
Referenced by InputSource(), and processingMode().
|
private |
Definition at line 430 of file InputSource.h.
Referenced by productRegistry(), and productRegistryUpdate().
|
private |
Definition at line 427 of file InputSource.h.
Referenced by issueReports(), and readEvent().
|
private |
Definition at line 445 of file InputSource.h.
Referenced by postForkReacquireResources(), readEvent(), rewind(), and skipForForking().
|
private |
Definition at line 424 of file InputSource.h.
Referenced by decreaseRemainingEventsBy(), eventLimitReached(), readEvent(), remainingEvents(), repeat(), and rewind().
|
private |
Definition at line 426 of file InputSource.h.
Referenced by lumiLimitReached(), readAndMergeLumi(), readLuminosityBlock(), remainingLuminosityBlocks(), and repeat().
|
mutableprivate |
Definition at line 440 of file InputSource.h.
Referenced by nextItemType(), resetRunAuxiliary(), runAuxiliary(), and setRunAuxiliary().
|
mutableprivate |
Definition at line 439 of file InputSource.h.
Referenced by nextItemType(), readEvent(), readFile(), reset(), rewind(), and state().
|
private |
Definition at line 442 of file InputSource.h.
Referenced by InputSource(), and issueReports().
|
private |
Definition at line 435 of file InputSource.h.
Referenced by doEndLumi(), doEndRun(), setTimestamp(), and timestamp().