#include <ConfigurableInputSource.h>
Public Member Functions | |
ConfigurableInputSource (ParameterSet const &pset, InputSourceDescription const &desc, bool realData=true) | |
EventNumber_t | event () const |
unsigned int | eventCreationDelay () const |
LuminosityBlockNumber_t | luminosityBlock () const |
unsigned int | numberEventsInLumi () const |
unsigned int | numberEventsInRun () const |
unsigned int | numberEventsInThisLumi () const |
unsigned int | numberEventsInThisRun () const |
TimeValue_t | presentTime () const |
RunNumber_t | run () const |
unsigned int | timeBetweenEvents () const |
virtual | ~ConfigurableInputSource () |
Public Member Functions inherited from edm::InputSource | |
boost::shared_ptr < ActivityRegistry > | actReg () const |
Accessor for Activity Registry. More... | |
void | closeFile (boost::shared_ptr< FileBlock >, bool cleaningUpAfterException) |
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, bool cleaningUpAfterException) |
Called by framework at end of lumi block. More... | |
void | doEndRun (RunPrincipal &rp, bool cleaningUpAfterException) |
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 | 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... | |
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 (bool merge, HistoryAppender &historyAppender) |
Read next luminosity block. More... | |
void | readAndCacheRun (bool merge, HistoryAppender &historyAppender) |
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... | |
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... | |
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... | |
virtual | ~InputSource () |
Destructor. More... | |
Static Public Member Functions | |
static void | fillDescription (ParameterSetDescription &desc) |
Static Public Member Functions inherited from edm::InputSource | |
static const std::string & | baseType () |
static void | fillDescription (ParameterSetDescription &desc) |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &) |
Protected Member Functions | |
void | reallyReadEvent () |
void | setEventNumber (EventNumber_t e) |
void | setTime (TimeValue_t t) |
Protected Member Functions inherited from edm::InputSource | |
void | decreaseRemainingEventsBy (int iSkipped) |
EventPrincipal * | 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 | setRunAuxiliary (RunAuxiliary *rp) |
void | setTimestamp (Timestamp const &theTime) |
To set the current time, as seen by the input source. More... | |
ItemType | state () const |
Private Member Functions | |
void | advanceToNext () |
virtual void | beginLuminosityBlock (LuminosityBlock &) |
virtual void | beginRun (Run &) |
virtual void | endLuminosityBlock (LuminosityBlock &) |
virtual void | endRun (Run &) |
virtual size_t | fileIndex () const |
virtual ItemType | getNextItemType () |
virtual void | nextEvent () |
virtual void | postForkReacquireResources (boost::shared_ptr< edm::multicore::MessageReceiverForSource >) |
virtual bool | produce (Event &e)=0 |
virtual EventPrincipal * | readEvent_ () |
virtual boost::shared_ptr < LuminosityBlockAuxiliary > | readLuminosityBlockAuxiliary_ () |
virtual boost::shared_ptr < RunAuxiliary > | readRunAuxiliary_ () |
void | retreatToPrevious () |
virtual void | rewind_ () |
virtual void | setLumi (LuminosityBlockNumber_t lb) |
virtual void | setRun (RunNumber_t r) |
virtual void | setRunAndEventInfo () |
virtual void | skip (int offset) |
Private Attributes | |
EventAuxiliary::ExperimentType | eType_ |
bool | eventCached_ |
unsigned int | eventCreationDelay_ |
EventID | eventID_ |
bool | eventSet_ |
bool | isRealData_ |
bool | lumiSet_ |
bool | newLumi_ |
bool | newRun_ |
unsigned int | numberEventsInLumi_ |
unsigned int | numberEventsInRun_ |
unsigned int | numberEventsInThisLumi_ |
unsigned int | numberEventsInThisRun_ |
unsigned int | numberOfEventsBeforeBigSkip_ |
unsigned int | numberOfSequentialEvents_ |
EventID | origEventID_ |
TimeValue_t | origTime_ |
TimeValue_t | presentTime_ |
boost::shared_ptr < edm::multicore::MessageReceiverForSource > | receiver_ |
TimeValue_t | timeBetweenEvents_ |
unsigned int const | zerothEvent_ |
Additional Inherited Members | |
Public Types inherited from edm::InputSource | |
enum | ItemType { IsInvalid, IsStop, IsFile, IsRun, IsLumi, IsEvent, IsRepeat } |
enum | ProcessingMode { Runs, RunsAndLumis, RunsLumisAndEvents } |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Definition at line 19 of file ConfigurableInputSource.h.
|
explicit |
Definition at line 20 of file ConfigurableInputSource.cc.
References presentTime_, and edm::InputSource::setTimestamp().
|
virtual |
Definition at line 50 of file ConfigurableInputSource.cc.
|
private |
Definition at line 233 of file ConfigurableInputSource.cc.
References eventID_, edm::EventID::luminosityBlock(), edm::EventID::next(), edm::EventID::nextRunFirstEvent(), numberEventsInLumi_, numberEventsInRun_, numberEventsInThisLumi_, numberEventsInThisRun_, origEventID_, presentTime_, and timeBetweenEvents_.
Referenced by setRunAndEventInfo(), and skip().
|
privatevirtual |
Reimplemented from edm::InputSource.
Reimplemented in ErrorStreamSource.
Definition at line 123 of file ConfigurableInputSource.cc.
|
privatevirtual |
Reimplemented from edm::InputSource.
Reimplemented in ErrorStreamSource, MCatNLOSource, AlpgenSource, and LHESource.
Definition at line 115 of file ConfigurableInputSource.cc.
|
privatevirtual |
Reimplemented from edm::InputSource.
Reimplemented in ErrorStreamSource.
Definition at line 127 of file ConfigurableInputSource.cc.
|
privatevirtual |
Reimplemented from edm::InputSource.
Reimplemented in ErrorStreamSource, LHESource, and edm::CosMuoGenSource.
Definition at line 119 of file ConfigurableInputSource.cc.
|
inline |
Definition at line 32 of file ConfigurableInputSource.h.
References edm::EventID::event(), and eventID_.
Referenced by edm::FlatRandomEThetaGunSource::produce(), edm::FlatRandomPtThetaGunSource::produce(), edm::MultiParticleInConeGunSource::produce(), edm::FlatRandomPtGunSource::produce(), edm::FlatRandomEGunSource::produce(), edm::ExpoRandomPtGunSource::produce(), LaserAlignmentSource::produce(), edm::BeamHaloSource::produce(), and ErrorStreamSource::produce().
|
inline |
Definition at line 28 of file ConfigurableInputSource.h.
References eventCreationDelay_.
|
inlineprivatevirtual |
Reimplemented in edm::ExternalInputSource.
Definition at line 62 of file ConfigurableInputSource.h.
Referenced by getNextItemType().
|
static |
Definition at line 299 of file ConfigurableInputSource.cc.
References edm::ParameterSetDescription::addOptionalUntracked(), edm::ParameterSetDescription::addUntracked(), edm::InputSource::fillDescription(), edm::kAveEventPerSec, and edm::kNanoSecPerSec.
Referenced by edm::ExternalInputSource::fillDescription(), and edm::EmptySource::fillDescriptions().
|
privatevirtual |
Implements edm::InputSource.
Definition at line 178 of file ConfigurableInputSource.cc.
References eventCached_, eventID_, eventSet_, fileIndex(), getHLTprescales::index, edm::InputSource::IsEvent, edm::InputSource::IsFile, edm::InputSource::IsLumi, edm::InputSource::IsRun, edm::InputSource::IsStop, edm::EventID::luminosityBlock(), lumiSet_, newLumi_, newRun_, nextEvent(), origEventID_, edm::InputSource::processingMode(), reallyReadEvent(), edm::EventID::run(), edm::InputSource::Runs, edm::EventID::setLuminosityBlockNumber(), and setRunAndEventInfo().
|
inline |
Definition at line 33 of file ConfigurableInputSource.h.
References eventID_, and edm::EventID::luminosityBlock().
Referenced by Types.EventID::cppID(), Types.LuminosityBlockID::cppID(), and setEventNumber().
|
inlineprivatevirtual |
Reimplemented in MCatNLOSource, and LHESource.
Definition at line 63 of file ConfigurableInputSource.h.
Referenced by getNextItemType().
|
inline |
Definition at line 25 of file ConfigurableInputSource.h.
References numberEventsInLumi_.
|
inline |
Definition at line 24 of file ConfigurableInputSource.h.
References numberEventsInRun_.
Referenced by edm::BeamHaloSource::BeamHaloSource(), and edm::CosMuoGenSource::CosMuoGenSource().
|
inline |
Definition at line 30 of file ConfigurableInputSource.h.
References numberEventsInThisLumi_.
|
inline |
Definition at line 29 of file ConfigurableInputSource.h.
References numberEventsInThisRun_.
|
privatevirtual |
Definition at line 146 of file ConfigurableInputSource.cc.
References numberOfEventsBeforeBigSkip_, numberOfSequentialEvents_, receiver_, edm::InputSource::repeat(), and edm::InputSource::rewind().
|
inline |
Definition at line 26 of file ConfigurableInputSource.h.
References presentTime_.
Referenced by HcalTBSource::setRunAndEventInfo().
|
privatepure virtual |
Implemented in EcalSimpleSource, L1MuGMTHWFileReader, MCatNLOSource, ErrorStreamSource, PixelSLinkDataInputSource, AlpgenSource, edm::BeamHaloSource, LaserAlignmentSource, LHESource, HcalTBSource, LmfSource, edm::MCFileSource, edm::CosMuoGenSource, edm::H2RootNtplSource, edm::ExpoRandomPtGunSource, edm::FlatRandomEGunSource, edm::FlatRandomPtGunSource, edm::MultiParticleInConeGunSource, edm::FlatRandomEThetaGunSource, edm::FlatRandomPtThetaGunSource, edm::EmptySource, and cond::EmptyIOVSource.
Referenced by JSONExport.JsonExport::export(), HTMLExport.HTMLExport::export(), HTMLExport.HTMLExportStatic::export(), and reallyReadEvent().
|
privatevirtual |
Implements edm::InputSource.
Definition at line 69 of file ConfigurableInputSource.cc.
References eventCached_, edm::InputSource::eventPrincipalCache(), edm::InputSource::processingMode(), and edm::InputSource::RunsLumisAndEvents.
|
privatevirtual |
Implements edm::InputSource.
Definition at line 61 of file ConfigurableInputSource.cc.
References eventID_, edm::Timestamp::invalidTimestamp(), edm::EventID::luminosityBlock(), newLumi_, presentTime_, edm::InputSource::processingMode(), edm::EventID::run(), and edm::InputSource::Runs.
|
privatevirtual |
Implements edm::InputSource.
Definition at line 54 of file ConfigurableInputSource.cc.
References eventID_, edm::Timestamp::invalidTimestamp(), newRun_, presentTime_, and edm::EventID::run().
|
protected |
Definition at line 76 of file ConfigurableInputSource.cc.
References printConversionInfo::aux, edm::Event::commit_(), alignCSCRings::e, eType_, eventCached_, eventID_, edm::InputSource::eventPrincipalCache(), edm::EventPrincipal::fillEventPrincipal(), isRealData_, edm::InputSource::luminosityBlockPrincipal(), edm::InputSource::moduleDescription(), presentTime_, edm::InputSource::processGUID(), edm::InputSource::processingMode(), produce(), and edm::InputSource::RunsLumisAndEvents.
Referenced by getNextItemType().
|
private |
Definition at line 255 of file ConfigurableInputSource.cc.
References eventID_, edm::EventID::luminosityBlock(), numberEventsInLumi_, numberEventsInRun_, numberEventsInThisLumi_, numberEventsInThisRun_, origEventID_, presentTime_, edm::EventID::previous(), edm::EventID::previousRunLastEvent(), edm::EventID::run(), and timeBetweenEvents_.
Referenced by skip().
|
privatevirtual |
Reimplemented from edm::InputSource.
Definition at line 156 of file ConfigurableInputSource.cc.
References edm::InputSource::decreaseRemainingEventsBy(), eventID_, newLumi_, newRun_, numberEventsInThisLumi_, numberEventsInThisRun_, numberOfEventsBeforeBigSkip_, origEventID_, origTime_, presentTime_, receiver_, and skip().
|
inline |
Definition at line 31 of file ConfigurableInputSource.h.
References eventID_, and edm::EventID::run().
Referenced by Types.LuminosityBlockID::cppID(), and setEventNumber().
|
inlineprotected |
Definition at line 38 of file ConfigurableInputSource.h.
References eventID_, eventSet_, luminosityBlock(), alignCSCRings::r, and run().
Referenced by PixelSLinkDataInputSource::produce(), cond::EmptyIOVSource::setRunAndEventInfo(), HcalTBSource::setRunAndEventInfo(), LmfSource::setRunAndEventInfo(), ErrorStreamSource::setRunAndEventInfo(), and L1MuGMTHWFileReader::setRunAndEventInfo().
|
privatevirtual |
Reimplemented from edm::InputSource.
Definition at line 131 of file ConfigurableInputSource.cc.
References eventID_, edm::EventID::luminosityBlock(), lumiSet_, newLumi_, numberEventsInThisLumi_, origEventID_, and edm::EventID::setLuminosityBlockNumber().
|
privatevirtual |
Reimplemented from edm::InputSource.
Definition at line 102 of file ConfigurableInputSource.cc.
References eventID_, edm::EventID::luminosityBlock(), newLumi_, newRun_, numberEventsInThisLumi_, numberEventsInThisRun_, origEventID_, edm::EventID::run(), and zerothEvent_.
|
privatevirtual |
Reimplemented in L1MuGMTHWFileReader, ErrorStreamSource, LmfSource, HcalTBSource, and cond::EmptyIOVSource.
Definition at line 278 of file ConfigurableInputSource.cc.
References advanceToNext(), edm::InputSource::decreaseRemainingEventsBy(), eventCreationDelay_, eventID_, numberOfEventsBeforeBigSkip_, or, receiver_, edm::InputSource::remainingEvents(), edm::InputSource::remainingLuminosityBlocks(), and skip().
Referenced by getNextItemType().
|
inlineprotected |
Definition at line 44 of file ConfigurableInputSource.h.
References presentTime_, and lumiQTWidget::t.
Referenced by ErrorStreamSource::produce(), cond::EmptyIOVSource::setRunAndEventInfo(), HcalTBSource::setRunAndEventInfo(), and LmfSource::setRunAndEventInfo().
|
privatevirtual |
Reimplemented from edm::InputSource.
Definition at line 91 of file ConfigurableInputSource.cc.
References advanceToNext(), evf::evtn::offset(), and retreatToPrevious().
Referenced by rewind_(), and setRunAndEventInfo().
|
inline |
Definition at line 27 of file ConfigurableInputSource.h.
References timeBetweenEvents_.
Referenced by HcalTBSource::setRunAndEventInfo().
|
private |
Definition at line 87 of file ConfigurableInputSource.h.
Referenced by reallyReadEvent().
|
private |
Definition at line 83 of file ConfigurableInputSource.h.
Referenced by getNextItemType(), readEvent_(), and reallyReadEvent().
|
private |
Definition at line 74 of file ConfigurableInputSource.h.
Referenced by eventCreationDelay(), and setRunAndEventInfo().
|
private |
Definition at line 79 of file ConfigurableInputSource.h.
Referenced by advanceToNext(), event(), getNextItemType(), luminosityBlock(), readLuminosityBlockAuxiliary_(), readRunAuxiliary_(), reallyReadEvent(), retreatToPrevious(), rewind_(), run(), setEventNumber(), setLumi(), setRun(), and setRunAndEventInfo().
|
private |
Definition at line 85 of file ConfigurableInputSource.h.
Referenced by getNextItemType(), and setEventNumber().
|
private |
Definition at line 86 of file ConfigurableInputSource.h.
Referenced by reallyReadEvent().
|
private |
Definition at line 84 of file ConfigurableInputSource.h.
Referenced by getNextItemType(), and setLumi().
|
private |
Definition at line 82 of file ConfigurableInputSource.h.
Referenced by getNextItemType(), readLuminosityBlockAuxiliary_(), rewind_(), setLumi(), and setRun().
|
private |
Definition at line 81 of file ConfigurableInputSource.h.
Referenced by getNextItemType(), readRunAuxiliary_(), rewind_(), and setRun().
|
private |
Definition at line 70 of file ConfigurableInputSource.h.
Referenced by advanceToNext(), numberEventsInLumi(), and retreatToPrevious().
|
private |
Definition at line 69 of file ConfigurableInputSource.h.
Referenced by advanceToNext(), numberEventsInRun(), and retreatToPrevious().
|
private |
Definition at line 77 of file ConfigurableInputSource.h.
Referenced by advanceToNext(), numberEventsInThisLumi(), retreatToPrevious(), rewind_(), setLumi(), and setRun().
|
private |
Definition at line 76 of file ConfigurableInputSource.h.
Referenced by advanceToNext(), numberEventsInThisRun(), retreatToPrevious(), rewind_(), and setRun().
|
private |
Definition at line 91 of file ConfigurableInputSource.h.
Referenced by postForkReacquireResources(), rewind_(), and setRunAndEventInfo().
|
private |
Definition at line 92 of file ConfigurableInputSource.h.
Referenced by postForkReacquireResources().
|
private |
Definition at line 80 of file ConfigurableInputSource.h.
Referenced by advanceToNext(), getNextItemType(), retreatToPrevious(), rewind_(), setLumi(), and setRun().
|
private |
Definition at line 72 of file ConfigurableInputSource.h.
Referenced by rewind_().
|
private |
Definition at line 71 of file ConfigurableInputSource.h.
Referenced by advanceToNext(), ConfigurableInputSource(), presentTime(), readLuminosityBlockAuxiliary_(), readRunAuxiliary_(), reallyReadEvent(), retreatToPrevious(), rewind_(), and setTime().
|
private |
Definition at line 90 of file ConfigurableInputSource.h.
Referenced by postForkReacquireResources(), rewind_(), and setRunAndEventInfo().
|
private |
Definition at line 73 of file ConfigurableInputSource.h.
Referenced by advanceToNext(), retreatToPrevious(), and timeBetweenEvents().
|
private |
Definition at line 78 of file ConfigurableInputSource.h.
Referenced by setRun().