#include <EventProcessor.h>
Public Types | |
using | ProcessBlockType = PrincipalCache::ProcessBlockType |
enum | StatusCode { epSuccess = 0, epException = 1, epOther = 2, epSignal = 3, epInputComplete = 4, epTimedOut = 5, epCountComplete = 6 } |
Private Types | |
typedef std::set< std::pair< std::string, std::string > > | ExcludedData |
typedef std::map< std::string, ExcludedData > | ExcludedDataMap |
Definition at line 66 of file EventProcessor.h.
|
private |
Definition at line 365 of file EventProcessor.h.
|
private |
Definition at line 366 of file EventProcessor.h.
Definition at line 243 of file EventProcessor.h.
Enumerator | |
---|---|
epSuccess | |
epException | |
epOther | |
epSignal | |
epInputComplete | |
epTimedOut | |
epCountComplete |
Definition at line 76 of file EventProcessor.h.
|
explicit |
Definition at line 233 of file EventProcessor.cc.
References init(), eostools::move(), and edm::parameterSet().
edm::EventProcessor::EventProcessor | ( | std::unique_ptr< ParameterSet > | parameterSet, |
std::vector< std::string > const & | defaultServices, | ||
std::vector< std::string > const & | forcedServices = std::vector<std::string>() |
||
) |
Definition at line 271 of file EventProcessor.cc.
References init(), edm::serviceregistry::kOverlapIsError, eostools::move(), and edm::parameterSet().
edm::EventProcessor::EventProcessor | ( | std::shared_ptr< ProcessDesc > | processDesc, |
ServiceToken const & | token, | ||
serviceregistry::ServiceLegacy | legacy | ||
) |
Definition at line 308 of file EventProcessor.cc.
References init(), and unpackBuffers-CaloStage2::token.
edm::EventProcessor::~EventProcessor | ( | ) |
Definition at line 579 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_, schedule_, and unpackBuffers-CaloStage2::token.
|
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 604 of file EventProcessor.cc.
References actReg_, cms::Exception::addContext(), bk::beginJob(), beginJobCalled_, branchesToDeleteEarly_, c, edm::checkForModuleDependencyCorrectness(), deleteNonConsumedUnscheduledModules_, edmLumisInFiles::description, esp_, espController_, edm::first(), edm::for_all(), watchdog::group, mps_fire::i, edm::waiting_task::chain::ifThen(), edm::InEvent, edm::PathsAndConsumesOfModules::initialize(), edm::InLumi, edm::InProcess, input_, edm::InRun, cmsLHEtoEOSManager::l, dqmdumpme::last, edm::waiting_task::chain::lastTask(), looper_, MatrixUtil::merge(), eostools::move(), edm::nonConsumedUnscheduledModules(), edm::PreallocationConfiguration::numberOfLuminosityBlocks(), edm::PreallocationConfiguration::numberOfRuns(), edm::PreallocationConfiguration::numberOfStreams(), edm::PreallocationConfiguration::numberOfThreads(), pathsAndConsumesOfModules_, preallocations_, preg(), preg_, printDependencies_, processBlockHelper_, processConfiguration_, processContext_, edm::PathsAndConsumesOfModules::removeModules(), edm::waiting_task::chain::runLast(), schedule_, serviceToken_, subProcesses_, edm::swap(), std::swap(), throwAboutModulesRequiringLuminosityBlockSynchronization(), createJobs::tmp, warnAboutLegacyModules(), and edm::convertException::wrap().
Referenced by runToCompletion().
void edm::EventProcessor::beginLumiAsync | ( | edm::IOVSyncValue const & | iSyncValue, |
std::shared_ptr< void > const & | iRunResource, | ||
edm::WaitingTaskHolder | iHolder | ||
) |
Definition at line 1358 of file EventProcessor.cc.
References actReg_, edm::BeginLuminosityBlock, CMS_SA_ALLOW, edm::signalslot::Signal< T >::emit(), esp_, espController_, edm::PrincipalCache::eventPrincipal(), first, watchdog::group, handleNextEventForStreamAsync(), mps_fire::i, edm::waiting_task::chain::ifThen(), input_, edm::Service< T >::isAvailable(), looper_, lumiQueue_, eostools::move(), edm::PreallocationConfiguration::numberOfStreams(), preallocations_, edm::ActivityRegistry::preESSyncIOVSignal_, principalCache_, processContext_, edm::SerialTaskQueueChain::push(), edm::SerialTaskQueue::push(), createBeamHaloJobs::queue, queueWhichWaitsForIOVsToFinish_, readLuminosityBlock(), edm::waiting_task::chain::runLast(), schedule_, edm::SharedResourcesAcquirer::serialQueueChain(), serviceToken_, sourceResourcesAcquirer_, mps_update::status, streamEndLumiAsync(), streamLumiActive_, streamLumiStatus_, streamQueues_, subProcesses_, TrackValidation_cff::task, edm::WaitingTaskHolder::taskHasFailed(), edm::waiting_task::chain::then(), and createJobs::tmp.
Referenced by handleNextEventForStreamAsync(), and processLumis().
void edm::EventProcessor::beginProcessBlock | ( | bool & | beginProcessBlockSucceeded | ) |
Definition at line 1048 of file EventProcessor.cc.
References edm::FinalWaitingTask::done(), edm::WaitingTask::exceptionPtr(), edm::ProcessBlockPrincipal::fillProcessBlockPrincipal(), principalCache_, edm::PrincipalCache::processBlockPrincipal(), processConfiguration_, schedule_, serviceToken_, subProcesses_, and taskGroup_.
void edm::EventProcessor::beginRun | ( | ProcessHistoryID const & | phid, |
RunNumber_t | run, | ||
bool & | globalBeginSucceeded, | ||
bool & | eventSetupForInstanceSucceeded | ||
) |
Definition at line 1142 of file EventProcessor.cc.
References actReg_, edm::BeginRun, edm::RunPrincipal::beginTime(), edm::FinalWaitingTask::done(), esp_, espController_, edm::WaitingTask::exceptionPtr(), FDEBUG, first, forceESCacheClearOnNewRun_, edm::waiting_task::chain::ifThen(), input_, looper_, looperBeginJobRun_, eostools::move(), edm::PreallocationConfiguration::numberOfStreams(), preallocations_, principalCache_, processContext_, edm::RunPrincipal::run(), run(), edm::waiting_task::chain::runLast(), edm::PrincipalCache::runPrincipal(), schedule_, serviceToken_, subProcesses_, edm::eventsetup::synchronousEventSetupForInstance(), taskGroup_, and edm::waiting_task::chain::then().
|
inlineprivate |
Definition at line 287 of file EventProcessor.h.
References branchIDListHelper_, and edm::get_underlying_safe().
Referenced by init().
|
inlineprivate |
Definition at line 290 of file EventProcessor.h.
References branchIDListHelper_, and edm::get_underlying_safe().
|
private |
Definition at line 818 of file EventProcessor.cc.
References epSignal, runEdmFileComparison::returnCode, and edm::shutdown_flag.
Referenced by nextTransitionType().
void edm::EventProcessor::clearCounters | ( | ) |
Clears counters used by trigger report.
Definition at line 812 of file EventProcessor.cc.
References schedule_.
void edm::EventProcessor::closeInputFile | ( | bool | cleaningUpAfterException | ) |
Definition at line 948 of file EventProcessor.cc.
References actReg_, fb_, FDEBUG, fileBlockValid(), and input_.
void edm::EventProcessor::closeOutputFiles | ( | ) |
Definition at line 965 of file EventProcessor.cc.
References FDEBUG, edm::for_all(), processBlockHelper_, schedule_, and subProcesses_.
void edm::EventProcessor::continueLumiAsync | ( | edm::WaitingTaskHolder | iHolder | ) |
Definition at line 1523 of file EventProcessor.cc.
References edm::WaitingTaskHolder::group(), h, handleNextEventForStreamAsync(), eostools::move(), edm::PreallocationConfiguration::numberOfStreams(), preallocations_, mps_update::status, and streamLumiStatus_.
Referenced by processLumis().
void edm::EventProcessor::deleteLumiFromCache | ( | LuminosityBlockProcessingStatus & | iStatus | ) |
Definition at line 1821 of file EventProcessor.cc.
References edm::LuminosityBlockPrincipal::kUninitialized, edm::LuminosityBlockProcessingStatus::lumiPrincipal(), alignCSCRings::s, and subProcesses_.
Referenced by globalEndLumiAsync().
void edm::EventProcessor::deleteRunFromCache | ( | ProcessHistoryID const & | phid, |
RunNumber_t | run | ||
) |
Definition at line 1798 of file EventProcessor.cc.
References edm::PrincipalCache::deleteRun(), FDEBUG, edm::for_all(), principalCache_, run(), and subProcesses_.
Referenced by endUnfinishedRun().
void edm::EventProcessor::doErrorStuff | ( | ) |
Definition at line 1039 of file EventProcessor.cc.
References FDEBUG.
Referenced by runToCompletion().
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 733 of file EventProcessor.cc.
References actReg_, c, edm::SubProcess::doEndJob(), edm::InputSource::doEndJob(), edm::EDLooperBase::endOfJob(), SiStripBadComponentsDQMServiceTemplate_cfg::ep, edm::first(), watchdog::group, mps_fire::i, input_, cmsLHEtoEOSManager::l, edm::waiting_task::chain::lastTask(), looper(), looper_, mutex, edm::PreallocationConfiguration::numberOfStreams(), preallocations_, schedule_, serviceToken_, subProcesses_, and edm::waiting_task::chain::then().
Referenced by PythonEventProcessor::~PythonEventProcessor().
bool edm::EventProcessor::endOfLoop | ( | ) |
Definition at line 1000 of file EventProcessor.cc.
References esp_, FDEBUG, forceLooperToEnd_, edm::EDLooperBase::kContinue, looper_, preg_, schedule_, and mps_update::status.
Referenced by runToCompletion().
void edm::EventProcessor::endProcessBlock | ( | bool | cleaningUpAfterException, |
bool | beginProcessBlockSucceeded | ||
) |
Definition at line 1105 of file EventProcessor.cc.
References edm::Principal::clearPrincipal(), edm::FinalWaitingTask::done(), edm::WaitingTask::exceptionPtr(), edm::PrincipalCache::New, principalCache_, edm::PrincipalCache::processBlockPrincipal(), alignCSCRings::s, schedule_, serviceToken_, subProcesses_, taskGroup_, and writeProcessBlockAsync().
void edm::EventProcessor::endRun | ( | ProcessHistoryID const & | phid, |
RunNumber_t | run, | ||
bool | globalBeginSucceeded, | ||
bool | cleaningUpAfterException | ||
) |
Definition at line 1268 of file EventProcessor.cc.
References actReg_, edm::FinalWaitingTask::done(), edm::EndRun, edm::RunPrincipal::endTime(), esp_, espController_, edm::WaitingTask::exceptionPtr(), FDEBUG, first, edm::waiting_task::chain::ifThen(), input_, looper_, edm::EventID::maxEventNumber(), edm::LuminosityBlockID::maxLuminosityBlockNumber(), eostools::move(), edm::PreallocationConfiguration::numberOfStreams(), preallocations_, principalCache_, processContext_, edm::RunPrincipal::run(), run(), edm::waiting_task::chain::runLast(), edm::PrincipalCache::runPrincipal(), schedule_, serviceToken_, edm::RunPrincipal::setEndTime(), subProcesses_, edm::eventsetup::synchronousEventSetupForInstance(), and taskGroup_.
Referenced by endUnfinishedRun().
void edm::EventProcessor::endUnfinishedLumi | ( | ) |
Definition at line 1667 of file EventProcessor.cc.
References edm::FinalWaitingTask::done(), edm::WaitingTask::exceptionPtr(), mps_fire::i, edm::PreallocationConfiguration::numberOfStreams(), preallocations_, streamEndLumiAsync(), streamLumiActive_, streamLumiStatus_, and taskGroup_.
void edm::EventProcessor::endUnfinishedRun | ( | ProcessHistoryID const & | phid, |
RunNumber_t | run, | ||
bool | globalBeginSucceeded, | ||
bool | cleaningUpAfterException, | ||
bool | eventSetupForInstanceSucceeded | ||
) |
Definition at line 1239 of file EventProcessor.cc.
References deleteRunFromCache(), endRun(), edm::RunPrincipal::kNo, edm::RunPrincipal::mergeableRunProductMetadata(), edm::MergeableRunProductMetadata::postWriteRun(), edm::MergeableRunProductMetadata::preWriteRun(), principalCache_, run(), edm::PrincipalCache::runPrincipal(), edm::RunPrincipal::shouldWriteRun(), submitPVValidationJobs::t, taskGroup_, and writeRunAsync().
|
inline |
Definition at line 196 of file EventProcessor.h.
References fb_.
Referenced by closeInputFile(), openOutputFiles(), respondToCloseInputFile(), and respondToOpenInputFile().
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 802 of file EventProcessor.cc.
References schedule_.
ServiceToken edm::EventProcessor::getToken | ( | ) |
Definition at line 800 of file EventProcessor.cc.
References serviceToken_.
Referenced by ~EventProcessor().
void edm::EventProcessor::globalEndLumiAsync | ( | edm::WaitingTaskHolder | iTask, |
std::shared_ptr< LuminosityBlockProcessingStatus > | iLumiStatus | ||
) |
Definition at line 1549 of file EventProcessor.cc.
References CMS_SA_ALLOW, deleteLumiFromCache(), edm::EndLuminosityBlock, esp_, first, handleEndLumiExceptions(), edm::waiting_task::chain::ifThen(), looper_, edm::EventID::maxEventNumber(), eostools::move(), processContext_, queueWhichWaitsForIOVsToFinish_, edm::SerialTaskQueue::resume(), edm::waiting_task::chain::runLast(), schedule_, serviceToken_, mps_update::status, subProcesses_, edm::waiting_task::chain::then(), and writeLumiAsync().
Referenced by streamEndLumiAsync().
void edm::EventProcessor::handleEndLumiExceptions | ( | std::exception_ptr const * | iPtr, |
WaitingTaskHolder & | holder | ||
) |
Definition at line 1540 of file EventProcessor.cc.
References setDeferredException(), setExceptionMessageLumis(), and createJobs::tmp.
Referenced by globalEndLumiAsync(), and streamEndLumiAsync().
|
private |
Definition at line 1892 of file EventProcessor.cc.
References beginLumiAsync(), CMS_SA_ALLOW, deferredExceptionPtr_, deferredExceptionPtrIsSet_, edm::WaitingTaskHolder::doneWaiting(), MillePedeFileConverter_cfg::e, edm::WaitingTaskHolder::group(), edm::InputSource::IsLumi, lastTransitionType(), edm::make_waiting_task(), eostools::move(), processEventAsync(), edm::SerialTaskQueueChain::push(), readNextEventForStream(), edm::SharedResourcesAcquirer::serialQueueChain(), serviceToken_, sourceResourcesAcquirer_, mps_update::status, streamEndLumiAsync(), and streamLumiStatus_.
Referenced by beginLumiAsync(), and continueLumiAsync().
|
private |
Definition at line 343 of file EventProcessor.cc.
References act_table_, actReg_, cms::cuda::assert(), branchesToDeleteEarly_, branchIDListHelper(), branchIDListHelper_, CMS_SA_ALLOW, trackingPlots::common, edm::errors::Configuration, deleteNonConsumedUnscheduledModules_, edm::dumpOptionsToLogFile(), edm::ensureAvailableAccelerators(), SiStripBadComponentsDQMServiceTemplate_cfg::ep, esp_, espController_, Exception, FDEBUG, processOptions_cff::fileMode, fileModeNoMerge_, edm::fillLooper(), forceESCacheClearOnNewRun_, edm::get_underlying_safe(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameterSet(), historyAppender_, input_, edm::PrincipalCache::insert(), edm::PrincipalCache::insertForInput(), edm::ParentageRegistry::insertMapped(), edm::ParentageRegistry::instance(), mps_monitormerge::items, edm::serviceregistry::kConfigurationOverrides, looper_, lumiQueue_, edm::makeInput(), mergeableRunProductProcesses_, eostools::move(), edm::PreallocationConfiguration::numberOfLuminosityBlocks(), edm::PreallocationConfiguration::numberOfStreams(), or, edm::parameterSet(), edm::popSubProcessVParameterSet(), preallocations_, preg(), preg_, principalCache_, printDependencies_, processBlockHelper_, processConfiguration_, processContext_, edm::ParameterSet::registerIt(), schedule_, serviceToken_, edm::PrincipalCache::setNumberOfConcurrentPrincipals(), edm::ProcessContext::setProcessConfiguration(), edm::MergeableRunProductProcesses::setProcessesWithMergeableRunProducts(), edm::PrincipalCache::setProcessHistoryRegistry(), edm::IllegalParameters::setThrowAnException(), streamLumiStatus_, streamQueues_, AlCaHLTBitMon_QueryRunRegistry::string, subProcesses_, thinnedAssociationsHelper(), thinnedAssociationsHelper_, unpackBuffers-CaloStage2::token, and edm::validateTopLevelParameterSets().
Referenced by EventProcessor().
void edm::EventProcessor::inputProcessBlocks | ( | ) |
Definition at line 1069 of file EventProcessor.cc.
References edm::Principal::clearPrincipal(), edm::FinalWaitingTask::done(), edm::WaitingTask::exceptionPtr(), edm::PrincipalCache::Input, input_, edm::PrincipalCache::inputProcessBlockPrincipal(), principalCache_, readProcessBlock(), alignCSCRings::s, schedule_, serviceToken_, subProcesses_, taskGroup_, and writeProcessBlockAsync().
|
inline |
Definition at line 186 of file EventProcessor.h.
References deferredExceptionPtrIsSet_, edm::InputSource::IsStop, and lastSourceTransition_.
Referenced by handleNextEventForStreamAsync(), and processLumis().
|
inlineprivate |
Definition at line 297 of file EventProcessor.h.
References edm::get_underlying_safe(), and looper_.
Referenced by endJob().
|
inlineprivate |
Definition at line 298 of file EventProcessor.h.
References edm::get_underlying_safe(), and looper_.
edm::LuminosityBlockNumber_t edm::EventProcessor::nextLuminosityBlockID | ( | ) |
Definition at line 859 of file EventProcessor.cc.
References input_.
Referenced by readNextEventForStream().
std::pair< edm::ProcessHistoryID, edm::RunNumber_t > edm::EventProcessor::nextRunID | ( | ) |
Definition at line 855 of file EventProcessor.cc.
References input_.
InputSource::ItemType edm::EventProcessor::nextTransitionType | ( | ) |
Definition at line 829 of file EventProcessor.cc.
References actReg_, checkForAsyncStopRequest(), deferredExceptionPtrIsSet_, epSuccess, edm::ExternalSignal, input_, edm::InputSource::IsStop, edm::InputSource::IsSynchronize, lastSourceTransition_, and runEdmFileComparison::returnCode.
Referenced by readNextEventForStream().
void edm::EventProcessor::openOutputFiles | ( | ) |
Definition at line 957 of file EventProcessor.cc.
References fb_, FDEBUG, fileBlockValid(), edm::for_all(), schedule_, and subProcesses_.
|
delete |
|
inlineprivate |
Definition at line 285 of file EventProcessor.h.
References edm::get_underlying_safe(), and preg_.
Referenced by beginJob(), init(), readAndMergeLumi(), readAndMergeRun(), readFile(), and readRun().
|
inlineprivate |
Definition at line 286 of file EventProcessor.h.
References edm::get_underlying_safe(), and preg_.
void edm::EventProcessor::prepareForNextLoop | ( | ) |
Definition at line 1021 of file EventProcessor.cc.
References esp_, FDEBUG, and looper_.
Referenced by runToCompletion().
|
inline |
Definition at line 140 of file EventProcessor.h.
References processConfiguration_.
|
private |
Definition at line 1963 of file EventProcessor.cc.
References edm::WaitingTaskHolder::group(), and processEventAsyncImpl().
Referenced by handleNextEventForStreamAsync().
|
private |
Definition at line 1967 of file EventProcessor.cc.
References esp_, makeMEIFBenchmarkPlots::ev, edm::PrincipalCache::eventPrincipal(), FDEBUG, first, edm::waiting_task::chain::ifThen(), info(), edm::Service< T >::isAvailable(), looper_, eostools::move(), principalCache_, processEventWithLooper(), groupFilesInBlocks::reverse, edm::waiting_task::chain::runLast(), schedule_, serviceToken_, streamLumiStatus_, subProcesses_, and edm::waiting_task::chain::then().
Referenced by processEventAsync().
|
private |
Definition at line 1996 of file EventProcessor.cc.
References esp_, input_, edm::InputSource::IsStop, edm::EDLooperBase::kContinue, edm::ProcessingController::kToPreviousEvent, edm::ProcessingController::kToSpecifiedEvent, edm::ProcessingController::lastOperationSucceeded(), lastSourceTransition_, looper_, processContext_, edm::ProcessingController::requestedTransition(), edm::ProcessingController::setLastOperationSucceeded(), shouldWeStop_, edm::ProcessingController::specifiedEventTransition(), mps_update::status, edm::EventPrincipal::streamID(), streamLumiStatus_, and summarizeEdmComparisonLogfiles::succeeded.
Referenced by processEventAsyncImpl().
InputSource::ItemType edm::EventProcessor::processLumis | ( | std::shared_ptr< void > const & | iRunResource | ) |
Definition at line 1336 of file EventProcessor.cc.
References cms::cuda::assert(), beginLumiAsync(), continueLumiAsync(), edm::FinalWaitingTask::done(), edm::WaitingTask::exceptionPtr(), input_, lastTransitionType(), edm::PreallocationConfiguration::numberOfStreams(), preallocations_, streamLumiActive_, and taskGroup_.
int edm::EventProcessor::readAndMergeLumi | ( | LuminosityBlockProcessingStatus & | iStatus | ) |
Definition at line 1747 of file EventProcessor.cc.
References actReg_, cms::cuda::assert(), input_, edm::LuminosityBlockProcessingStatus::lumiPrincipal(), or, and preg().
Referenced by readNextEventForStream().
std::pair< ProcessHistoryID, RunNumber_t > edm::EventProcessor::readAndMergeRun | ( | ) |
Definition at line 1716 of file EventProcessor.cc.
References actReg_, cms::cuda::assert(), input_, edm::PrincipalCache::merge(), preg(), principalCache_, and edm::PrincipalCache::runPrincipalPtr().
|
private |
Definition at line 1949 of file EventProcessor.cc.
References actReg_, edm::PrincipalCache::eventPrincipal(), FDEBUG, input_, principalCache_, processContext_, and streamLumiStatus_.
Referenced by readNextEventForStream().
void edm::EventProcessor::readFile | ( | ) |
Definition at line 930 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_, edm::PrincipalCache::preReadFile(), principalCache_, and findQualityFiles::size.
void edm::EventProcessor::readLuminosityBlock | ( | LuminosityBlockProcessingStatus & | iStatus | ) |
Definition at line 1728 of file EventProcessor.cc.
References actReg_, cms::cuda::assert(), Exception, edm::PrincipalCache::getAvailableLumiPrincipalPtr(), edm::PrincipalCache::hasRunPrincipal(), historyAppender_, input_, edm::errors::LogicError, edm::LuminosityBlockProcessingStatus::lumiPrincipal(), eostools::move(), principalCache_, and edm::PrincipalCache::runPrincipalPtr().
Referenced by beginLumiAsync().
|
private |
Definition at line 1830 of file EventProcessor.cc.
References CMS_SA_ALLOW, edm::LuminosityBlockProcessingStatus::continuingLumi(), deferredExceptionPtr_, deferredExceptionPtrIsSet_, edm::LuminosityBlockProcessingStatus::endLumi(), edm::LuminosityBlockProcessingStatus::haveContinuedLumi(), input_, edm::InputSource::IsEvent, edm::InputSource::IsLumi, edm::InputSource::IsRun, edm::InputSource::IsStop, lastSourceTransition_, edm::LuminosityBlockProcessingStatus::lumiPrincipal(), nextLuminosityBlockID(), nextTransitionType(), or, readAndMergeLumi(), readEvent(), serviceToken_, edm::LuminosityBlockProcessingStatus::setNextSyncValue(), shouldWeStop(), sourceMutex_, edm::LuminosityBlockProcessingStatus::stopProcessingEvents(), and edm::LuminosityBlockProcessingStatus::wasEventProcessingStopped().
Referenced by handleNextEventForStreamAsync().
void edm::EventProcessor::readProcessBlock | ( | ProcessBlockPrincipal & | processBlockPrincipal | ) |
Definition at line 1687 of file EventProcessor.cc.
References actReg_, and input_.
Referenced by inputProcessBlocks().
std::pair< ProcessHistoryID, RunNumber_t > edm::EventProcessor::readRun | ( | ) |
Definition at line 1693 of file EventProcessor.cc.
References actReg_, cms::cuda::assert(), Exception, edm::PrincipalCache::hasRunPrincipal(), historyAppender_, input_, edm::PrincipalCache::insert(), edm::errors::LogicError, mergeableRunProductProcesses_, preg(), principalCache_, and processConfiguration_.
void edm::EventProcessor::respondToCloseInputFile | ( | ) |
Definition at line 982 of file EventProcessor.cc.
References fb_, FDEBUG, fileBlockValid(), edm::for_all(), schedule_, and subProcesses_.
void edm::EventProcessor::respondToOpenInputFile | ( | ) |
Definition at line 972 of file EventProcessor.cc.
References branchIDListHelper_, fb_, FDEBUG, fileBlockValid(), edm::for_all(), schedule_, and subProcesses_.
void edm::EventProcessor::rewindInput | ( | ) |
Definition at line 1015 of file EventProcessor.cc.
References FDEBUG, and input_.
Referenced by runToCompletion().
|
inline |
Definition at line 375 of file EventProcessor.h.
References runToCompletion().
Referenced by beginRun(), Types.EventID::cppID(), Types.LuminosityBlockID::cppID(), deleteRunFromCache(), endRun(), endUnfinishedRun(), and writeRunAsync().
EventProcessor::StatusCode edm::EventProcessor::runToCompletion | ( | ) |
Definition at line 861 of file EventProcessor.cc.
References asyncStopRequestedWhileProcessingEvents_, asyncStopStatusCodeFromProcessingEvents_, beginJob(), deferredExceptionPtr_, deferredExceptionPtrIsSet_, doErrorStuff(), MillePedeFileConverter_cfg::e, endOfLoop(), epSuccess, Exception, exceptionMessageFiles_, exceptionMessageLumis_, exceptionMessageRuns_, fileModeNoMerge_, personalPlayback::fp, edm::InputSource::IsStop, prepareForNextLoop(), runEdmFileComparison::returnCode, rewindInput(), serviceToken_, startingNewLoop(), AlCaHLTBitMon_QueryRunRegistry::string, and edm::convertException::wrap().
Referenced by PythonEventProcessor::run(), and run().
bool edm::EventProcessor::setDeferredException | ( | std::exception_ptr | iException | ) |
Definition at line 2045 of file EventProcessor.cc.
References deferredExceptionPtr_, and deferredExceptionPtrIsSet_.
Referenced by handleEndLumiExceptions().
void edm::EventProcessor::setExceptionMessageFiles | ( | std::string & | message | ) |
Definition at line 2039 of file EventProcessor.cc.
References exceptionMessageFiles_.
void edm::EventProcessor::setExceptionMessageLumis | ( | ) |
Definition at line 2043 of file EventProcessor.cc.
References exceptionMessageLumis_.
Referenced by handleEndLumiExceptions().
void edm::EventProcessor::setExceptionMessageRuns | ( | std::string & | message | ) |
Definition at line 2041 of file EventProcessor.cc.
References exceptionMessageRuns_.
bool edm::EventProcessor::shouldWeCloseOutput | ( | ) | const |
Definition at line 1026 of file EventProcessor.cc.
References FDEBUG, schedule_, and subProcesses_.
bool edm::EventProcessor::shouldWeStop | ( | ) | const |
Definition at line 2024 of file EventProcessor.cc.
References FDEBUG, schedule_, shouldWeStop_, and subProcesses_.
Referenced by readNextEventForStream().
void edm::EventProcessor::startingNewLoop | ( | ) |
Definition at line 990 of file EventProcessor.cc.
References FDEBUG, looper_, looperBeginJobRun_, and shouldWeStop_.
Referenced by runToCompletion().
void edm::EventProcessor::streamEndLumiAsync | ( | edm::WaitingTaskHolder | iTask, |
unsigned int | iStreamIndex | ||
) |
Definition at line 1622 of file EventProcessor.cc.
References esp_, globalEndLumiAsync(), edm::WaitingTaskHolder::group(), handleEndLumiExceptions(), edm::make_waiting_task(), edm::EventID::maxEventNumber(), eostools::move(), schedule_, serviceToken_, mps_update::status, streamLumiActive_, streamLumiStatus_, streamQueues_, subProcesses_, and submitPVValidationJobs::t.
Referenced by beginLumiAsync(), endUnfinishedLumi(), and handleNextEventForStreamAsync().
void edm::EventProcessor::taskCleanup | ( | ) |
Definition at line 597 of file EventProcessor.cc.
References cms::cuda::assert(), espController_, TrackValidation_cff::task, and taskGroup_.
|
inlineprivate |
Definition at line 291 of file EventProcessor.h.
References edm::get_underlying_safe(), and thinnedAssociationsHelper_.
Referenced by init().
|
inlineprivate |
Definition at line 294 of file EventProcessor.h.
References edm::get_underlying_safe(), and thinnedAssociationsHelper_.
|
private |
Definition at line 2054 of file EventProcessor.cc.
References newFWLiteAna::found, and schedule_.
Referenced by beginJob().
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 806 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 810 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 808 of file EventProcessor.cc.
References schedule_.
Referenced by PythonEventProcessor::totalEventsPassed().
|
private |
Definition at line 2073 of file EventProcessor.cc.
References edm::Worker::kLegacy, alignCSCRings::s, and schedule_.
Referenced by beginJob().
void edm::EventProcessor::writeLumiAsync | ( | WaitingTaskHolder | task, |
LuminosityBlockPrincipal & | lumiPrincipal | ||
) |
Definition at line 1804 of file EventProcessor.cc.
References actReg_, first, edm::waiting_task::chain::ifThen(), edm::LuminosityBlockPrincipal::kNo, edm::waiting_task::chain::lastTask(), edm::LuminosityBlockPrincipal::luminosityBlock(), edm::RunPrincipal::mergeableRunProductMetadata(), eostools::move(), processContext_, edm::LuminosityBlockPrincipal::runPrincipal(), alignCSCRings::s, schedule_, serviceToken_, edm::LuminosityBlockPrincipal::shouldWriteLumi(), subProcesses_, TrackValidation_cff::task, and edm::MergeableRunProductMetadata::writeLumi().
Referenced by globalEndLumiAsync().
void edm::EventProcessor::writeProcessBlockAsync | ( | WaitingTaskHolder | task, |
ProcessBlockType | processBlockType | ||
) |
Definition at line 1764 of file EventProcessor.cc.
References actReg_, first, edm::waiting_task::chain::ifThen(), eostools::move(), principalCache_, edm::PrincipalCache::processBlockPrincipal(), processContext_, edm::waiting_task::chain::runLast(), alignCSCRings::s, schedule_, serviceToken_, subProcesses_, and TrackValidation_cff::task.
Referenced by endProcessBlock(), and inputProcessBlocks().
void edm::EventProcessor::writeRunAsync | ( | WaitingTaskHolder | task, |
ProcessHistoryID const & | phid, | ||
RunNumber_t | run, | ||
MergeableRunProductMetadata const * | mergeableRunProductMetadata | ||
) |
Definition at line 1778 of file EventProcessor.cc.
References actReg_, first, edm::waiting_task::chain::ifThen(), eostools::move(), principalCache_, processContext_, run(), edm::waiting_task::chain::runLast(), edm::PrincipalCache::runPrincipal(), alignCSCRings::s, schedule_, serviceToken_, subProcesses_, and TrackValidation_cff::task.
Referenced by endUnfinishedRun().
|
private |
Definition at line 323 of file EventProcessor.h.
Referenced by init().
|
private |
Definition at line 312 of file EventProcessor.h.
Referenced by beginJob(), beginLumiAsync(), beginRun(), closeInputFile(), endJob(), endRun(), init(), nextTransitionType(), readAndMergeLumi(), readAndMergeRun(), readEvent(), readFile(), readLuminosityBlock(), readProcessBlock(), readRun(), writeLumiAsync(), writeProcessBlockAsync(), writeRunAsync(), and ~EventProcessor().
|
private |
Definition at line 361 of file EventProcessor.h.
Referenced by runToCompletion().
|
private |
Definition at line 362 of file EventProcessor.h.
Referenced by runToCompletion().
|
private |
Definition at line 349 of file EventProcessor.h.
Referenced by beginJob().
|
private |
Definition at line 334 of file EventProcessor.h.
Referenced by beginJob(), and init().
|
private |
Definition at line 314 of file EventProcessor.h.
Referenced by branchIDListHelper(), init(), and respondToOpenInputFile().
|
private |
Definition at line 344 of file EventProcessor.h.
Referenced by handleNextEventForStreamAsync(), readNextEventForStream(), runToCompletion(), and setDeferredException().
|
private |
Definition at line 343 of file EventProcessor.h.
Referenced by handleNextEventForStreamAsync(), lastTransitionType(), nextTransitionType(), readNextEventForStream(), runToCompletion(), and setDeferredException().
|
private |
Definition at line 370 of file EventProcessor.h.
Referenced by beginJob(), and init().
|
private |
Definition at line 321 of file EventProcessor.h.
Referenced by beginJob(), beginLumiAsync(), beginRun(), endOfLoop(), endRun(), globalEndLumiAsync(), init(), prepareForNextLoop(), processEventAsyncImpl(), processEventWithLooper(), streamEndLumiAsync(), and ~EventProcessor().
|
private |
Definition at line 320 of file EventProcessor.h.
Referenced by beginJob(), beginLumiAsync(), beginRun(), endRun(), init(), taskCleanup(), and ~EventProcessor().
|
private |
Definition at line 367 of file EventProcessor.h.
|
private |
Definition at line 352 of file EventProcessor.h.
Referenced by runToCompletion(), and setExceptionMessageFiles().
|
private |
Definition at line 354 of file EventProcessor.h.
Referenced by runToCompletion(), and setExceptionMessageLumis().
|
private |
Definition at line 353 of file EventProcessor.h.
Referenced by runToCompletion(), and setExceptionMessageRuns().
|
private |
Definition at line 339 of file EventProcessor.h.
Referenced by closeInputFile(), fileBlockValid(), openOutputFiles(), readFile(), respondToCloseInputFile(), and respondToOpenInputFile().
|
private |
Definition at line 351 of file EventProcessor.h.
Referenced by init(), and runToCompletion().
|
private |
Definition at line 363 of file EventProcessor.h.
|
private |
Definition at line 357 of file EventProcessor.h.
Referenced by beginRun(), and init().
|
private |
Definition at line 355 of file EventProcessor.h.
Referenced by endOfLoop().
|
private |
Definition at line 337 of file EventProcessor.h.
Referenced by init(), readLuminosityBlock(), and readRun().
|
private |
Definition at line 318 of file EventProcessor.h.
Referenced by beginJob(), beginLumiAsync(), beginRun(), closeInputFile(), endJob(), endRun(), init(), inputProcessBlocks(), nextLuminosityBlockID(), nextRunID(), nextTransitionType(), processEventWithLooper(), processLumis(), readAndMergeLumi(), readAndMergeRun(), readEvent(), readFile(), readLuminosityBlock(), readNextEventForStream(), readProcessBlock(), readRun(), rewindInput(), and ~EventProcessor().
|
private |
Definition at line 319 of file EventProcessor.h.
Referenced by lastTransitionType(), nextTransitionType(), processEventWithLooper(), and readNextEventForStream().
|
private |
Definition at line 340 of file EventProcessor.h.
Referenced by beginJob(), beginLumiAsync(), beginRun(), Config.Process::dumpConfig(), Config.Process::dumpPython(), endJob(), endOfLoop(), endRun(), globalEndLumiAsync(), init(), looper(), prepareForNextLoop(), processEventAsyncImpl(), processEventWithLooper(), Config.Process::splitPython(), startingNewLoop(), and ~EventProcessor().
|
private |
Definition at line 356 of file EventProcessor.h.
Referenced by beginRun(), and startingNewLoop().
|
private |
Definition at line 330 of file EventProcessor.h.
Referenced by beginLumiAsync(), and init().
|
private |
Definition at line 327 of file EventProcessor.h.
|
private |
Definition at line 326 of file EventProcessor.h.
Referenced by beginJob().
|
private |
Definition at line 359 of file EventProcessor.h.
Referenced by beginJob(), beginLumiAsync(), beginRun(), continueLumiAsync(), endJob(), endRun(), endUnfinishedLumi(), init(), processLumis(), and readFile().
|
private |
Definition at line 313 of file EventProcessor.h.
Referenced by beginJob(), endOfLoop(), init(), preg(), and readFile().
|
private |
Definition at line 348 of file EventProcessor.h.
Referenced by beginLumiAsync(), beginProcessBlock(), beginRun(), deleteRunFromCache(), endProcessBlock(), endRun(), endUnfinishedRun(), init(), inputProcessBlocks(), processEventAsyncImpl(), readAndMergeRun(), readEvent(), readFile(), readLuminosityBlock(), readRun(), writeProcessBlockAsync(), and writeRunAsync().
|
private |
Definition at line 369 of file EventProcessor.h.
Referenced by beginJob(), and init().
|
private |
Definition at line 315 of file EventProcessor.h.
Referenced by beginJob(), closeOutputFiles(), and init().
|
private |
Definition at line 324 of file EventProcessor.h.
Referenced by beginJob(), beginProcessBlock(), init(), processConfiguration(), and readRun().
|
private |
Definition at line 325 of file EventProcessor.h.
Referenced by beginJob(), beginLumiAsync(), beginRun(), endRun(), globalEndLumiAsync(), init(), processEventWithLooper(), readEvent(), writeLumiAsync(), writeProcessBlockAsync(), and writeRunAsync().
|
private |
Definition at line 322 of file EventProcessor.h.
Referenced by beginLumiAsync(), and globalEndLumiAsync().
|
private |
Definition at line 328 of file EventProcessor.h.
Referenced by Config.Process::_insertPaths(), Config.Process::_replaceInSchedule(), Config.Process::_replaceInScheduleDirectly(), beginJob(), beginLumiAsync(), beginProcessBlock(), beginRun(), clearCounters(), closeOutputFiles(), Config.Process::dumpPython(), endJob(), endOfLoop(), endProcessBlock(), endRun(), getAllModuleDescriptions(), globalEndLumiAsync(), init(), inputProcessBlocks(), openOutputFiles(), processEventAsyncImpl(), Config.Process::prune(), Config.Process::resolve(), respondToCloseInputFile(), respondToOpenInputFile(), shouldWeCloseOutput(), shouldWeStop(), Config.Process::splitPython(), streamEndLumiAsync(), throwAboutModulesRequiringLuminosityBlockSynchronization(), totalEvents(), totalEventsFailed(), totalEventsPassed(), warnAboutLegacyModules(), writeLumiAsync(), writeProcessBlockAsync(), writeRunAsync(), and ~EventProcessor().
|
private |
Definition at line 317 of file EventProcessor.h.
Referenced by beginJob(), beginLumiAsync(), beginProcessBlock(), beginRun(), endJob(), endProcessBlock(), endRun(), getToken(), globalEndLumiAsync(), handleNextEventForStreamAsync(), init(), inputProcessBlocks(), processEventAsyncImpl(), readNextEventForStream(), runToCompletion(), streamEndLumiAsync(), writeLumiAsync(), writeProcessBlockAsync(), and writeRunAsync().
|
private |
Definition at line 350 of file EventProcessor.h.
Referenced by processEventWithLooper(), shouldWeStop(), and startingNewLoop().
|
private |
Definition at line 347 of file EventProcessor.h.
Referenced by readNextEventForStream().
|
private |
Definition at line 346 of file EventProcessor.h.
Referenced by beginLumiAsync(), and handleNextEventForStreamAsync().
|
private |
Definition at line 332 of file EventProcessor.h.
Referenced by beginLumiAsync(), endUnfinishedLumi(), processLumis(), and streamEndLumiAsync().
|
private |
Definition at line 331 of file EventProcessor.h.
Referenced by beginLumiAsync(), continueLumiAsync(), endUnfinishedLumi(), handleNextEventForStreamAsync(), init(), processEventAsyncImpl(), processEventWithLooper(), readEvent(), and streamEndLumiAsync().
|
private |
Definition at line 329 of file EventProcessor.h.
Referenced by beginLumiAsync(), init(), and streamEndLumiAsync().
|
private |
Definition at line 336 of file EventProcessor.h.
Referenced by beginJob(), beginLumiAsync(), beginProcessBlock(), beginRun(), closeOutputFiles(), deleteLumiFromCache(), deleteRunFromCache(), Config.Process::dumpConfig(), Config.Process::dumpPython(), endJob(), endProcessBlock(), endRun(), globalEndLumiAsync(), init(), inputProcessBlocks(), openOutputFiles(), processEventAsyncImpl(), respondToCloseInputFile(), respondToOpenInputFile(), shouldWeCloseOutput(), shouldWeStop(), Config.Process::splitPython(), streamEndLumiAsync(), writeLumiAsync(), writeProcessBlockAsync(), and writeRunAsync().
|
private |
Definition at line 310 of file EventProcessor.h.
Referenced by beginProcessBlock(), beginRun(), endProcessBlock(), endRun(), endUnfinishedLumi(), endUnfinishedRun(), inputProcessBlocks(), processLumis(), and taskCleanup().
|
private |
Definition at line 316 of file EventProcessor.h.
Referenced by init(), and thinnedAssociationsHelper().