#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 } |
enum | ProcessingMode { Runs, RunsAndLumis, RunsLumisAndEvents } |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Member Functions | |
boost::shared_ptr < ActivityRegistry > | actReg () const |
Accessor for Activity Registry. More... | |
void | closeFile (boost::shared_ptr< FileBlock >) |
close current file More... | |
void | doBeginJob () |
Called by framework at beginning of job. More... | |
void | doBeginLumi (LuminosityBlockPrincipal &lbp) |
Called by framework at beginning of lumi block. More... | |
void | doBeginRun (RunPrincipal &rp) |
Called by framework at beginning of run. More... | |
void | doEndJob () |
Called by framework at end of job. More... | |
void | doEndLumi (LuminosityBlockPrincipal &lbp) |
Called by framework at end of lumi block. More... | |
void | doEndRun (RunPrincipal &rp) |
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... | |
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 | markLumi () |
Mark lumi as read. More... | |
int | markRun () |
Mark run as read. More... | |
int | maxEvents () const |
int | maxLuminosityBlocks () const |
ModuleDescription const & | moduleDescription () const |
Accessor for 'module' description. More... | |
ItemType | nextItemType () |
bool const | 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... | |
ProcessHistoryID const & | processHistoryID () const |
Accessor for the input process history ID of the current run. 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 | readAndCacheLumi () |
Read next luminosity block. More... | |
void | readAndCacheRun () |
Read next run. More... | |
EventPrincipal * | readEvent (boost::shared_ptr< LuminosityBlockPrincipal > lbCache) |
EventPrincipal * | readEvent (EventID const &) |
Read a specific event. More... | |
boost::shared_ptr< FileBlock > | readFile () |
Read next file. More... | |
boost::shared_ptr < LuminosityBlockAuxiliary > | readLuminosityBlockAuxiliary () |
Read next luminosity block Auxilary. More... | |
boost::shared_ptr< RunAuxiliary > | readRunAuxiliary () |
Read next run Auxiliary. More... | |
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... | |
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) |
Timestamp const & | timestamp () const |
Accessor for the current time, as seen by the input source. More... | |
void | wakeUp () |
Wake up 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) |
Protected Member Functions | |
void | decreaseRemainingEventsBy (int iSkipped) |
EventPrincipal *const | eventPrincipalCache () |
boost::shared_ptr < LuminosityBlockPrincipal > const | luminosityBlockPrincipal () const |
PrincipalCache const & | principalCache () const |
PrincipalCache & | principalCache () |
ProductRegistry & | productRegistryUpdate () const |
void | reset () const |
void | resetLuminosityBlockAuxiliary () const |
void | resetRunAuxiliary () const |
boost::shared_ptr < RunPrincipal > const | runPrincipal () const |
void | setLuminosityBlockAuxiliary (LuminosityBlockAuxiliary *lbp) |
void | setLumiPrematurelyRead () |
void | setRunAuxiliary (RunAuxiliary *rp) |
void | setRunPrematurelyRead () |
void | setTimestamp (Timestamp const &theTime) |
To set the current time, as seen by the input source. More... | |
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 >) |
void | postRead (Event &event) |
virtual void | preForkReleaseResources () |
virtual bool | randomAccess_ () const |
virtual EventPrincipal * | readEvent_ ()=0 |
virtual boost::shared_ptr < FileBlock > | readFile_ () |
virtual EventPrincipal * | readIt (EventID const &) |
virtual boost::shared_ptr < LuminosityBlockPrincipal > | readLuminosityBlock_ (boost::shared_ptr< LuminosityBlockPrincipal > lbCache) |
virtual boost::shared_ptr < LuminosityBlockAuxiliary > | readLuminosityBlockAuxiliary_ ()=0 |
virtual boost::shared_ptr < RunPrincipal > | readRun_ (boost::shared_ptr< RunPrincipal > rpCache) |
virtual boost::shared_ptr < RunAuxiliary > | readRunAuxiliary_ ()=0 |
virtual ProcessingController::ReverseState | reverseState_ () const |
virtual void | rewind_ () |
virtual void | setLumi (LuminosityBlockNumber_t lb) |
virtual void | setRun (RunNumber_t r) |
virtual void | skip (int) |
virtual void | wakeUp_ () |
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_ |
bool | doneReadAhead_ |
boost::shared_ptr < LuminosityBlockAuxiliary > | lumiAuxiliary_ |
bool | lumiPrematurelyRead_ |
int | maxEvents_ |
int | maxLumis_ |
ModuleDescription const | moduleDescription_ |
bool const | primary_ |
PrincipalCache * | principalCache_ |
std::string | processGUID_ |
ProcessingMode | processingMode_ |
boost::shared_ptr < ProductRegistry const > | productRegistry_ |
int | readCount_ |
int | remainingEvents_ |
int | remainingLumis_ |
boost::shared_ptr< RunAuxiliary > | runAuxiliary_ |
bool | runPrematurelyRead_ |
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 67 of file InputSource.h.
Definition at line 85 of file InputSource.h.
Enumerator | |
---|---|
IsInvalid | |
IsStop | |
IsFile | |
IsRun | |
IsLumi | |
IsEvent | |
IsRepeat |
Definition at line 69 of file InputSource.h.
Enumerator | |
---|---|
Runs | |
RunsAndLumis | |
RunsLumisAndEvents |
Definition at line 79 of file InputSource.h.
|
explicit |
Constructor.
Definition at line 74 of file InputSource.cc.
References edm::errors::Configuration, edm::hlt::Exception, edm::ParameterSet::getUntrackedParameter(), primary_, processingMode(), processingMode_, edm::InputSourceDescription::productRegistry_, Runs, RunsAndLumis, and statusFileName_.
|
virtual |
|
inline |
|
static |
Definition at line 141 of file InputSource.cc.
References edm::kBaseType().
|
privatevirtual |
Reimplemented in EcalSimpleSource.
Definition at line 549 of file InputSource.cc.
Referenced by doBeginJob().
|
privatevirtual |
Reimplemented in ErrorStreamSource, and edm::ConfigurableInputSource.
Definition at line 537 of file InputSource.cc.
Referenced by doBeginLumi().
|
privatevirtual |
Reimplemented in ErrorStreamSource, MCatNLOSource, edm::ConfigurableInputSource, AlpgenSource, and LHESource.
Definition at line 543 of file InputSource.cc.
Referenced by doBeginRun().
void InputSource::closeFile | ( | boost::shared_ptr< FileBlock > | fb | ) |
close current file
Definition at line 260 of file InputSource.cc.
References closeFile_().
Referenced by python.Vispa.Main.Application.Application::tabCloseRequest().
|
inlineprivatevirtual |
Reimplemented in DQMRootSource, and edm::PoolSource.
Definition at line 342 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 472 of file InputSource.cc.
References remainingEvents_.
Referenced by edm::PoolSource::getNextItemType(), edm::PoolSource::postForkReacquireResources(), edm::ConfigurableInputSource::rewind_(), and edm::ConfigurableInputSource::setRunAndEventInfo().
void InputSource::doBeginJob | ( | ) |
Called by framework at beginning of job.
Definition at line 232 of file InputSource.cc.
References beginJob().
void InputSource::doBeginLumi | ( | LuminosityBlockPrincipal & | lbp | ) |
Called by framework at beginning of lumi block.
Definition at line 508 of file InputSource.cc.
References beginLuminosityBlock(), edm::LuminosityBlock::commit_(), and moduleDescription().
void InputSource::doBeginRun | ( | RunPrincipal & | rp | ) |
Called by framework at beginning of run.
Definition at line 492 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 237 of file InputSource.cc.
References endJob().
Referenced by edm::PileUp::endJob(), and edm::EventProcessor::endJob().
void InputSource::doEndLumi | ( | LuminosityBlockPrincipal & | lbp | ) |
Called by framework at end of lumi block.
Definition at line 515 of file InputSource.cc.
References edm::LuminosityBlock::commit_(), endLuminosityBlock(), lumiPrematurelyRead_, moduleDescription(), edm::LuminosityBlockPrincipal::setEndTime(), and time_.
void InputSource::doEndRun | ( | RunPrincipal & | rp | ) |
Called by framework at end of run.
Definition at line 499 of file InputSource.cc.
References edm::Run::commit_(), endRun(), moduleDescription(), run(), runPrematurelyRead_, edm::RunPrincipal::setEndTime(), and time_.
void InputSource::doPostForkReacquireResources | ( | boost::shared_ptr< multicore::MessageReceiverForSource > | iReceiver | ) |
Definition at line 529 of file InputSource.cc.
References postForkReacquireResources().
void InputSource::doPreForkReleaseResources | ( | ) |
Called by the framework before forking the process.
Definition at line 524 of file InputSource.cc.
References preForkReleaseResources().
|
privatevirtual |
Reimplemented in MCatNLOSource, edm::PoolSource, and LHESource.
Definition at line 552 of file InputSource.cc.
Referenced by doEndJob().
|
privatevirtual |
Reimplemented in DQMRootSource, ErrorStreamSource, and edm::ConfigurableInputSource.
Definition at line 540 of file InputSource.cc.
Referenced by doEndLumi().
|
privatevirtual |
Reimplemented in DQMRootSource, ErrorStreamSource, edm::ConfigurableInputSource, LHESource, and edm::CosMuoGenSource.
Definition at line 546 of file InputSource.cc.
Referenced by doEndRun().
|
inlineprivate |
Definition at line 329 of file InputSource.h.
References remainingEvents_.
Referenced by limitReached(), nextItemType(), and readEvent().
|
protected |
Definition at line 156 of file InputSource.cc.
References edm::PrincipalCache::eventPrincipal(), and principalCache().
Referenced by edm::StreamerInputSource::deserializeEvent(), edm::DaqSource::getNextItemType(), edm::RawInputSource::makeEvent(), edm::RawInputSource::readEvent_(), edm::PoolSource::readEvent_(), edm::DaqSource::readEvent_(), edm::ConfigurableInputSource::readEvent_(), edm::StreamerInputSource::readEvent_(), and edm::ConfigurableInputSource::reallyReadEvent().
|
static |
Definition at line 146 of file InputSource.cc.
References edm::ParameterSetDescription::addUntracked().
Referenced by edm::ConfigurableInputSource::fillDescription(), edm::StreamerInputSource::fillDescription(), and edm::EDInputSource::fillDescription().
|
static |
Definition at line 132 of file InputSource.cc.
References edm::ConfigurationDescriptions::addDefault(), and edm::ParameterSetDescription::setUnknown().
|
inline |
Definition at line 245 of file InputSource.h.
References forwardState_().
|
privatevirtual |
Reimplemented in edm::PoolSource.
Definition at line 566 of file InputSource.cc.
References edm::ProcessingController::kUnknownForward.
Referenced by forwardState().
|
privatepure virtual |
Implemented in DQMRootSource, edm::StreamerInputSource, edm::DaqSource, edm::ConfigurableInputSource, edm::PoolSource, and edm::RawInputSource.
Referenced by nextItemType_().
bool InputSource::goToEvent | ( | EventID const & | eventID | ) |
Definition at line 398 of file InputSource.cc.
References doneReadAhead_, and goToEvent_().
|
privatevirtual |
Reimplemented in edm::PoolSource.
Definition at line 454 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 404 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 331 of file InputSource.h.
References eventLimitReached(), and lumiLimitReached().
Referenced by markLumi(), markRun(), readEvent(), and readFile().
|
inlineprivate |
Definition at line 330 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 588 of file InputSource.cc.
References luminosityBlockAuxiliary().
Referenced by Types.EventID::cppID(), Types.LuminosityBlockID::cppID(), edm::StreamerInputSource::deserializeEvent(), edm::DaqSource::getNextItemType(), and edm::PoolSource::readIt().
|
inline |
Called by the framework to merge or insert lumi in principal cache.
Definition at line 242 of file InputSource.h.
References lumiAuxiliary_.
Referenced by edm::StreamerInputSource::deserializeEvent(), edm::DaqSource::getNextItemType(), edm::StreamerInputSource::getNextItemType(), luminosityBlock(), edm::RawInputSource::makeEvent(), markLumi(), readAndCacheLumi(), edm::DaqSource::readLuminosityBlockAuxiliary_(), and edm::StreamerInputSource::readLuminosityBlockAuxiliary_().
|
protected |
Definition at line 280 of file InputSource.cc.
References edm::PrincipalCache::lumiPrincipalPtr(), and principalCache_.
Referenced by edm::StreamerInputSource::deserializeEvent(), edm::DaqSource::getNextItemType(), edm::RawInputSource::makeEvent(), edm::PoolSource::readEvent_(), and edm::ConfigurableInputSource::reallyReadEvent().
int InputSource::markLumi | ( | ) |
Mark lumi as read.
Definition at line 328 of file InputSource.cc.
References doneReadAhead_, IsLumi, limitReached(), edm::LuminosityBlockPrincipal::luminosityBlock(), luminosityBlockAuxiliary(), edm::PrincipalCache::lumiPrincipal(), principalCache_, remainingLumis_, and state_.
int InputSource::markRun | ( | ) |
Mark run as read.
Definition at line 300 of file InputSource.cc.
References doneReadAhead_, IsRun, limitReached(), principalCache_, edm::RunPrincipal::run(), edm::PrincipalCache::runPrincipal(), and state_.
|
inline |
Accessor for maximum number of events to be read. -1 is used for unlimited.
Definition at line 172 of file InputSource.h.
References maxEvents_.
Referenced by edm::H2RootNtplSource::H2RootNtplSource().
|
inline |
Accessor for maximum number of lumis to be read. -1 is used for unlimited.
Definition at line 180 of file InputSource.h.
References maxLumis_.
|
inline |
Accessor for 'module' description.
Definition at line 187 of file InputSource.h.
References moduleDescription_.
Referenced by doBeginLumi(), doBeginRun(), doEndLumi(), doEndRun(), edm::DaqSource::getNextItemType(), edm::RawInputSource::makeEvent(), processConfiguration(), readEvent(), edm::ConfigurableInputSource::reallyReadEvent(), and registerProducts().
InputSource::ItemType InputSource::nextItemType | ( | ) |
Definition at line 183 of file InputSource.cc.
References doneReadAhead_, eventLimitReached(), IsEvent, IsFile, IsInvalid, IsLumi, IsRun, IsStop, lumiAuxiliary_, lumiLimitReached(), nextItemType_(), processingMode(), readLuminosityBlockAuxiliary(), readRunAuxiliary(), runAuxiliary_, Runs, RunsLumisAndEvents, and state_.
|
private |
Definition at line 169 of file InputSource.cc.
References getNextItemType(), IsEvent, IsLumi, processingMode(), readEvent_(), Runs, and RunsLumisAndEvents.
Referenced by nextItemType().
|
privatevirtual |
|
private |
Definition at line 484 of file InputSource.cc.
References edm::Service< T >::isAvailable().
Referenced by readEvent().
|
privatevirtual |
Reimplemented in edm::PoolSource.
Definition at line 555 of file InputSource.cc.
Referenced by doPreForkReleaseResources().
|
inline |
Accessor for primary input source flag.
Definition at line 193 of file InputSource.h.
References primary_.
Referenced by edm::RootInputFileSequence::primary().
|
inlineprotected |
Definition at line 316 of file InputSource.h.
References principalCache_.
Referenced by edm::StreamerInputSource::deserializeAndMergeWithRegistry(), eventPrincipalCache(), edm::PoolSource::getNextItemType(), edm::PoolSource::goToEvent_(), edm::PoolSource::postForkReacquireResources(), edm::PoolSource::readFile_(), edm::PoolSource::rewind_(), and edm::PoolSource::skip().
|
inlineprotected |
|
inline |
Accessor for Process Configuration.
Definition at line 190 of file InputSource.h.
References moduleDescription(), and edm::ModuleDescription::processConfiguration().
Referenced by edm::RootInputFileSequence::processConfiguration(), readAndCacheLumi(), readAndCacheRun(), edm::PoolSource::readLuminosityBlock_(), and edm::PoolSource::readRun_().
|
inline |
Accessor for global process identifier.
Definition at line 196 of file InputSource.h.
References processGUID_.
Referenced by edm::DaqSource::getNextItemType(), edm::RawInputSource::makeEvent(), and edm::ConfigurableInputSource::reallyReadEvent().
ProcessHistoryID const & InputSource::processHistoryID | ( | ) | const |
Accessor for the input process history ID of the current run.
Definition at line 576 of file InputSource.cc.
References runAuxiliary().
|
inline |
RunsLumisAndEvents (default), RunsAndLumis, or Runs.
Definition at line 233 of file InputSource.h.
References processingMode_.
Referenced by edm::ConfigurableInputSource::getNextItemType(), edm::RootInputFileSequence::initFile(), InputSource(), nextItemType(), nextItemType_(), edm::ConfigurableInputSource::readEvent_(), edm::ConfigurableInputSource::readLuminosityBlockAuxiliary_(), and edm::ConfigurableInputSource::reallyReadEvent().
|
inline |
Accessor for product registry.
Definition at line 161 of file InputSource.h.
References productRegistry_.
Referenced by edm::StreamerInputSource::deserializeAndMergeWithRegistry(), and edm::RootInputFileSequence::productRegistry().
|
inlineprotected |
Definition at line 299 of file InputSource.h.
Referenced by edm::StreamerInputSource::deserializeAndMergeWithRegistry(), edm::PoolSource::PoolSource(), edm::RootInputFileSequence::productRegistryUpdate(), and registerProducts().
|
inline |
|
privatevirtual |
Reimplemented in edm::PoolSource.
Definition at line 561 of file InputSource.cc.
Referenced by randomAccess().
void InputSource::readAndCacheLumi | ( | ) |
Read next luminosity block.
Definition at line 309 of file InputSource.cc.
References edm::PrincipalCache::insert(), luminosityBlockAuxiliary(), lumiPrematurelyRead_, edm::PrincipalCache::lumiPrincipalPtr(), edm::PrincipalCache::merge(), principalCache_, processConfiguration(), productRegistry_, readLuminosityBlock_(), and edm::PrincipalCache::runPrincipalPtr().
Referenced by edm::StreamerInputSource::deserializeEvent(), edm::DaqSource::getNextItemType(), and edm::RawInputSource::makeEvent().
void InputSource::readAndCacheRun | ( | ) |
Read next run.
Definition at line 285 of file InputSource.cc.
References edm::PrincipalCache::insert(), edm::PrincipalCache::merge(), principalCache_, processConfiguration(), productRegistry_, readRun_(), runAuxiliary(), runPrematurelyRead_, and edm::PrincipalCache::runPrincipalPtr().
Referenced by edm::StreamerInputSource::deserializeEvent(), and edm::RawInputSource::makeEvent().
EventPrincipal * InputSource::readEvent | ( | boost::shared_ptr< LuminosityBlockPrincipal > | lbCache | ) |
Read next event Indicate inability to get a new event by returning a null ptr.
Definition at line 354 of file InputSource.cc.
References doneReadAhead_, event(), eventLimitReached(), edm::EventPrincipal::id(), IsEvent, issueReports(), edm::EventPrincipal::luminosityBlock(), moduleDescription(), postRead(), readCount_, readEvent_(), remainingEvents_, query::result, edm::EventPrincipal::run(), setTimestamp(), state_, and edm::EventPrincipal::time().
EventPrincipal * InputSource::readEvent | ( | EventID const & | eventID | ) |
Read a specific event.
Definition at line 375 of file InputSource.cc.
References event(), edm::EventPrincipal::id(), issueReports(), limitReached(), moduleDescription(), postRead(), readCount_, readIt(), remainingEvents_, and query::result.
|
privatepure virtual |
Implemented in DQMRootSource, edm::StreamerInputSource, edm::ConfigurableInputSource, edm::DaqSource, edm::PoolSource, and edm::RawInputSource.
Referenced by nextItemType_(), and readEvent().
boost::shared_ptr< FileBlock > InputSource::readFile | ( | ) |
Read next file.
Definition at line 250 of file InputSource.cc.
References doneReadAhead_, benchmark_cfg::fb, IsFile, limitReached(), readFile_(), and state_.
Referenced by python.Vispa.Plugins.EventBrowser.EventBrowserTabController.EventBrowserTabController::navigate(), python.Vispa.Main.TabController.TabController::open(), and python.Vispa.Main.TabController.TabController::refresh().
|
privatevirtual |
Reimplemented in DQMRootSource, edm::StreamerInputSource, and edm::PoolSource.
Definition at line 270 of file InputSource.cc.
Referenced by readFile().
|
privatevirtual |
Reimplemented in edm::DaqSource, edm::PoolSource, and edm::RawInputSource.
Definition at line 422 of file InputSource.cc.
References edm::hlt::Exception, and edm::errors::LogicError.
Referenced by readEvent().
|
privatevirtual |
Reimplemented in DQMRootSource, and edm::PoolSource.
Definition at line 348 of file InputSource.cc.
Referenced by readAndCacheLumi().
|
inline |
Read next luminosity block Auxilary.
Definition at line 106 of file InputSource.h.
References readLuminosityBlockAuxiliary_().
Referenced by nextItemType().
|
privatepure virtual |
Implemented in DQMRootSource, edm::StreamerInputSource, edm::ConfigurableInputSource, edm::DaqSource, edm::PoolSource, and edm::RawInputSource.
Referenced by readLuminosityBlockAuxiliary().
|
privatevirtual |
Reimplemented in DQMRootSource, and edm::PoolSource.
Definition at line 339 of file InputSource.cc.
Referenced by readAndCacheRun().
|
inline |
Read next run Auxiliary.
Definition at line 111 of file InputSource.h.
References readRunAuxiliary_().
Referenced by nextItemType().
|
privatepure virtual |
Implemented in DQMRootSource, edm::StreamerInputSource, edm::ConfigurableInputSource, edm::DaqSource, edm::PoolSource, and edm::RawInputSource.
Referenced by readRunAuxiliary().
void InputSource::registerProducts | ( | ) |
Register any produced products.
Definition at line 242 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 176 of file InputSource.h.
References remainingEvents_.
Referenced by edm::FlatRandomEGunSource::FlatRandomEGunSource(), edm::FlatRandomEThetaGunSource::FlatRandomEThetaGunSource(), edm::FlatRandomPtThetaGunSource::FlatRandomPtThetaGunSource(), edm::PoolSource::getNextItemType(), edm::RootInputFileSequence::remainingEvents(), and edm::ConfigurableInputSource::setRunAndEventInfo().
|
inline |
Accessor for remaining number of lumis to be read. -1 is used for unlimited.
Definition at line 184 of file InputSource.h.
References remainingLumis_.
Referenced by edm::RootInputFileSequence::remainingLuminosityBlocks(), and edm::ConfigurableInputSource::setRunAndEventInfo().
|
inline |
Reset the remaining number of events/lumis to the maximum number.
Definition at line 164 of file InputSource.h.
References doneReadAhead_, maxEvents_, maxLumis_, remainingEvents_, and remainingLumis_.
Referenced by edm::ConfigurableInputSource::postForkReacquireResources().
|
inlineprotected |
Definition at line 309 of file InputSource.h.
References doneReadAhead_, IsInvalid, resetLuminosityBlockAuxiliary(), resetRunAuxiliary(), and state_.
Referenced by edm::StreamerInputSource::resetAfterEndRun(), and edm::DaqSource::setRun().
|
inlineprotected |
Definition at line 306 of file InputSource.h.
References lumiAuxiliary_.
Referenced by edm::DaqSource::getNextItemType(), edm::StreamerInputSource::getNextItemType(), reset(), edm::StreamerInputSource::resetAfterEndRun(), and edm::DaqSource::setRun().
|
inlineprotected |
Definition at line 303 of file InputSource.h.
References runAuxiliary_.
Referenced by edm::StreamerInputSource::getNextItemType(), reset(), and edm::StreamerInputSource::resetAfterEndRun().
|
inline |
Definition at line 246 of file InputSource.h.
References reverseState_().
|
privatevirtual |
Reimplemented in edm::PoolSource.
Definition at line 571 of file InputSource.cc.
References edm::ProcessingController::kUnknownReverse.
Referenced by reverseState().
|
inline |
Begin again at the first event.
Definition at line 138 of file InputSource.h.
References doneReadAhead_, IsInvalid, maxEvents_, remainingEvents_, rewind_(), and state_.
Referenced by edm::PoolSource::postForkReacquireResources(), and edm::ConfigurableInputSource::postForkReacquireResources().
|
privatevirtual |
Reimplemented in edm::ConfigurableInputSource, and edm::PoolSource.
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 582 of file InputSource.cc.
References runAuxiliary().
Referenced by Types.LuminosityBlockID::cppID(), edm::StreamerInputSource::deserializeEvent(), doBeginRun(), doEndRun(), and edm::PoolSource::readIt().
|
inline |
Called by the framework to merge or insert run in principal cache.
Definition at line 239 of file InputSource.h.
References runAuxiliary_.
Referenced by edm::StreamerInputSource::deserializeEvent(), edm::StreamerInputSource::getNextItemType(), edm::RawInputSource::makeEvent(), processHistoryID(), readAndCacheRun(), edm::StreamerInputSource::readRunAuxiliary_(), and run().
|
protected |
Definition at line 275 of file InputSource.cc.
References principalCache_, and edm::PrincipalCache::runPrincipalPtr().
|
privatevirtual |
Reimplemented in edm::ConfigurableInputSource, edm::DaqSource, and edm::EDInputSource.
Definition at line 438 of file InputSource.cc.
References edm::hlt::Exception, and edm::errors::LogicError.
Referenced by setLuminosityBlockNumber_t().
|
inlineprotected |
Definition at line 302 of file InputSource.h.
References lumiAuxiliary_.
Referenced by edm::StreamerInputSource::deserializeEvent(), edm::DaqSource::getNextItemType(), and edm::RawInputSource::makeEvent().
|
inline |
Set the luminosity block ID.
Definition at line 152 of file InputSource.h.
References setLumi().
Referenced by cond::EmptyIOVSource::setRunAndEventInfo(), and LmfSource::setRunAndEventInfo().
|
inlineprotected |
Definition at line 322 of file InputSource.h.
References lumiPrematurelyRead_.
Referenced by edm::StreamerInputSource::deserializeEvent(), edm::DaqSource::getNextItemType(), and edm::RawInputSource::makeEvent().
|
privatevirtual |
Reimplemented in edm::StreamerInputSource, edm::ConfigurableInputSource, edm::DaqSource, and edm::EDInputSource.
Definition at line 430 of file InputSource.cc.
References edm::hlt::Exception, and edm::errors::LogicError.
Referenced by setRunNumber().
|
inlineprotected |
Definition at line 301 of file InputSource.h.
References runAuxiliary_.
Referenced by edm::StreamerInputSource::deserializeEvent(), and edm::RawInputSource::makeEvent().
|
inline |
Set the run number.
Definition at line 149 of file InputSource.h.
References setRun().
Referenced by PixelSLinkDataInputSource::PixelSLinkDataInputSource(), cond::EmptyIOVSource::setRunAndEventInfo(), HcalTBSource::setRunAndEventInfo(), LmfSource::setRunAndEventInfo(), ErrorStreamSource::setRunAndEventInfo(), and L1MuGMTHWFileReader::setRunAndEventInfo().
|
inlineprotected |
Definition at line 321 of file InputSource.h.
References runPrematurelyRead_.
Referenced by edm::StreamerInputSource::deserializeEvent(), and edm::RawInputSource::makeEvent().
|
inlineprotected |
To set the current time, as seen by the input source.
Definition at line 297 of file InputSource.h.
References time_.
Referenced by edm::ConfigurableInputSource::ConfigurableInputSource(), edm::DaqSource::DaqSource(), edm::DaqSource::getNextItemType(), edm::RawInputSource::RawInputSource(), and readEvent().
|
privatevirtual |
Reimplemented in edm::ConfigurableInputSource, edm::DaqSource, edm::PoolSource, and edm::RawInputSource.
Definition at line 446 of file InputSource.cc.
References edm::hlt::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 392 of file InputSource.cc.
References doneReadAhead_, and skip().
|
inlineprotected |
Definition at line 300 of file InputSource.h.
References state_.
Referenced by edm::RawInputSource::getNextItemType().
|
inline |
Accessor for the current time, as seen by the input source.
Definition at line 221 of file InputSource.h.
References time_.
Referenced by edm::DaqSource::getNextItemType(), edm::RawInputSource::readLuminosityBlockAuxiliary_(), edm::RawInputSource::readRunAuxiliary_(), and edm::DaqSource::readRunAuxiliary_().
|
inline |
|
privatevirtual |
|
private |
Definition at line 364 of file InputSource.h.
Referenced by actReg().
|
mutableprivate |
Definition at line 377 of file InputSource.h.
Referenced by goToEvent(), markLumi(), markRun(), nextItemType(), readEvent(), readFile(), repeat(), reset(), rewind(), and skipEvents().
|
mutableprivate |
Definition at line 380 of file InputSource.h.
Referenced by luminosityBlockAuxiliary(), nextItemType(), resetLuminosityBlockAuxiliary(), and setLuminosityBlockAuxiliary().
|
private |
Definition at line 382 of file InputSource.h.
Referenced by doEndLumi(), readAndCacheLumi(), and setLumiPrematurelyRead().
|
private |
Definition at line 366 of file InputSource.h.
Referenced by maxEvents(), repeat(), and rewind().
|
private |
Definition at line 368 of file InputSource.h.
Referenced by maxLuminosityBlocks(), and repeat().
|
private |
Definition at line 372 of file InputSource.h.
Referenced by moduleDescription().
|
private |
Definition at line 374 of file InputSource.h.
Referenced by InputSource(), and primary().
|
private |
Definition at line 365 of file InputSource.h.
Referenced by luminosityBlockPrincipal(), markLumi(), markRun(), principalCache(), readAndCacheLumi(), readAndCacheRun(), and runPrincipal().
|
private |
Definition at line 375 of file InputSource.h.
Referenced by processGUID().
|
private |
Definition at line 371 of file InputSource.h.
Referenced by InputSource(), and processingMode().
|
private |
Definition at line 373 of file InputSource.h.
Referenced by productRegistry(), readAndCacheLumi(), and readAndCacheRun().
|
private |
Definition at line 370 of file InputSource.h.
Referenced by issueReports(), and readEvent().
|
private |
Definition at line 367 of file InputSource.h.
Referenced by decreaseRemainingEventsBy(), eventLimitReached(), readEvent(), remainingEvents(), repeat(), and rewind().
|
private |
Definition at line 369 of file InputSource.h.
Referenced by lumiLimitReached(), markLumi(), remainingLuminosityBlocks(), and repeat().
|
mutableprivate |
Definition at line 379 of file InputSource.h.
Referenced by nextItemType(), resetRunAuxiliary(), runAuxiliary(), and setRunAuxiliary().
|
private |
Definition at line 381 of file InputSource.h.
Referenced by doEndRun(), readAndCacheRun(), and setRunPrematurelyRead().
|
mutableprivate |
Definition at line 378 of file InputSource.h.
Referenced by markLumi(), markRun(), nextItemType(), readEvent(), readFile(), reset(), rewind(), and state().
|
private |
Definition at line 383 of file InputSource.h.
Referenced by InputSource(), and issueReports().
|
private |
Definition at line 376 of file InputSource.h.
Referenced by doEndLumi(), doEndRun(), setTimestamp(), and timestamp().