#include <EventProcessor.h>
Public Types | |
enum | StatusCode { epSuccess =0, epException =1, epOther =2, epSignal =3, epInputComplete =4, epTimedOut =5, epCountComplete =6 } |
Public Member Functions | |
void | beginJob () |
void | beginLumi (ProcessHistoryID const &phid, RunNumber_t run, LuminosityBlockNumber_t lumi, bool &globalBeginSucceeded) |
void | beginRun (ProcessHistoryID const &phid, RunNumber_t run, bool &globalBeginSucceeded) |
void | clearCounters () |
Clears counters used by trigger report. More... | |
void | closeInputFile (bool cleaningUpAfterException) |
void | closeOutputFiles () |
void | deleteLumiFromCache (ProcessHistoryID const &phid, RunNumber_t run, LuminosityBlockNumber_t lumi) |
void | deleteRunFromCache (ProcessHistoryID const &phid, RunNumber_t run) |
void | doErrorStuff () |
void | enableEndPaths (bool active) |
void | endJob () |
void | endLumi (ProcessHistoryID const &phid, RunNumber_t run, LuminosityBlockNumber_t lumi, bool globalBeginSucceeded, bool cleaningUpAfterException) |
bool | endOfLoop () |
bool | endPathsEnabled () const |
void | endRun (ProcessHistoryID const &phid, RunNumber_t run, bool globalBeginSucceeded, bool cleaningUpAfterException) |
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 (std::shared_ptr< ProcessDesc > processDesc, ServiceToken const &token, serviceregistry::ServiceLegacy legacy) | |
EventProcessor (std::string const &config, bool isPython) | |
meant for unit tests More... | |
EventProcessor (EventProcessor const &)=delete | |
std::vector< ModuleDescription const * > | getAllModuleDescriptions () const |
ServiceToken | getToken () |
void | getTriggerReport (TriggerReport &rep) const |
edm::LuminosityBlockNumber_t | nextLuminosityBlockID () |
std::pair< edm::ProcessHistoryID, edm::RunNumber_t > | nextRunID () |
InputSource::ItemType | nextTransitionType () |
void | openOutputFiles () |
EventProcessor & | operator= (EventProcessor const &)=delete |
void | prepareForNextLoop () |
ProcessConfiguration const & | processConfiguration () const |
int | readAndMergeLumi () |
std::pair< ProcessHistoryID, RunNumber_t > | readAndMergeRun () |
InputSource::ItemType | readAndProcessEvents () |
void | readFile () |
int | readLuminosityBlock () |
std::pair< ProcessHistoryID, RunNumber_t > | readRun () |
void | respondToCloseInputFile () |
void | respondToOpenInputFile () |
void | rewindInput () |
StatusCode | run () |
StatusCode | runToCompletion () |
bool | setDeferredException (std::exception_ptr) |
void | setExceptionMessageFiles (std::string &message) |
void | setExceptionMessageLumis (std::string &message) |
void | setExceptionMessageRuns (std::string &message) |
bool | shouldWeCloseOutput () const |
bool | shouldWeStop () const |
void | startingNewLoop () |
int | totalEvents () const |
int | totalEventsFailed () const |
int | totalEventsPassed () const |
void | writeLumi (ProcessHistoryID const &phid, RunNumber_t run, LuminosityBlockNumber_t lumi) |
void | writeRun (ProcessHistoryID const &phid, RunNumber_t run) |
~EventProcessor () | |
Private Types | |
typedef std::set< std::pair< std::string, std::string > > | ExcludedData |
typedef std::map< std::string, ExcludedData > | ExcludedDataMap |
Private Member Functions | |
std::shared_ptr< BranchIDListHelper const > | branchIDListHelper () const |
std::shared_ptr< BranchIDListHelper > & | branchIDListHelper () |
bool | checkForAsyncStopRequest (StatusCode &) |
void | handleNextEventForStreamAsync (WaitingTaskHolder iTask, unsigned int iStreamIndex, std::atomic< bool > *finishedProcessingEvents) |
void | init (std::shared_ptr< ProcessDesc > &processDesc, ServiceToken const &token, serviceregistry::ServiceLegacy) |
std::shared_ptr< EDLooperBase const > | looper () const |
std::shared_ptr< EDLooperBase > & | looper () |
std::shared_ptr< ProductRegistry const > | preg () const |
std::shared_ptr< ProductRegistry > & | preg () |
void | processEventAsync (WaitingTaskHolder iHolder, unsigned int iStreamIndex) |
void | processEventAsyncImpl (WaitingTaskHolder iHolder, unsigned int iStreamIndex) |
void | processEventWithLooper (EventPrincipal &) |
void | readEvent (unsigned int iStreamIndex) |
bool | readNextEventForStream (unsigned int iStreamIndex, std::atomic< bool > *finishedProcessingEvents) |
std::shared_ptr< ThinnedAssociationsHelper const > | thinnedAssociationsHelper () const |
std::shared_ptr< ThinnedAssociationsHelper > & | thinnedAssociationsHelper () |
Definition at line 56 of file EventProcessor.h.
|
private |
Definition at line 318 of file EventProcessor.h.
|
private |
Definition at line 319 of file EventProcessor.h.
Enumerator | |
---|---|
epSuccess | |
epException | |
epOther | |
epSignal | |
epInputComplete | |
epTimedOut | |
epCountComplete |
Definition at line 67 of file EventProcessor.h.
|
explicit |
Definition at line 215 of file EventProcessor.cc.
References init(), edm::parameterSet(), and PythonProcessDesc::parameterSet().
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 254 of file EventProcessor.cc.
References init(), edm::serviceregistry::kOverlapIsError, edm::parameterSet(), and PythonProcessDesc::parameterSet().
edm::EventProcessor::EventProcessor | ( | std::shared_ptr< ProcessDesc > | processDesc, |
ServiceToken const & | token, | ||
serviceregistry::ServiceLegacy | legacy | ||
) |
Definition at line 294 of file EventProcessor.cc.
References init().
edm::EventProcessor::EventProcessor | ( | std::string const & | config, |
bool | isPython | ||
) |
meant for unit tests
Definition at line 332 of file EventProcessor.cc.
References looper::config, init(), edm::serviceregistry::kOverlapIsError, edm::parameterSet(), and PythonProcessDesc::parameterSet().
edm::EventProcessor::~EventProcessor | ( | ) |
Definition at line 547 of file EventProcessor.cc.
References actReg_, edm::ParentageRegistry::clear(), edm::pset::Registry::clear(), esp_, espController_, getToken(), input_, edm::ParentageRegistry::instance(), edm::pset::Registry::instance(), looper_, and schedule_.
|
delete |
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 566 of file EventProcessor.cc.
References actReg_, cms::Exception::addContext(), bk::beginJob(), beginJobCalled_, edm::checkForModuleDependencyCorrectness(), edm::for_all(), mps_fire::i, edm::PathsAndConsumesOfModules::initialize(), input_, edm::PreallocationConfiguration::numberOfLuminosityBlocks(), edm::PreallocationConfiguration::numberOfRuns(), edm::PreallocationConfiguration::numberOfStreams(), edm::PreallocationConfiguration::numberOfThreads(), cmsPerfStripChart::operate(), pathsAndConsumesOfModules_, preallocations_, preg(), preg_, printDependencies_, processConfiguration_, processContext_, schedule_, serviceToken_, subProcesses_, and edm::convertException::wrap().
Referenced by runToCompletion().
void edm::EventProcessor::beginLumi | ( | ProcessHistoryID const & | phid, |
RunNumber_t | run, | ||
LuminosityBlockNumber_t | lumi, | ||
bool & | globalBeginSucceeded | ||
) |
Definition at line 1079 of file EventProcessor.cc.
References actReg_, edm::LuminosityBlockPrincipal::beginTime(), esp_, espController_, FDEBUG, input_, edm::Service< T >::isAvailable(), looper_, edm::LuminosityBlockPrincipal::luminosityBlock(), edm::PrincipalCache::lumiPrincipal(), edm::make_empty_waiting_task(), edm::PreallocationConfiguration::numberOfStreams(), preallocations_, principalCache_, processContext_, edm::LuminosityBlockPrincipal::run(), schedule_, and subProcesses_.
void edm::EventProcessor::beginRun | ( | ProcessHistoryID const & | phid, |
RunNumber_t | run, | ||
bool & | globalBeginSucceeded | ||
) |
Definition at line 934 of file EventProcessor.cc.
References actReg_, edm::RunPrincipal::beginTime(), esp_, espController_, FDEBUG, forceESCacheClearOnNewRun_, input_, looper_, looperBeginJobRun_, edm::make_empty_waiting_task(), edm::PreallocationConfiguration::numberOfStreams(), preallocations_, principalCache_, processContext_, edm::RunPrincipal::run(), edm::PrincipalCache::runPrincipal(), schedule_, and subProcesses_.
|
inlineprivate |
Definition at line 262 of file EventProcessor.h.
References edm::get_underlying_safe().
Referenced by init().
|
inlineprivate |
Definition at line 263 of file EventProcessor.h.
References edm::get_underlying_safe().
|
private |
Definition at line 702 of file EventProcessor.cc.
References epSignal, and edm::shutdown_flag.
Referenced by nextTransitionType(), and readNextEventForStream().
void edm::EventProcessor::clearCounters | ( | ) |
Clears counters used by trigger report.
Definition at line 693 of file EventProcessor.cc.
References schedule_.
void edm::EventProcessor::closeInputFile | ( | bool | cleaningUpAfterException | ) |
Definition at line 835 of file EventProcessor.cc.
References actReg_, fb_, FDEBUG, and input_.
void edm::EventProcessor::closeOutputFiles | ( | ) |
Definition at line 852 of file EventProcessor.cc.
References fb_, FDEBUG, edm::for_all(), schedule_, and subProcesses_.
void edm::EventProcessor::deleteLumiFromCache | ( | ProcessHistoryID const & | phid, |
RunNumber_t | run, | ||
LuminosityBlockNumber_t | lumi | ||
) |
Definition at line 1305 of file EventProcessor.cc.
References edm::PrincipalCache::deleteLumi(), FDEBUG, edm::for_all(), principalCache_, and subProcesses_.
void edm::EventProcessor::deleteRunFromCache | ( | ProcessHistoryID const & | phid, |
RunNumber_t | run | ||
) |
Definition at line 1293 of file EventProcessor.cc.
References edm::PrincipalCache::deleteRun(), FDEBUG, edm::for_all(), principalCache_, and subProcesses_.
void edm::EventProcessor::doErrorStuff | ( | ) |
Definition at line 924 of file EventProcessor.cc.
References FDEBUG.
Referenced by runToCompletion().
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 678 of file EventProcessor.cc.
References schedule_.
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 622 of file EventProcessor.cc.
References actReg_, EnergyCorrector::c, edm::ExceptionCollector::call(), edm::SubProcess::doEndJob(), edm::InputSource::doEndJob(), edm::EDLooperBase::endOfJob(), edm::ExceptionCollector::hasThrown(), mps_fire::i, input_, looper(), looper_, edm::PreallocationConfiguration::numberOfStreams(), cmsPerfStripChart::operate(), preallocations_, edm::ExceptionCollector::rethrow(), schedule_, serviceToken_, and subProcesses_.
Referenced by PythonEventProcessor::~PythonEventProcessor().
void edm::EventProcessor::endLumi | ( | ProcessHistoryID const & | phid, |
RunNumber_t | run, | ||
LuminosityBlockNumber_t | lumi, | ||
bool | globalBeginSucceeded, | ||
bool | cleaningUpAfterException | ||
) |
Definition at line 1150 of file EventProcessor.cc.
References actReg_, edm::LuminosityBlockPrincipal::endTime(), esp_, espController_, FDEBUG, input_, looper_, edm::LuminosityBlockPrincipal::luminosityBlock(), edm::PrincipalCache::lumiPrincipal(), edm::make_empty_waiting_task(), edm::EventID::maxEventNumber(), edm::PreallocationConfiguration::numberOfStreams(), preallocations_, principalCache_, processContext_, edm::Principal::resetFailedFromThisProcess(), edm::LuminosityBlockPrincipal::run(), schedule_, edm::Principal::setAtEndTransition(), edm::LuminosityBlockPrincipal::setComplete(), edm::LuminosityBlockPrincipal::setEndTime(), and subProcesses_.
Referenced by Types.EventRange::cppID().
bool edm::EventProcessor::endOfLoop | ( | ) |
Definition at line 887 of file EventProcessor.cc.
References esp_, FDEBUG, forceLooperToEnd_, edm::EDLooperBase::kContinue, looper_, preg_, schedule_, and mps_update::status.
Referenced by runToCompletion().
bool edm::EventProcessor::endPathsEnabled | ( | ) | const |
Return true if end_paths are active, and false if they are inactive.
Definition at line 683 of file EventProcessor.cc.
References schedule_.
void edm::EventProcessor::endRun | ( | ProcessHistoryID const & | phid, |
RunNumber_t | run, | ||
bool | globalBeginSucceeded, | ||
bool | cleaningUpAfterException | ||
) |
Definition at line 1007 of file EventProcessor.cc.
References actReg_, edm::RunPrincipal::endTime(), esp_, espController_, FDEBUG, input_, looper_, edm::make_empty_waiting_task(), edm::EventID::maxEventNumber(), edm::LuminosityBlockID::maxLuminosityBlockNumber(), edm::PreallocationConfiguration::numberOfStreams(), preallocations_, principalCache_, processContext_, edm::Principal::resetFailedFromThisProcess(), edm::RunPrincipal::run(), edm::PrincipalCache::runPrincipal(), schedule_, edm::Principal::setAtEndTransition(), edm::RunPrincipal::setComplete(), edm::RunPrincipal::setEndTime(), and subProcesses_.
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 658 of file EventProcessor.cc.
References schedule_.
ServiceToken edm::EventProcessor::getToken | ( | ) |
Definition at line 653 of file EventProcessor.cc.
References serviceToken_.
Referenced by ~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 688 of file EventProcessor.cc.
References schedule_.
|
private |
Definition at line 1362 of file EventProcessor.cc.
References deferredExceptionPtr_, deferredExceptionPtrIsSet_, edm::WaitingTaskHolder::doneWaiting(), MillePedeFileConverter_cfg::e, edm::make_waiting_task(), cmsPerfStripChart::operate(), processEventAsync(), edm::SerialTaskQueueChain::push(), readNextEventForStream(), edm::SharedResourcesAcquirer::serialQueueChain(), serviceToken_, and sourceResourcesAcquirer_.
Referenced by readAndProcessEvents().
|
private |
Definition at line 376 of file EventProcessor.cc.
References edm::ScheduleItems::act_table_, act_table_, edm::ScheduleItems::actReg_, actReg_, edm::ScheduleItems::addCPRandTNS(), edm::ScheduleItems::branchIDListHelper(), branchIDListHelper(), branchIDListHelper_, trackingPlots::common, edm::errors::Configuration, esp_, espController_, Exception, FDEBUG, fileModeNoMerge_, edm::fillLooper(), forceESCacheClearOnNewRun_, edm::ParameterSet::getUntrackedParameter(), historyAppender_, diffTreeTool::index, edm::ScheduleItems::initMisc(), edm::ScheduleItems::initSchedule(), edm::ScheduleItems::initServices(), input_, edm::PrincipalCache::insert(), edm::ParentageRegistry::insertMapped(), edm::ParentageRegistry::instance(), mps_monitormerge::items, edm::serviceregistry::kConfigurationOverrides, looper_, edm::makeInput(), eostools::move(), edm::PreallocationConfiguration::numberOfStreams(), cmsPerfStripChart::operate(), edm::parameterSet(), edm::popSubProcessVParameterSet(), preallocations_, edm::ScheduleItems::preg(), preg(), preg_, principalCache_, printDependencies_, edm::ScheduleItems::processConfiguration(), processConfiguration_, processContext_, edm::ParameterSet::registerIt(), schedule_, serviceToken_, edm::PrincipalCache::setNumberOfConcurrentPrincipals(), edm::ProcessContext::setProcessConfiguration(), edm::PrincipalCache::setProcessHistoryRegistry(), edm::IllegalParameters::setThrowAnException(), AlCaHLTBitMon_QueryRunRegistry::string, subProcesses_, edm::ScheduleItems::thinnedAssociationsHelper(), thinnedAssociationsHelper(), and thinnedAssociationsHelper_.
Referenced by EventProcessor().
|
inlineprivate |
Definition at line 266 of file EventProcessor.h.
References edm::get_underlying_safe().
Referenced by endJob().
|
inlineprivate |
Definition at line 267 of file EventProcessor.h.
References edm::get_underlying_safe().
edm::LuminosityBlockNumber_t edm::EventProcessor::nextLuminosityBlockID | ( | ) |
Definition at line 740 of file EventProcessor.cc.
References input_.
std::pair< edm::ProcessHistoryID, edm::RunNumber_t > edm::EventProcessor::nextRunID | ( | ) |
Definition at line 735 of file EventProcessor.cc.
References input_.
InputSource::ItemType edm::EventProcessor::nextTransitionType | ( | ) |
Definition at line 714 of file EventProcessor.cc.
References actReg_, checkForAsyncStopRequest(), epSuccess, edm::ExternalSignal, input_, edm::InputSource::IsStop, edm::InputSource::IsSynchronize, and runEdmFileComparison::returnCode.
void edm::EventProcessor::openOutputFiles | ( | ) |
Definition at line 844 of file EventProcessor.cc.
References fb_, FDEBUG, edm::for_all(), schedule_, and subProcesses_.
|
delete |
|
inlineprivate |
Definition at line 260 of file EventProcessor.h.
References edm::get_underlying_safe().
Referenced by beginJob(), init(), readAndMergeLumi(), readAndMergeRun(), readFile(), readLuminosityBlock(), and readRun().
|
inlineprivate |
Definition at line 261 of file EventProcessor.h.
References edm::get_underlying_safe().
void edm::EventProcessor::prepareForNextLoop | ( | ) |
Definition at line 906 of file EventProcessor.cc.
References esp_, FDEBUG, edm::propagate_const< T >::get(), and looper_.
Referenced by runToCompletion().
|
inline |
Definition at line 126 of file EventProcessor.h.
References Ecal2004TBTDCRanges_v1_cff::endRun, EcalCondTools::getToken(), init, python.rootplot.argparse::message, cuy::rep, findQualityFiles::run, and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 1450 of file EventProcessor.cc.
References edm::make_functor_task(), and processEventAsyncImpl().
Referenced by handleNextEventForStreamAsync().
|
private |
Definition at line 1457 of file EventProcessor.cc.
References edm::WaitingTaskHolder::doneWaiting(), esp_, ev, edm::PrincipalCache::eventPrincipal(), FDEBUG, edm::Service< T >::isAvailable(), looper_, edm::PrincipalCache::lumiPrincipalPtr(), edm::make_waiting_task(), eostools::move(), cmsPerfStripChart::operate(), principalCache_, processEventWithLooper(), groupFilesInBlocks::reverse, schedule_, serviceToken_, and subProcesses_.
Referenced by processEventAsync().
|
private |
Definition at line 1524 of file EventProcessor.cc.
References esp_, input_, edm::EDLooperBase::kContinue, edm::ProcessingController::kToPreviousEvent, edm::ProcessingController::kToSpecifiedEvent, edm::ProcessingController::lastOperationSucceeded(), looper_, processContext_, edm::ProcessingController::requestedTransition(), edm::ProcessingController::setLastOperationSucceeded(), shouldWeStop_, edm::ProcessingController::specifiedEventTransition(), mps_update::status, edm::EventPrincipal::streamID(), and summarizeEdmComparisonLogfiles::succeeded.
Referenced by processEventAsyncImpl().
int edm::EventProcessor::readAndMergeLumi | ( | ) |
Definition at line 1277 of file EventProcessor.cc.
References actReg_, input_, edm::PrincipalCache::lumiPrincipalPtr(), edm::PrincipalCache::merge(), preg(), and principalCache_.
std::pair< ProcessHistoryID, RunNumber_t > edm::EventProcessor::readAndMergeRun | ( | ) |
Definition at line 1240 of file EventProcessor.cc.
References actReg_, input_, edm::PrincipalCache::merge(), preg(), principalCache_, and edm::PrincipalCache::runPrincipalPtr().
InputSource::ItemType edm::EventProcessor::readAndProcessEvents | ( | ) |
Definition at line 1400 of file EventProcessor.cc.
References asyncStopRequestedWhileProcessingEvents_, deferredExceptionPtr_, deferredExceptionPtrIsSet_, firstEventInBlock_, handleNextEventForStreamAsync(), edm::InputSource::IsEvent, edm::make_empty_waiting_task(), edm::make_waiting_task(), nextItemTypeFromProcessingEvents_, edm::PreallocationConfiguration::numberOfStreams(), preallocations_, and lumiQTWidget::t.
|
private |
Definition at line 1438 of file EventProcessor.cc.
References actReg_, edm::PrincipalCache::eventPrincipal(), FDEBUG, input_, principalCache_, and processContext_.
Referenced by readNextEventForStream().
void edm::EventProcessor::readFile | ( | ) |
Definition at line 818 of file EventProcessor.cc.
References actReg_, edm::PrincipalCache::adjustEventsToNewProductRegistry(), edm::PrincipalCache::adjustIndexesAfterProductRegistryAddition(), fb_, FDEBUG, input_, edm::PreallocationConfiguration::numberOfStreams(), edm::PreallocationConfiguration::numberOfThreads(), edm::FileBlock::ParallelProcesses, preallocations_, preg(), preg_, principalCache_, and findQualityFiles::size.
Referenced by Vispa.Plugins.EventBrowser.EventBrowserTabController.EventBrowserTabController::navigate(), Vispa.Main.TabController.TabController::open(), and Vispa.Main.TabController.TabController::refresh().
int edm::EventProcessor::readLuminosityBlock | ( | ) |
Definition at line 1252 of file EventProcessor.cc.
References actReg_, Exception, edm::PrincipalCache::hasLumiPrincipal(), edm::PrincipalCache::hasRunPrincipal(), historyAppender_, input_, edm::PrincipalCache::insert(), edm::errors::LogicError, preg(), principalCache_, processConfiguration_, and edm::PrincipalCache::runPrincipalPtr().
|
private |
Definition at line 1311 of file EventProcessor.cc.
References actReg_, asyncStopRequestedWhileProcessingEvents_, asyncStopStatusCodeFromProcessingEvents_, checkForAsyncStopRequest(), deferredExceptionPtr_, deferredExceptionPtrIsSet_, edm::ExternalSignal, firstEventInBlock_, input_, edm::InputSource::IsEvent, nextItemTypeFromProcessingEvents_, cmsPerfStripChart::operate(), readEvent(), serviceToken_, shouldWeStop(), and sourceMutex_.
Referenced by handleNextEventForStreamAsync().
std::pair< ProcessHistoryID, RunNumber_t > edm::EventProcessor::readRun | ( | ) |
Definition at line 1222 of file EventProcessor.cc.
References actReg_, Exception, edm::PrincipalCache::hasRunPrincipal(), historyAppender_, input_, edm::PrincipalCache::insert(), edm::errors::LogicError, preg(), principalCache_, and processConfiguration_.
void edm::EventProcessor::respondToCloseInputFile | ( | ) |
Definition at line 869 of file EventProcessor.cc.
References fb_, FDEBUG, edm::for_all(), schedule_, and subProcesses_.
void edm::EventProcessor::respondToOpenInputFile | ( | ) |
Definition at line 860 of file EventProcessor.cc.
References branchIDListHelper_, fb_, FDEBUG, edm::for_all(), schedule_, and subProcesses_.
void edm::EventProcessor::rewindInput | ( | ) |
Definition at line 900 of file EventProcessor.cc.
References FDEBUG, and input_.
Referenced by runToCompletion().
|
inline |
Definition at line 329 of file EventProcessor.h.
Referenced by Types.EventID::cppID(), and Types.LuminosityBlockID::cppID().
EventProcessor::StatusCode edm::EventProcessor::runToCompletion | ( | ) |
Definition at line 745 of file EventProcessor.cc.
References cms::Exception::addAdditionalInfo(), cms::Exception::alreadyPrinted(), asyncStopRequestedWhileProcessingEvents_, asyncStopStatusCodeFromProcessingEvents_, beginJob(), deferredExceptionPtr_, deferredExceptionPtrIsSet_, doErrorStuff(), MillePedeFileConverter_cfg::e, endOfLoop(), epSuccess, Exception, exceptionMessageFiles_, exceptionMessageLumis_, exceptionMessageRuns_, fileModeNoMerge_, edm::InputSource::IsEvent, edm::InputSource::IsStop, nextItemTypeFromProcessingEvents_, cmsPerfStripChart::operate(), prepareForNextLoop(), runEdmFileComparison::returnCode, rewindInput(), serviceToken_, startingNewLoop(), and edm::convertException::wrap().
Referenced by PythonEventProcessor::run().
bool edm::EventProcessor::setDeferredException | ( | std::exception_ptr | iException | ) |
Definition at line 1576 of file EventProcessor.cc.
References deferredExceptionPtr_, and deferredExceptionPtrIsSet_.
void edm::EventProcessor::setExceptionMessageFiles | ( | std::string & | message | ) |
Definition at line 1564 of file EventProcessor.cc.
References exceptionMessageFiles_, and python.rootplot.argparse::message.
void edm::EventProcessor::setExceptionMessageLumis | ( | std::string & | message | ) |
Definition at line 1572 of file EventProcessor.cc.
References exceptionMessageLumis_, and python.rootplot.argparse::message.
void edm::EventProcessor::setExceptionMessageRuns | ( | std::string & | message | ) |
Definition at line 1568 of file EventProcessor.cc.
References exceptionMessageRuns_, and python.rootplot.argparse::message.
bool edm::EventProcessor::shouldWeCloseOutput | ( | ) | const |
Definition at line 911 of file EventProcessor.cc.
References FDEBUG, schedule_, and subProcesses_.
bool edm::EventProcessor::shouldWeStop | ( | ) | const |
Definition at line 1550 of file EventProcessor.cc.
References FDEBUG, schedule_, shouldWeStop_, and subProcesses_.
Referenced by readNextEventForStream().
void edm::EventProcessor::startingNewLoop | ( | ) |
Definition at line 877 of file EventProcessor.cc.
References FDEBUG, looper_, looperBeginJobRun_, and shouldWeStop_.
Referenced by runToCompletion().
|
inlineprivate |
Definition at line 264 of file EventProcessor.h.
References edm::get_underlying_safe().
Referenced by init().
|
inlineprivate |
Definition at line 265 of file EventProcessor.h.
References edm::get_underlying_safe().
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 663 of file EventProcessor.cc.
References schedule_.
Referenced by PythonEventProcessor::totalEvents().
int edm::EventProcessor::totalEventsFailed | ( | ) | const |
Return the number of events that have not passed any trigger. (N.B. totalEventsFailed() + totalEventsPassed() == totalEvents()
Definition at line 673 of file EventProcessor.cc.
References schedule_.
Referenced by PythonEventProcessor::totalEventsFailed().
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 668 of file EventProcessor.cc.
References schedule_.
Referenced by PythonEventProcessor::totalEventsPassed().
void edm::EventProcessor::writeLumi | ( | ProcessHistoryID const & | phid, |
RunNumber_t | run, | ||
LuminosityBlockNumber_t | lumi | ||
) |
Definition at line 1299 of file EventProcessor.cc.
References FDEBUG, edm::for_all(), edm::PrincipalCache::lumiPrincipal(), principalCache_, processContext_, schedule_, and subProcesses_.
void edm::EventProcessor::writeRun | ( | ProcessHistoryID const & | phid, |
RunNumber_t | run | ||
) |
Definition at line 1287 of file EventProcessor.cc.
References FDEBUG, edm::for_all(), principalCache_, processContext_, edm::PrincipalCache::runPrincipal(), schedule_, and subProcesses_.
|
private |
Definition at line 283 of file EventProcessor.h.
Referenced by init().
|
private |
Definition at line 275 of file EventProcessor.h.
Referenced by beginJob(), beginLumi(), beginRun(), closeInputFile(), endJob(), endLumi(), endRun(), init(), nextTransitionType(), readAndMergeLumi(), readAndMergeRun(), readEvent(), readFile(), readLuminosityBlock(), readNextEventForStream(), readRun(), and ~EventProcessor().
|
private |
Definition at line 313 of file EventProcessor.h.
Referenced by readAndProcessEvents(), readNextEventForStream(), and runToCompletion().
|
private |
Definition at line 315 of file EventProcessor.h.
Referenced by readNextEventForStream(), and runToCompletion().
|
private |
Definition at line 301 of file EventProcessor.h.
Referenced by beginJob().
|
private |
Definition at line 277 of file EventProcessor.h.
Referenced by init(), and respondToOpenInputFile().
|
private |
Definition at line 296 of file EventProcessor.h.
Referenced by handleNextEventForStreamAsync(), readAndProcessEvents(), readNextEventForStream(), runToCompletion(), and setDeferredException().
|
private |
Definition at line 295 of file EventProcessor.h.
Referenced by handleNextEventForStreamAsync(), readAndProcessEvents(), readNextEventForStream(), runToCompletion(), and setDeferredException().
|
private |
Definition at line 282 of file EventProcessor.h.
Referenced by beginLumi(), beginRun(), endLumi(), endOfLoop(), endRun(), init(), prepareForNextLoop(), processEventAsyncImpl(), processEventWithLooper(), and ~EventProcessor().
|
private |
Definition at line 281 of file EventProcessor.h.
Referenced by beginLumi(), beginRun(), endLumi(), endRun(), init(), and ~EventProcessor().
|
private |
Definition at line 320 of file EventProcessor.h.
|
private |
Definition at line 304 of file EventProcessor.h.
Referenced by runToCompletion(), and setExceptionMessageFiles().
|
private |
Definition at line 306 of file EventProcessor.h.
Referenced by runToCompletion(), and setExceptionMessageLumis().
|
private |
Definition at line 305 of file EventProcessor.h.
Referenced by runToCompletion(), and setExceptionMessageRuns().
|
private |
Definition at line 291 of file EventProcessor.h.
Referenced by closeInputFile(), closeOutputFiles(), openOutputFiles(), readFile(), respondToCloseInputFile(), and respondToOpenInputFile().
|
private |
Definition at line 303 of file EventProcessor.h.
Referenced by init(), and runToCompletion().
|
private |
Definition at line 316 of file EventProcessor.h.
Referenced by readAndProcessEvents(), and readNextEventForStream().
|
private |
Definition at line 309 of file EventProcessor.h.
Referenced by beginRun(), and init().
|
private |
Definition at line 307 of file EventProcessor.h.
Referenced by endOfLoop().
|
private |
Definition at line 289 of file EventProcessor.h.
Referenced by init(), readLuminosityBlock(), and readRun().
|
private |
Definition at line 280 of file EventProcessor.h.
Referenced by beginJob(), beginLumi(), beginRun(), closeInputFile(), endJob(), endLumi(), endRun(), init(), nextLuminosityBlockID(), nextRunID(), nextTransitionType(), processEventWithLooper(), readAndMergeLumi(), readAndMergeRun(), readEvent(), readFile(), readLuminosityBlock(), readNextEventForStream(), readRun(), rewindInput(), and ~EventProcessor().
|
private |
Definition at line 292 of file EventProcessor.h.
Referenced by beginLumi(), beginRun(), Config.Process::dumpConfig(), Config.Process::dumpPython(), endJob(), endLumi(), endOfLoop(), endRun(), init(), prepareForNextLoop(), processEventAsyncImpl(), processEventWithLooper(), startingNewLoop(), and ~EventProcessor().
|
private |
Definition at line 308 of file EventProcessor.h.
Referenced by beginRun(), and startingNewLoop().
|
private |
Definition at line 314 of file EventProcessor.h.
Referenced by readAndProcessEvents(), readNextEventForStream(), and runToCompletion().
|
private |
Definition at line 286 of file EventProcessor.h.
Referenced by beginJob().
|
private |
Definition at line 311 of file EventProcessor.h.
Referenced by beginJob(), beginLumi(), beginRun(), endJob(), endLumi(), endRun(), init(), readAndProcessEvents(), and readFile().
|
private |
Definition at line 276 of file EventProcessor.h.
Referenced by beginJob(), endOfLoop(), init(), and readFile().
|
private |
Definition at line 300 of file EventProcessor.h.
Referenced by beginLumi(), beginRun(), deleteLumiFromCache(), deleteRunFromCache(), endLumi(), endRun(), init(), processEventAsyncImpl(), readAndMergeLumi(), readAndMergeRun(), readEvent(), readFile(), readLuminosityBlock(), readRun(), writeLumi(), and writeRun().
|
private |
Definition at line 322 of file EventProcessor.h.
Referenced by beginJob(), and init().
|
private |
Definition at line 284 of file EventProcessor.h.
Referenced by beginJob(), init(), readLuminosityBlock(), and readRun().
|
private |
Definition at line 285 of file EventProcessor.h.
Referenced by beginJob(), beginLumi(), beginRun(), endLumi(), endRun(), init(), processEventWithLooper(), readEvent(), writeLumi(), and writeRun().
|
private |
Definition at line 287 of file EventProcessor.h.
Referenced by Config.Process::_insertPaths(), Config.Process::_replaceInSchedule(), beginJob(), beginLumi(), beginRun(), clearCounters(), closeOutputFiles(), Config.Process::dumpPython(), enableEndPaths(), endJob(), endLumi(), endOfLoop(), endPathsEnabled(), endRun(), getAllModuleDescriptions(), getTriggerReport(), init(), openOutputFiles(), processEventAsyncImpl(), Config.Process::prune(), Config.Process::resolve(), respondToCloseInputFile(), respondToOpenInputFile(), shouldWeCloseOutput(), shouldWeStop(), totalEvents(), totalEventsFailed(), totalEventsPassed(), writeLumi(), writeRun(), and ~EventProcessor().
|
private |
Definition at line 279 of file EventProcessor.h.
Referenced by beginJob(), endJob(), getToken(), handleNextEventForStreamAsync(), init(), processEventAsyncImpl(), readNextEventForStream(), and runToCompletion().
|
private |
Definition at line 302 of file EventProcessor.h.
Referenced by processEventWithLooper(), shouldWeStop(), and startingNewLoop().
|
private |
Definition at line 299 of file EventProcessor.h.
Referenced by readNextEventForStream().
|
private |
Definition at line 298 of file EventProcessor.h.
Referenced by handleNextEventForStreamAsync().
|
private |
Definition at line 288 of file EventProcessor.h.
Referenced by beginJob(), beginLumi(), beginRun(), closeOutputFiles(), deleteLumiFromCache(), deleteRunFromCache(), Config.Process::dumpConfig(), Config.Process::dumpPython(), endJob(), endLumi(), endRun(), init(), openOutputFiles(), processEventAsyncImpl(), respondToCloseInputFile(), respondToOpenInputFile(), shouldWeCloseOutput(), shouldWeStop(), writeLumi(), and writeRun().
|
private |
Definition at line 278 of file EventProcessor.h.
Referenced by init().