![]() |
![]() |
#include <EventProcessor.h>
Public Member Functions | |
virtual bool | alreadyHandlingException () const |
void | beginJob () |
virtual void | beginLumi (ProcessHistoryID const &phid, int run, int lumi) |
virtual void | beginRun (statemachine::Run const &run) |
void | clearCounters () |
Clears counters used by trigger report. More... | |
virtual void | closeInputFile () |
virtual void | closeOutputFiles () |
char const * | currentStateName () const |
void | declareRunNumber (RunNumber_t runNumber) |
virtual void | deleteLumiFromCache (ProcessHistoryID const &phid, int run, int lumi) |
virtual void | deleteRunFromCache (statemachine::Run const &run) |
virtual void | doErrorStuff () |
void | enableEndPaths (bool active) |
void | endJob () |
virtual void | endLumi (ProcessHistoryID const &phid, int run, int lumi) |
virtual bool | endOfLoop () |
bool | endPathsEnabled () const |
virtual void | endRun (statemachine::Run const &run) |
EventProcessor (std::string const &config, ServiceToken const &token=ServiceToken(), serviceregistry::ServiceLegacy=serviceregistry::kOverlapIsError, std::vector< std::string > const &defaultServices=std::vector< std::string >(), std::vector< std::string > const &forcedServices=std::vector< std::string >()) | |
EventProcessor (std::string const &config, std::vector< std::string > const &defaultServices, std::vector< std::string > const &forcedServices=std::vector< std::string >()) | |
EventProcessor (boost::shared_ptr< ProcessDesc > &processDesc, ServiceToken const &token, serviceregistry::ServiceLegacy legacy) | |
EventProcessor (std::string const &config, bool isPython) | |
meant for unit tests More... | |
bool | forkProcess (std::string const &jobReportFile) |
std::vector< ModuleDescription const * > | getAllModuleDescriptions () const |
event_processor::State | getState () const |
ServiceToken | getToken () |
void | getTriggerReport (TriggerReport &rep) const |
char const * | msgName (event_processor::Msg m) const |
virtual void | openOutputFiles () |
ActivityRegistry::PostProcessEvent & | postProcessEventSignal () |
virtual void | prepareForNextLoop () |
ActivityRegistry::PreProcessEvent & | preProcessEventSignal () |
virtual int | readAndCacheLumi () |
virtual statemachine::Run | readAndCacheRun () |
virtual void | readAndProcessEvent () |
virtual void | readFile () |
virtual void | respondToCloseInputFile () |
virtual void | respondToCloseOutputFiles () |
virtual void | respondToOpenInputFile () |
virtual void | respondToOpenOutputFiles () |
void | rewind () |
virtual void | rewindInput () |
StatusCode | run (int numberEventsToProcess, bool repeatable=true) |
StatusCode | run () |
void | runAsync () |
virtual StatusCode | runEventCount (int numberOfEventsToProcess) |
virtual StatusCode | runToCompletion (bool onlineStateTransitions) |
virtual void | setExceptionMessageFiles (std::string &message) |
virtual void | setExceptionMessageLumis (std::string &message) |
virtual void | setExceptionMessageRuns (std::string &message) |
void | setRunNumber (RunNumber_t runNumber) |
virtual bool | shouldWeCloseOutput () const |
virtual bool | shouldWeStop () const |
StatusCode | shutdownAsync (unsigned int timeout_secs=60 *2) |
StatusCode | skip (int numberToSkip) |
virtual void | startingNewLoop () |
char const * | stateName (event_processor::State s) const |
StatusCode | statusAsync () const |
StatusCode | stopAsync (unsigned int timeout_secs=60 *2) |
int | totalEvents () const |
int | totalEventsFailed () const |
int | totalEventsPassed () const |
StatusCode | waitTillDoneAsync (unsigned int timeout_seconds=0) |
virtual void | writeLumi (ProcessHistoryID const &phid, int run, int lumi) |
virtual void | writeRun (statemachine::Run const &run) |
~EventProcessor () | |
![]() | |
virtual | ~IEventProcessor () |
Private Types | |
typedef std::set< std::pair < std::string, std::string > > | ExcludedData |
typedef std::map< std::string, ExcludedData > | ExcludedDataMap |
Private Member Functions | |
void | changeState (event_processor::Msg) |
void | connectSigs (EventProcessor *ep) |
StatusCode | doneAsync (event_processor::Msg m) |
void | errorState () |
void | init (boost::shared_ptr< ProcessDesc > &processDesc, ServiceToken const &token, serviceregistry::ServiceLegacy) |
StatusCode | runCommon (bool onlineStateTransitions, int numberOfEventsToProcess) |
void | setupSignal () |
void | terminateMachine () |
StatusCode | waitForAsyncCompletion (unsigned int timeout_seconds) |
Static Private Member Functions | |
static void | asyncRun (EventProcessor *) |
Friends | |
class | event_processor::StateSentry |
Additional Inherited Members | |
![]() | |
enum | Status { epSuccess =0, epException =1, epOther =2, epSignal =3, epInputComplete =4, epTimedOut =5, epCountComplete =6 } |
typedef Status | StatusCode |
Definition at line 65 of file EventProcessor.h.
|
private |
Definition at line 382 of file EventProcessor.h.
|
private |
Definition at line 383 of file EventProcessor.h.
|
explicit |
Definition at line 353 of file EventProcessor.cc.
References init(), and PythonProcessDesc::processDesc().
edm::EventProcessor::EventProcessor | ( | std::string const & | config, |
std::vector< std::string > const & | defaultServices, | ||
std::vector< std::string > const & | forcedServices = std::vector<std::string>() |
||
) |
Definition at line 395 of file EventProcessor.cc.
References init(), edm::serviceregistry::kOverlapIsError, and PythonProcessDesc::processDesc().
edm::EventProcessor::EventProcessor | ( | boost::shared_ptr< ProcessDesc > & | processDesc, |
ServiceToken const & | token, | ||
serviceregistry::ServiceLegacy | legacy | ||
) |
Definition at line 435 of file EventProcessor.cc.
References init().
edm::EventProcessor::EventProcessor | ( | std::string const & | config, |
bool | isPython | ||
) |
meant for unit tests
Definition at line 472 of file EventProcessor.cc.
References init(), edm::serviceregistry::kOverlapIsError, and PythonProcessDesc::processDesc().
edm::EventProcessor::~EventProcessor | ( | ) |
Definition at line 616 of file EventProcessor.cc.
References actReg_, changeState(), edm::BranchIDListHelper::clearRegistries(), edm::detail::ThreadSafeRegistry< KEY, T, E >::data(), ExpressReco_HICollisions_FallBack::e, esp_, cms::Exception::explainSelf(), edm::detail::ThreadSafeRegistry< KEY, T, E >::extra(), getToken(), input_, edm::detail::ThreadSafeRegistry< KEY, T, E >::instance(), looper_, edm::event_processor::mDtor, schedule_, and terminateMachine().
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1939 of file EventProcessor.cc.
References alreadyHandlingException_.
|
staticprivate |
Definition at line 1323 of file EventProcessor.cc.
References ExpressReco_HICollisions_FallBack::e, edm::IEventProcessor::epException, edm::IEventProcessor::epOther, event_loop_id_, cmsCodeRules.cppFunctionSkipper::exception, cms::Exception::explainSelf(), FDEBUG, id_set_, last_error_text_, last_rc_, runToCompletion(), starter_, stop_count_, stop_lock_, and stopper_.
Referenced by runAsync().
void edm::EventProcessor::beginJob | ( | void | ) |
This should be called before the first call to 'run' If this is not called in time, it will automatically be called the first time 'run' is called
Definition at line 705 of file EventProcessor.cc.
References actReg_, bk::beginJob(), changeState(), ExpressReco_HICollisions_FallBack::e, cmsCodeRules.cppFunctionSkipper::exception, input_, edm::event_processor::mBeginJob, schedule_, serviceToken_, edm::event_processor::sInit, and state_.
Referenced by evf::FUEventProcessor::configuring(), declareRunNumber(), evf::FUEventProcessor::enabling(), forkProcess(), rewind(), runAsync(), runCommon(), setRunNumber(), and skip().
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1788 of file EventProcessor.cc.
References actReg_, edm::LuminosityBlockPrincipal::beginTime(), esp_, FDEBUG, input_, edm::Service< T >::isAvailable(), looper_, edm::LuminosityBlockPrincipal::luminosityBlock(), edm::PrincipalCache::lumiPrincipal(), principalCache_, edm::LuminosityBlockPrincipal::run(), and schedule_.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1745 of file EventProcessor.cc.
References actReg_, edm::RunPrincipal::beginTime(), esp_, FDEBUG, forceESCacheClearOnNewRun_, input_, looper_, looperBeginJobRun_, principalCache_, statemachine::Run::processHistoryID(), edm::RunPrincipal::run(), statemachine::Run::runNumber(), edm::PrincipalCache::runPrincipal(), and schedule_.
|
private |
Definition at line 1267 of file EventProcessor.cc.
References cond::rpcobimon::current, edm::TransEntry::current, edm::hlt::Exception, FDEBUG, edm::TransEntry::final, edm::event_processor::mAny, edm::TransEntry::message, msgName(), edm::event_processor::sInvalid, state_, state_lock_, stateName(), and edm::table.
Referenced by beginJob(), declareRunNumber(), doneAsync(), endJob(), rewind(), runAsync(), runCommon(), setRunNumber(), shutdownAsync(), skip(), stopAsync(), waitTillDoneAsync(), ~EventProcessor(), and edm::event_processor::StateSentry::~StateSentry().
void edm::EventProcessor::clearCounters | ( | ) |
Clears counters used by trigger report.
Definition at line 1129 of file EventProcessor.cc.
References schedule_.
Referenced by evf::FUEventProcessor::enableCommon().
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1660 of file EventProcessor.cc.
References fb_, FDEBUG, and input_.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1670 of file EventProcessor.cc.
References FDEBUG, and schedule_.
|
private |
Definition at line 1085 of file EventProcessor.cc.
References actReg_, postProcessEventSignal_, and preProcessEventSignal_.
Referenced by init().
char const * edm::EventProcessor::currentStateName | ( | ) | const |
Member functions to support asynchronous interface.
Definition at line 1133 of file EventProcessor.cc.
References getState(), and stateName().
Referenced by evf::FWEPWrapper::microState(), and evf::FWEPWrapper::monitoring().
void edm::EventProcessor::declareRunNumber | ( | RunNumber_t | runNumber | ) |
Definition at line 1173 of file EventProcessor.cc.
References beginJob(), changeState(), and edm::event_processor::mSetRun.
Referenced by evf::FUEventProcessor::enableCommon().
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1860 of file EventProcessor.cc.
References edm::PrincipalCache::deleteLumi(), FDEBUG, and principalCache_.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1850 of file EventProcessor.cc.
References edm::PrincipalCache::deleteRun(), FDEBUG, principalCache_, statemachine::Run::processHistoryID(), and statemachine::Run::runNumber().
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1734 of file EventProcessor.cc.
References FDEBUG, and stateMachineWasInErrorState_.
|
private |
Definition at line 1259 of file EventProcessor.cc.
References changeState(), and waitForAsyncCompletion().
void edm::EventProcessor::enableEndPaths | ( | bool | active | ) |
Turn end_paths "off" if "active" is false; turn end_paths "on" if "active" is true.
Definition at line 1114 of file EventProcessor.cc.
References schedule_.
Referenced by evf::FUEventProcessor::actionPerformed().
void edm::EventProcessor::endJob | ( | void | ) |
This should be called before the EventProcessor is destroyed throws if any module's endJob throws an exception.
Definition at line 749 of file EventProcessor.cc.
References actReg_, trackerHits::c, edm::ExceptionCollector::call(), changeState(), edm::InputSource::doEndJob(), edm::Schedule::endJob(), edm::EDLooperBase::endOfJob(), edm::ExceptionCollector::hasThrown(), input_, looper_, edm::event_processor::mEndJob, cmsCodeRules.cppFunctionSkipper::operator, edm::ExceptionCollector::rethrow(), schedule_, serviceToken_, and terminateMachine().
Referenced by evf::FWEPWrapper::stopAndHalt().
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1813 of file EventProcessor.cc.
References actReg_, edm::LuminosityBlockPrincipal::endTime(), esp_, FDEBUG, input_, looper_, edm::LuminosityBlockPrincipal::luminosityBlock(), edm::PrincipalCache::lumiPrincipal(), edm::EventID::maxEventNumber(), principalCache_, edm::LuminosityBlockPrincipal::run(), and schedule_.
Referenced by Types.EventRange::cppID().
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1705 of file EventProcessor.cc.
References esp_, FDEBUG, forceLooperToEnd_, edm::EDLooperBase::kContinue, looper_, schedule_, and ntuplemaker::status.
bool edm::EventProcessor::endPathsEnabled | ( | ) | const |
Return true if end_paths are active, and false if they are inactive.
Definition at line 1119 of file EventProcessor.cc.
References schedule_.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1771 of file EventProcessor.cc.
References actReg_, edm::RunPrincipal::endTime(), esp_, FDEBUG, input_, looper_, edm::EventID::maxEventNumber(), edm::LuminosityBlockID::maxLuminosityBlockNumber(), principalCache_, statemachine::Run::processHistoryID(), edm::RunPrincipal::run(), statemachine::Run::runNumber(), edm::PrincipalCache::runPrincipal(), and schedule_.
|
private |
Definition at line 1254 of file EventProcessor.cc.
References edm::event_processor::sError, and state_.
Referenced by shutdownAsync(), stopAsync(), and waitTillDoneAsync().
bool edm::EventProcessor::forkProcess | ( | std::string const & | jobReportFile | ) |
Definition at line 863 of file EventProcessor.cc.
References actReg_, beginJob(), ExpressReco_HICollisions_FallBack::cerr, gather_cfg::cout, edm::eventsetup::EventSetupRecord::doGet(), ExpressReco_HICollisions_FallBack::e, esp_, eventSetupDataToExcludeFromPrefetching_, edm::hlt::Exception, cmsRelvalreport::exit, edm::eventsetup::EventSetupRecord::fillRegisteredDataKeys(), edm::eventsetup::EventSetupRecord::find(), input_, edm::installCustomHandler(), edm::InputSource::IsFile, edm::InputSource::IsRun, NULL, numberOfForkedChildren_, numberOfSequentialEventsPerChild_, readFile(), schedule_, serviceToken_, setCpuAffinity_, edm::shutdown_flag, and cms::Exception::what().
std::vector< ModuleDescription const * > edm::EventProcessor::getAllModuleDescriptions | ( | ) | const |
Return a vector allowing const access to all the ModuleDescriptions for this EventProccessor. *** N.B. *** Ownership of the ModuleDescriptions is not *** passed to the caller. Do not call delete on these *** pointers!
Definition at line 1094 of file EventProcessor.cc.
References schedule_.
Referenced by evf::FWEPWrapper::init().
State edm::EventProcessor::getState | ( | ) | const |
Definition at line 1145 of file EventProcessor.cc.
References state_.
Referenced by currentStateName(), evf::FUEventProcessor::enableClassic(), evf::FWEPWrapper::microState(), evf::FWEPWrapper::monitoring(), evf::FWEPWrapper::stop(), and evf::FWEPWrapper::stopAndHalt().
ServiceToken edm::EventProcessor::getToken | ( | ) |
Definition at line 772 of file EventProcessor.cc.
References serviceToken_.
Referenced by evf::FUEventProcessor::attachDqmToShm(), evf::FUEventProcessor::detachDqmFromShm(), evf::FWEPWrapper::moduleWeb(), evf::FWEPWrapper::serviceWeb(), evf::FWEPWrapper::taskWebPage(), and ~EventProcessor().
void edm::EventProcessor::getTriggerReport | ( | TriggerReport & | rep | ) | const |
Return the trigger report information on paths, modules-in-path, modules-in-endpath, and modules.
Definition at line 1124 of file EventProcessor.cc.
References schedule_.
Referenced by evf::FWEPWrapper::getTriggerReport(), evf::FWEPWrapper::init(), and evf::FWEPWrapper::taskWebPage().
|
private |
Definition at line 514 of file EventProcessor.cc.
References act_table_, actReg_, edm::BranchIDListHelper::clearRegistries(), connectSigs(), edm::ServiceToken::copySlotsTo(), edm::ServiceRegistry::createContaining(), edm::ServiceRegistry::createSet(), emptyRunLumiMode_, esp_, eventSetupDataToExcludeFromPrefetching_, FDEBUG, fileMode_, edm::fillLooper(), forceESCacheClearOnNewRun_, edm::getPassID(), edm::getReleaseVersion(), edm::ParameterSet::getUntrackedParameterSet(), input_, edm::eventsetup::heterocontainer::insert(), edm::ServiceRegistry::instance(), edm::serviceregistry::kOverlapIsError, looper_, edm::makeInput(), numberOfForkedChildren_, numberOfSequentialEventsPerChild_, preg_, principalCache_, processConfiguration_, schedule_, serviceToken_, and setCpuAffinity_.
Referenced by EventProcessor().
char const * edm::EventProcessor::msgName | ( | event_processor::Msg | m | ) | const |
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1665 of file EventProcessor.cc.
References fb_, FDEBUG, and schedule_.
|
inline |
signal is emitted after all modules have finished processing the Event
Definition at line 210 of file EventProcessor.h.
References postProcessEventSignal_.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1724 of file EventProcessor.cc.
References esp_, FDEBUG, and looper_.
|
inline |
signal is emitted after the Event has been created by the InputSource but before any modules have seen the Event
Definition at line 205 of file EventProcessor.h.
References preProcessEventSignal_.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1839 of file EventProcessor.cc.
References input_.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1832 of file EventProcessor.cc.
References input_, and PDRates::Run.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1865 of file EventProcessor.cc.
References act_table_, alignmentValidation::action, actReg_, cms::Exception::category(), edm::EventPrincipal::clearEventPrincipal(), ExpressReco_HICollisions_FallBack::e, esp_, FDEBUG, edm::EventPrincipal::id(), input_, edm::EDLooperBase::kContinue, edm::ProcessingController::kToPreviousEvent, edm::ProcessingController::kToSpecifiedEvent, edm::ProcessingController::lastOperationSucceeded(), looper_, edm::PrincipalCache::lumiPrincipalPtr(), principalCache_, edm::ProcessingController::requestedTransition(), edm::actions::Rethrow, cms::Exception::rootCause(), schedule_, edm::ProcessingController::setLastOperationSucceeded(), shouldWeStop_, edm::ProcessingController::specifiedEventTransition(), ntuplemaker::status, summarizeEdmComparisonLogfiles::succeeded, edm::EventPrincipal::time(), and cms::Exception::what().
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1652 of file EventProcessor.cc.
References fb_, FDEBUG, input_, numberOfForkedChildren_, and edm::FileBlock::ParallelProcesses.
Referenced by forkProcess(), python.Vispa.Plugins.EventBrowser.EventBrowserTabController.EventBrowserTabController::navigate(), python.Vispa.Main.TabController.TabController::open(), and python.Vispa.Main.TabController.TabController::refresh().
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1680 of file EventProcessor.cc.
References fb_, FDEBUG, and schedule_.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1690 of file EventProcessor.cc.
References fb_, FDEBUG, and schedule_.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1675 of file EventProcessor.cc.
References fb_, FDEBUG, and schedule_.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1685 of file EventProcessor.cc.
References fb_, FDEBUG, and schedule_.
void edm::EventProcessor::rewind | ( | ) |
Definition at line 659 of file EventProcessor.cc.
References beginJob(), changeState(), input_, edm::event_processor::mCountComplete, edm::event_processor::mFinished, edm::event_processor::mInputRewind, edm::event_processor::mStopAsync, serviceToken_, and edm::event_processor::StateSentry::succeeded().
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1718 of file EventProcessor.cc.
References FDEBUG, and input_.
EventProcessor::StatusCode edm::EventProcessor::run | ( | int | numberEventsToProcess, |
bool | repeatable = true |
||
) |
Definition at line 680 of file EventProcessor.cc.
References runEventCount().
Referenced by Types.LuminosityBlockID::cppID().
|
inline |
void edm::EventProcessor::runAsync | ( | ) |
Definition at line 1297 of file EventProcessor.cc.
References asyncRun(), beginJob(), changeState(), edm::IEventProcessor::epSuccess, event_loop_, edm::hlt::Exception, id_set_, last_rc_, edm::event_processor::mRunAsync, starter_, stop_count_, and stop_lock_.
Referenced by evf::FUEventProcessor::enableCommon().
|
private |
Definition at line 1419 of file EventProcessor.cc.
References alreadyHandlingException_, beginJob(), changeState(), edm::errors::Configuration, statemachine::doNotHandleEmptyRunsAndLumis, ExpressReco_HICollisions_FallBack::e, emptyRunLumiMode_, edm::IEventProcessor::epCountComplete, edm::IEventProcessor::epSignal, edm::IEventProcessor::epSuccess, cmsCodeRules.cppFunctionSkipper::exception, edm::hlt::Exception, exceptionMessageFiles_, exceptionMessageLumis_, exceptionMessageRuns_, FDEBUG, harvesting_AlCaReco_cfg::fileMode, fileMode_, forceLooperToEnd_, statemachine::FULLMERGE, statemachine::handleEmptyRuns, statemachine::handleEmptyRunsAndLumis, input_, edm::PrincipalCache::insert(), edm::InputSource::IsEvent, edm::InputSource::IsFile, edm::InputSource::IsLumi, edm::InputSource::IsRun, edm::InputSource::IsStop, edm::errors::LogicError, machine_, edm::event_processor::mFinished, edm::event_processor::mInputExhausted, edm::event_processor::mRunCount, edm::event_processor::mShutdownSignal, statemachine::NOMERGE, preg_, principalCache_, processConfiguration_, runEdmFileComparison::returnCode, serviceToken_, edm::shutdown_flag, edm::event_processor::sShuttingDown, edm::event_processor::sStopping, state_, stateMachineWasInErrorState_, terminateMachine(), and edm::usr2_lock.
Referenced by runEventCount(), and runToCompletion().
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1406 of file EventProcessor.cc.
References runEdmFileComparison::returnCode, runCommon(), and edm::event_processor::StateSentry::succeeded().
Referenced by run().
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1387 of file EventProcessor.cc.
References edm::hlt::Exception, edm::errors::LogicError, machine_, runEdmFileComparison::returnCode, runCommon(), and edm::event_processor::StateSentry::succeeded().
Referenced by asyncRun().
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1927 of file EventProcessor.cc.
References exceptionMessageFiles_, and argparse::message.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1935 of file EventProcessor.cc.
References exceptionMessageLumis_, and argparse::message.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1931 of file EventProcessor.cc.
References exceptionMessageRuns_, and argparse::message.
void edm::EventProcessor::setRunNumber | ( | RunNumber_t | runNumber | ) |
Definition at line 1156 of file EventProcessor.cc.
References beginJob(), changeState(), input_, and edm::event_processor::mSetRun.
Referenced by evf::FUEventProcessor::enableCommon().
|
private |
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1729 of file EventProcessor.cc.
References FDEBUG, and schedule_.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1921 of file EventProcessor.cc.
References FDEBUG, schedule_, and shouldWeStop_.
EventProcessor::StatusCode edm::EventProcessor::shutdownAsync | ( | unsigned int | timeout_secs = 60 * 2 | ) |
Definition at line 1246 of file EventProcessor.cc.
References changeState(), edm::IEventProcessor::epTimedOut, errorState(), edm::event_processor::mFinished, edm::event_processor::mShutdownAsync, and waitForAsyncCompletion().
EventProcessor::StatusCode edm::EventProcessor::skip | ( | int | numberToSkip | ) |
Definition at line 685 of file EventProcessor.cc.
References beginJob(), changeState(), edm::IEventProcessor::epSuccess, input_, edm::event_processor::mCountComplete, edm::event_processor::mFinished, edm::event_processor::mSkip, serviceToken_, and edm::event_processor::StateSentry::succeeded().
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1695 of file EventProcessor.cc.
References FDEBUG, looper_, looperBeginJobRun_, and shouldWeStop_.
char const * edm::EventProcessor::stateName | ( | event_processor::State | s | ) | const |
Definition at line 1137 of file EventProcessor.cc.
References asciidump::s.
Referenced by changeState(), currentStateName(), evf::FWEPWrapper::publishConfigAndMonitorItems(), and evf::FWEPWrapper::stop().
EventProcessor::StatusCode edm::EventProcessor::statusAsync | ( | ) | const |
Definition at line 1149 of file EventProcessor.cc.
References last_rc_.
Referenced by evf::FUEventProcessor::enableCommon().
EventProcessor::StatusCode edm::EventProcessor::stopAsync | ( | unsigned int | timeout_secs = 60 * 2 | ) |
Definition at line 1238 of file EventProcessor.cc.
References changeState(), edm::IEventProcessor::epTimedOut, errorState(), edm::event_processor::mFinished, edm::event_processor::mStopAsync, and waitForAsyncCompletion().
|
private |
Definition at line 1943 of file EventProcessor.cc.
References FDEBUG, forceLooperToEnd_, and machine_.
Referenced by endJob(), runCommon(), and ~EventProcessor().
int edm::EventProcessor::totalEvents | ( | ) | const |
Return the number of events this EventProcessor has tried to process (inclues both successes and failures, including failures due to exceptions during processing).
Definition at line 1099 of file EventProcessor.cc.
References schedule_.
Referenced by evf::FWEPWrapper::getTriggerReport(), evf::FWEPWrapper::monitoring(), and evf::FUEventProcessor::receivingAndMonitor().
int edm::EventProcessor::totalEventsFailed | ( | ) | const |
Return the number of events that have not passed any trigger. (N.B. totalEventsFailed() + totalEventsPassed() == totalEvents()
Definition at line 1109 of file EventProcessor.cc.
References schedule_.
int edm::EventProcessor::totalEventsPassed | ( | ) | const |
Return the number of events processed by this EventProcessor which have been passed by one or more trigger paths.
Definition at line 1104 of file EventProcessor.cc.
References schedule_.
Referenced by evf::FWEPWrapper::getTriggerReport(), evf::FWEPWrapper::monitoring(), and evf::FUEventProcessor::receivingAndMonitor().
|
private |
Definition at line 1183 of file EventProcessor.cc.
References edm::IEventProcessor::epTimedOut, event_loop_, event_loop_id_, id_set_, last_rc_, stop_count_, stop_lock_, and stopper_.
Referenced by doneAsync(), shutdownAsync(), stopAsync(), and waitTillDoneAsync().
EventProcessor::StatusCode edm::EventProcessor::waitTillDoneAsync | ( | unsigned int | timeout_seconds = 0 | ) |
Definition at line 1230 of file EventProcessor.cc.
References changeState(), edm::IEventProcessor::epTimedOut, errorState(), edm::event_processor::mCountComplete, and waitForAsyncCompletion().
Referenced by evf::FWEPWrapper::stop().
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1855 of file EventProcessor.cc.
References FDEBUG, edm::PrincipalCache::lumiPrincipal(), principalCache_, and schedule_.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1845 of file EventProcessor.cc.
References FDEBUG, principalCache_, statemachine::Run::processHistoryID(), statemachine::Run::runNumber(), edm::PrincipalCache::runPrincipal(), and schedule_.
|
friend |
Definition at line 385 of file EventProcessor.h.
|
private |
Definition at line 345 of file EventProcessor.h.
Referenced by init(), and readAndProcessEvent().
|
private |
Definition at line 340 of file EventProcessor.h.
Referenced by beginJob(), beginLumi(), beginRun(), connectSigs(), endJob(), endLumi(), endRun(), forkProcess(), init(), readAndProcessEvent(), and ~EventProcessor().
|
private |
Definition at line 374 of file EventProcessor.h.
Referenced by alreadyHandlingException(), and runCommon().
|
private |
Definition at line 370 of file EventProcessor.h.
Referenced by init(), and runCommon().
|
private |
Definition at line 344 of file EventProcessor.h.
Referenced by beginLumi(), beginRun(), endLumi(), endOfLoop(), endRun(), forkProcess(), init(), prepareForNextLoop(), readAndProcessEvent(), and ~EventProcessor().
|
private |
Definition at line 350 of file EventProcessor.h.
Referenced by runAsync(), and waitForAsyncCompletion().
|
private |
Definition at line 360 of file EventProcessor.h.
Referenced by asyncRun(), and waitForAsyncCompletion().
|
private |
Definition at line 384 of file EventProcessor.h.
Referenced by forkProcess(), and init().
|
private |
Definition at line 371 of file EventProcessor.h.
Referenced by runCommon(), and setExceptionMessageFiles().
|
private |
Definition at line 373 of file EventProcessor.h.
Referenced by runCommon(), and setExceptionMessageLumis().
|
private |
Definition at line 372 of file EventProcessor.h.
Referenced by runCommon(), and setExceptionMessageRuns().
|
private |
Definition at line 362 of file EventProcessor.h.
Referenced by closeInputFile(), openOutputFiles(), readFile(), respondToCloseInputFile(), respondToCloseOutputFiles(), respondToOpenInputFile(), and respondToOpenOutputFiles().
|
private |
Definition at line 369 of file EventProcessor.h.
Referenced by init(), and runCommon().
|
private |
Definition at line 377 of file EventProcessor.h.
Referenced by beginRun(), and init().
|
private |
Definition at line 375 of file EventProcessor.h.
Referenced by endOfLoop(), runCommon(), and terminateMachine().
|
private |
Definition at line 359 of file EventProcessor.h.
Referenced by asyncRun(), runAsync(), and waitForAsyncCompletion().
|
private |
Definition at line 343 of file EventProcessor.h.
Referenced by beginJob(), beginLumi(), beginRun(), closeInputFile(), endJob(), endLumi(), endRun(), forkProcess(), init(), readAndCacheLumi(), readAndCacheRun(), readAndProcessEvent(), readFile(), rewind(), rewindInput(), runCommon(), setRunNumber(), skip(), and ~EventProcessor().
|
private |
Definition at line 358 of file EventProcessor.h.
Referenced by asyncRun().
|
private |
Definition at line 357 of file EventProcessor.h.
Referenced by asyncRun(), runAsync(), statusAsync(), and waitForAsyncCompletion().
|
private |
Definition at line 363 of file EventProcessor.h.
Referenced by beginLumi(), beginRun(), Config.Process::dumpConfig(), Config.Process::dumpPython(), endJob(), endLumi(), endOfLoop(), endRun(), Config.Process::fillProcessDesc(), init(), prepareForNextLoop(), readAndProcessEvent(), startingNewLoop(), and ~EventProcessor().
|
private |
Definition at line 376 of file EventProcessor.h.
Referenced by beginRun(), and startingNewLoop().
|
private |
Definition at line 365 of file EventProcessor.h.
Referenced by runCommon(), runToCompletion(), and terminateMachine().
|
private |
Definition at line 361 of file EventProcessor.h.
|
private |
Definition at line 379 of file EventProcessor.h.
Referenced by forkProcess(), init(), and readFile().
|
private |
Definition at line 380 of file EventProcessor.h.
Referenced by forkProcess(), and init().
|
private |
Definition at line 339 of file EventProcessor.h.
Referenced by connectSigs(), and postProcessEventSignal().
|
private |
Definition at line 341 of file EventProcessor.h.
Referenced by init(), and runCommon().
|
private |
Definition at line 338 of file EventProcessor.h.
Referenced by connectSigs(), and preProcessEventSignal().
|
private |
Definition at line 366 of file EventProcessor.h.
Referenced by beginLumi(), beginRun(), deleteLumiFromCache(), deleteRunFromCache(), endLumi(), endRun(), init(), readAndProcessEvent(), runCommon(), writeLumi(), and writeRun().
|
private |
Definition at line 346 of file EventProcessor.h.
Referenced by init(), and runCommon().
|
private |
Definition at line 347 of file EventProcessor.h.
Referenced by Config.Process::_insertPaths(), beginJob(), beginLumi(), beginRun(), clearCounters(), closeOutputFiles(), enableEndPaths(), endJob(), endLumi(), endOfLoop(), endPathsEnabled(), endRun(), forkProcess(), getAllModuleDescriptions(), getTriggerReport(), init(), openOutputFiles(), Config.Process::prune(), readAndProcessEvent(), respondToCloseInputFile(), respondToCloseOutputFiles(), respondToOpenInputFile(), respondToOpenOutputFiles(), shouldWeCloseOutput(), shouldWeStop(), totalEvents(), totalEventsFailed(), totalEventsPassed(), writeLumi(), writeRun(), and ~EventProcessor().
|
private |
Definition at line 342 of file EventProcessor.h.
Referenced by beginJob(), endJob(), forkProcess(), getToken(), init(), rewind(), runCommon(), and skip().
|
private |
Definition at line 381 of file EventProcessor.h.
Referenced by forkProcess(), and init().
|
private |
Definition at line 367 of file EventProcessor.h.
Referenced by readAndProcessEvent(), shouldWeStop(), and startingNewLoop().
|
private |
Definition at line 355 of file EventProcessor.h.
Referenced by asyncRun(), and runAsync().
|
private |
Definition at line 349 of file EventProcessor.h.
Referenced by beginJob(), changeState(), errorState(), getState(), and runCommon().
|
private |
Definition at line 352 of file EventProcessor.h.
Referenced by changeState().
|
private |
Definition at line 368 of file EventProcessor.h.
Referenced by doErrorStuff(), and runCommon().
|
private |
Definition at line 356 of file EventProcessor.h.
Referenced by asyncRun(), runAsync(), and waitForAsyncCompletion().
|
private |
Definition at line 353 of file EventProcessor.h.
Referenced by asyncRun(), runAsync(), and waitForAsyncCompletion().
|
private |
Definition at line 354 of file EventProcessor.h.
Referenced by asyncRun(), and waitForAsyncCompletion().