#include <EventProcessor.h>
Public Member Functions | |
virtual bool | alreadyHandlingException () const override |
void | beginJob () |
virtual void | beginLumi (ProcessHistoryID const &phid, RunNumber_t run, LuminosityBlockNumber_t lumi) override |
virtual void | beginRun (statemachine::Run const &run) override |
void | clearCounters () |
Clears counters used by trigger report. More... | |
virtual void | closeInputFile (bool cleaningUpAfterException) override |
virtual void | closeOutputFiles () override |
virtual void | deleteLumiFromCache (ProcessHistoryID const &phid, RunNumber_t run, LuminosityBlockNumber_t lumi) override |
virtual void | deleteRunFromCache (statemachine::Run const &run) override |
virtual void | doErrorStuff () override |
void | enableEndPaths (bool active) |
void | endJob () |
virtual void | endLumi (ProcessHistoryID const &phid, RunNumber_t run, LuminosityBlockNumber_t lumi, bool cleaningUpAfterException) override |
virtual bool | endOfLoop () override |
bool | endPathsEnabled () const |
virtual void | endRun (statemachine::Run const &run, bool cleaningUpAfterException) override |
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 | |
bool | forkProcess (std::string const &jobReportFile) |
std::vector< ModuleDescription const * > | getAllModuleDescriptions () const |
ServiceToken | getToken () |
void | getTriggerReport (TriggerReport &rep) const |
virtual void | openOutputFiles () override |
EventProcessor & | operator= (EventProcessor const &)=delete |
virtual void | prepareForNextLoop () override |
ProcessConfiguration const & | processConfiguration () const |
virtual int | readAndMergeLumi () override |
virtual statemachine::Run | readAndMergeRun () override |
virtual void | readAndProcessEvent () override |
virtual void | readFile () override |
virtual int | readLuminosityBlock () override |
virtual statemachine::Run | readRun () override |
virtual void | respondToCloseInputFile () override |
virtual void | respondToOpenInputFile () override |
virtual void | rewindInput () override |
StatusCode | run () |
virtual StatusCode | runToCompletion () override |
virtual void | setExceptionMessageFiles (std::string &message) override |
virtual void | setExceptionMessageLumis (std::string &message) override |
virtual void | setExceptionMessageRuns (std::string &message) override |
virtual bool | shouldWeCloseOutput () const override |
virtual bool | shouldWeStop () const override |
virtual void | startingNewLoop () override |
int | totalEvents () const |
int | totalEventsFailed () const |
int | totalEventsPassed () const |
virtual void | writeLumi (ProcessHistoryID const &phid, RunNumber_t run, LuminosityBlockNumber_t lumi) override |
virtual void | writeRun (statemachine::Run const &run) override |
~EventProcessor () | |
Public Member Functions inherited from edm::IEventProcessor | |
virtual | ~IEventProcessor () |
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 &) |
std::unique_ptr< statemachine::Machine > | createStateMachine () |
void | handleNextEventForStreamAsync (WaitingTask *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 () |
void | possiblyContinueAfterForkChildFailure () |
std::shared_ptr< ProductRegistry const > | preg () const |
std::shared_ptr< ProductRegistry > & | preg () |
void | processEventAsync (WaitingTaskHolder iHolder, unsigned int iStreamIndex) |
void | processEventWithLooper (EventPrincipal &) |
void | readEvent (unsigned int iStreamIndex) |
bool | readNextEventForStream (unsigned int iStreamIndex, std::atomic< bool > *finishedProcessingEvents) |
void | setupSignal () |
void | terminateMachine (std::unique_ptr< statemachine::Machine >) |
std::shared_ptr< ThinnedAssociationsHelper const > | thinnedAssociationsHelper () const |
std::shared_ptr< ThinnedAssociationsHelper > & | thinnedAssociationsHelper () |
Additional Inherited Members | |
Public Types inherited from edm::IEventProcessor | |
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 326 of file EventProcessor.h.
|
private |
Definition at line 327 of file EventProcessor.h.
|
explicit |
Definition at line 227 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 272 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 318 of file EventProcessor.cc.
References init().
edm::EventProcessor::EventProcessor | ( | std::string const & | config, |
bool | isPython | ||
) |
meant for unit tests
Definition at line 362 of file EventProcessor.cc.
References mps_alisetup::config, init(), edm::serviceregistry::kOverlapIsError, edm::parameterSet(), and PythonProcessDesc::parameterSet().
edm::EventProcessor::~EventProcessor | ( | ) |
Definition at line 588 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 |
|
overridevirtual |
Implements edm::IEventProcessor.
Definition at line 2220 of file EventProcessor.cc.
References alreadyHandlingException_.
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 607 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 forkProcess(), and runToCompletion().
|
overridevirtual |
Implements edm::IEventProcessor.
Definition at line 1741 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_.
|
overridevirtual |
Implements edm::IEventProcessor.
Definition at line 1614 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_, statemachine::Run::processHistoryID(), edm::RunPrincipal::run(), statemachine::Run::runNumber(), 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 1295 of file EventProcessor.cc.
References edm::IEventProcessor::epSignal, and edm::shutdown_flag.
Referenced by readNextEventForStream(), and runToCompletion().
void edm::EventProcessor::clearCounters | ( | ) |
Clears counters used by trigger report.
Definition at line 1257 of file EventProcessor.cc.
References schedule_.
|
overridevirtual |
Implements edm::IEventProcessor.
Definition at line 1514 of file EventProcessor.cc.
References actReg_, fb_, FDEBUG, and input_.
|
overridevirtual |
Implements edm::IEventProcessor.
Definition at line 1531 of file EventProcessor.cc.
References fb_, FDEBUG, edm::for_all(), schedule_, and subProcesses_.
|
private |
Definition at line 1263 of file EventProcessor.cc.
References edm::errors::Configuration, statemachine::doNotHandleEmptyRunsAndLumis, emptyRunLumiMode_, Exception, fileMode_, statemachine::FULLMERGE, statemachine::handleEmptyRuns, statemachine::handleEmptyRunsAndLumis, statemachine::NOMERGE, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by runToCompletion().
|
overridevirtual |
Implements edm::IEventProcessor.
Definition at line 1949 of file EventProcessor.cc.
References edm::PrincipalCache::deleteLumi(), FDEBUG, edm::for_all(), principalCache_, and subProcesses_.
|
overridevirtual |
Implements edm::IEventProcessor.
Definition at line 1937 of file EventProcessor.cc.
References edm::PrincipalCache::deleteRun(), FDEBUG, edm::for_all(), principalCache_, statemachine::Run::processHistoryID(), statemachine::Run::runNumber(), and subProcesses_.
|
overridevirtual |
Implements edm::IEventProcessor.
Definition at line 1603 of file EventProcessor.cc.
References FDEBUG, and stateMachineWasInErrorState_.
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 1242 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 663 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().
|
overridevirtual |
Implements edm::IEventProcessor.
Definition at line 1810 of file EventProcessor.cc.
References actReg_, edm::LuminosityBlockPrincipal::endTime(), esp_, espController_, FDEBUG, edm::for_all(), input_, looper_, edm::LuminosityBlockPrincipal::luminosityBlock(), edm::PrincipalCache::lumiPrincipal(), edm::make_empty_waiting_task(), edm::EventID::maxEventNumber(), edm::PreallocationConfiguration::numberOfStreams(), preallocations_, principalCache_, processContext_, edm::LuminosityBlockPrincipal::run(), schedule_, edm::Principal::setAtEndTransition(), edm::LuminosityBlockPrincipal::setComplete(), edm::LuminosityBlockPrincipal::setEndTime(), and subProcesses_.
Referenced by Types.EventRange::cppID().
|
overridevirtual |
Implements edm::IEventProcessor.
Definition at line 1566 of file EventProcessor.cc.
References esp_, FDEBUG, forceLooperToEnd_, edm::EDLooperBase::kContinue, looper_, preg_, schedule_, and mps_update::status.
bool edm::EventProcessor::endPathsEnabled | ( | ) | const |
Return true if end_paths are active, and false if they are inactive.
Definition at line 1247 of file EventProcessor.cc.
References schedule_.
|
overridevirtual |
Implements edm::IEventProcessor.
Definition at line 1685 of file EventProcessor.cc.
References actReg_, edm::RunPrincipal::endTime(), esp_, espController_, FDEBUG, edm::for_all(), input_, looper_, edm::make_empty_waiting_task(), edm::EventID::maxEventNumber(), edm::LuminosityBlockID::maxLuminosityBlockNumber(), edm::PreallocationConfiguration::numberOfStreams(), preallocations_, principalCache_, processContext_, statemachine::Run::processHistoryID(), edm::RunPrincipal::run(), statemachine::Run::runNumber(), edm::PrincipalCache::runPrincipal(), schedule_, edm::Principal::setAtEndTransition(), edm::RunPrincipal::setComplete(), edm::RunPrincipal::setEndTime(), and subProcesses_.
bool edm::EventProcessor::forkProcess | ( | std::string const & | jobReportFile | ) |
Definition at line 921 of file EventProcessor.cc.
References actReg_, beginJob(), continueAfterChildFailure_, edm::eventsetup::EventSetupRecord::doGet(), MillePedeFileConverter_cfg::e, esp_, espController_, eventSetupDataToExcludeFromPrefetching_, Exception, cmsRelvalreport::exit, edm::EventSetup::fillAvailableRecordKeys(), edm::eventsetup::EventSetupRecord::fillRegisteredDataKeys(), edm::EventSetup::find(), input_, edm::installCustomHandler(), edm::InputSource::IsFile, edm::InputSource::IsRun, RecoTauDiscriminantConfiguration::mask, NULL, numberOfForkedChildren_, numberOfSequentialEventsPerChild_, O_NONBLOCK, cmsPerfStripChart::operate(), or, pipe::pipe(), possiblyContinueAfterForkChildFailure(), 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 1222 of file EventProcessor.cc.
References schedule_.
ServiceToken edm::EventProcessor::getToken | ( | ) |
Definition at line 694 of file EventProcessor.cc.
References AlCaHLTBitMon_ParallelJobs::p, and 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 1252 of file EventProcessor.cc.
References schedule_.
|
private |
Definition at line 2006 of file EventProcessor.cc.
References deferredExceptionPtr_, deferredExceptionPtrIsSet_, pyrootRender::destroy(), edm::WaitingTaskHolder::doneWaiting(), h, edm::make_waiting_task(), cmsPerfStripChart::operate(), processEventAsync(), edm::SerialTaskQueueChain::push(), readNextEventForStream(), edm::SharedResourcesAcquirer::serialQueueChain(), serviceToken_, and sourceResourcesAcquirer_.
Referenced by readAndProcessEvent().
|
private |
Definition at line 412 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, continueAfterChildFailure_, emptyRunLumiMode_, esp_, espController_, eventSetupDataToExcludeFromPrefetching_, FDEBUG, fileMode_, edm::fillLooper(), forceESCacheClearOnNewRun_, edm::ParameterSet::getUntrackedParameter(), edm::ParameterSet::getUntrackedParameterSet(), edm::ParameterSet::getUntrackedParameterSetVector(), 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(), numberOfForkedChildren_, numberOfSequentialEventsPerChild_, 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_, setCpuAffinity_, 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().
|
overridevirtual |
Implements edm::IEventProcessor.
Definition at line 1523 of file EventProcessor.cc.
References fb_, FDEBUG, edm::for_all(), schedule_, and subProcesses_.
|
delete |
|
private |
Definition at line 905 of file EventProcessor.cc.
References continueAfterChildFailure_.
Referenced by forkProcess().
|
inlineprivate |
Definition at line 260 of file EventProcessor.h.
References edm::get_underlying_safe().
Referenced by beginJob(), init(), readAndMergeLumi(), readAndMergeRun(), readFile(), readLuminosityBlock(), readRun(), and runToCompletion().
|
inlineprivate |
Definition at line 261 of file EventProcessor.h.
References edm::get_underlying_safe().
|
overridevirtual |
Implements edm::IEventProcessor.
Definition at line 1585 of file EventProcessor.cc.
References esp_, FDEBUG, edm::propagate_const< T >::get(), and looper_.
|
inline |
Definition at line 124 of file EventProcessor.h.
References Ecal2004TBTDCRanges_v1_cff::endRun, EcalCondTools::getToken(), init, python.rootplot.argparse::message, cuy::rep, and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 2103 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 handleNextEventForStreamAsync(), and readAndProcessEvent().
|
private |
Definition at line 2168 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 processEventAsync().
|
overridevirtual |
Implements edm::IEventProcessor.
Definition at line 1921 of file EventProcessor.cc.
References actReg_, input_, edm::PrincipalCache::lumiPrincipalPtr(), edm::PrincipalCache::merge(), preg(), and principalCache_.
|
overridevirtual |
Implements edm::IEventProcessor.
Definition at line 1884 of file EventProcessor.cc.
References actReg_, input_, edm::PrincipalCache::merge(), preg(), principalCache_, and edm::PrincipalCache::runPrincipalPtr().
|
overridevirtual |
Implements edm::IEventProcessor.
Definition at line 2046 of file EventProcessor.cc.
References asyncStopRequestedWhileProcessingEvents_, deferredExceptionPtr_, deferredExceptionPtrIsSet_, firstEventInBlock_, handleNextEventForStreamAsync(), edm::InputSource::IsEvent, edm::make_empty_waiting_task(), edm::make_waiting_task(), nextItemTypeFromProcessingEvents_, numberOfForkedChildren_, edm::PreallocationConfiguration::numberOfStreams(), preallocations_, processEventAsync(), and readEvent().
|
private |
Definition at line 2091 of file EventProcessor.cc.
References actReg_, edm::PrincipalCache::eventPrincipal(), FDEBUG, input_, principalCache_, and processContext_.
Referenced by readAndProcessEvent(), and readNextEventForStream().
|
overridevirtual |
Implements edm::IEventProcessor.
Definition at line 1496 of file EventProcessor.cc.
References actReg_, edm::PrincipalCache::adjustEventsToNewProductRegistry(), edm::PrincipalCache::adjustIndexesAfterProductRegistryAddition(), fb_, FDEBUG, input_, numberOfForkedChildren_, edm::PreallocationConfiguration::numberOfStreams(), edm::PreallocationConfiguration::numberOfThreads(), or, edm::FileBlock::ParallelProcesses, preallocations_, preg(), preg_, principalCache_, and findQualityFiles::size.
Referenced by forkProcess(), Vispa.Plugins.EventBrowser.EventBrowserTabController.EventBrowserTabController::navigate(), Vispa.Main.TabController.TabController::open(), and Vispa.Main.TabController.TabController::refresh().
|
overridevirtual |
Implements edm::IEventProcessor.
Definition at line 1896 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 1955 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().
|
overridevirtual |
Implements edm::IEventProcessor.
Definition at line 1866 of file EventProcessor.cc.
References actReg_, Exception, edm::PrincipalCache::hasRunPrincipal(), historyAppender_, input_, edm::PrincipalCache::insert(), edm::errors::LogicError, preg(), principalCache_, and processConfiguration_.
|
overridevirtual |
Implements edm::IEventProcessor.
Definition at line 1548 of file EventProcessor.cc.
References fb_, FDEBUG, edm::for_all(), schedule_, and subProcesses_.
|
overridevirtual |
Implements edm::IEventProcessor.
Definition at line 1539 of file EventProcessor.cc.
References branchIDListHelper_, fb_, FDEBUG, edm::for_all(), schedule_, and subProcesses_.
|
overridevirtual |
Implements edm::IEventProcessor.
Definition at line 1579 of file EventProcessor.cc.
References FDEBUG, and input_.
|
inline |
Definition at line 337 of file EventProcessor.h.
Referenced by Types.EventID::cppID(), and Types.LuminosityBlockID::cppID().
|
overridevirtual |
Implements edm::IEventProcessor.
Definition at line 1308 of file EventProcessor.cc.
References actReg_, cms::Exception::addAdditionalInfo(), edm::PrincipalCache::adjustEventsToNewProductRegistry(), edm::PrincipalCache::adjustIndexesAfterProductRegistryAddition(), alreadyHandlingException_, cms::Exception::alreadyPrinted(), asyncStopRequestedWhileProcessingEvents_, asyncStopStatusCodeFromProcessingEvents_, beginJob(), checkForAsyncStopRequest(), createStateMachine(), MillePedeFileConverter_cfg::e, edm::IEventProcessor::epSuccess, Exception, exceptionMessageFiles_, exceptionMessageLumis_, exceptionMessageRuns_, edm::ExternalSignal, FDEBUG, forceLooperToEnd_, input_, edm::InputSource::IsEvent, edm::InputSource::IsFile, edm::InputSource::IsLumi, edm::InputSource::IsRun, edm::InputSource::IsStop, edm::InputSource::IsSynchronize, edm::errors::LogicError, eostools::move(), nextItemTypeFromProcessingEvents_, numberOfForkedChildren_, cmsPerfStripChart::operate(), preg(), preg_, principalCache_, runEdmFileComparison::returnCode, serviceToken_, findQualityFiles::size, stateMachineWasInErrorState_, terminateMachine(), and edm::convertException::wrap().
Referenced by PythonEventProcessor::run().
|
overridevirtual |
Implements edm::IEventProcessor.
Definition at line 2208 of file EventProcessor.cc.
References exceptionMessageFiles_, and python.rootplot.argparse::message.
|
overridevirtual |
Implements edm::IEventProcessor.
Definition at line 2216 of file EventProcessor.cc.
References exceptionMessageLumis_, and python.rootplot.argparse::message.
|
overridevirtual |
Implements edm::IEventProcessor.
Definition at line 2212 of file EventProcessor.cc.
References exceptionMessageRuns_, and python.rootplot.argparse::message.
|
private |
|
overridevirtual |
Implements edm::IEventProcessor.
Definition at line 1590 of file EventProcessor.cc.
References FDEBUG, schedule_, and subProcesses_.
|
overridevirtual |
Implements edm::IEventProcessor.
Definition at line 2194 of file EventProcessor.cc.
References FDEBUG, schedule_, shouldWeStop_, and subProcesses_.
Referenced by readNextEventForStream().
|
overridevirtual |
Implements edm::IEventProcessor.
Definition at line 1556 of file EventProcessor.cc.
References FDEBUG, looper_, looperBeginJobRun_, and shouldWeStop_.
|
private |
Definition at line 2224 of file EventProcessor.cc.
References FDEBUG, and forceLooperToEnd_.
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 1227 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 1237 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 1232 of file EventProcessor.cc.
References schedule_.
Referenced by PythonEventProcessor::totalEventsPassed().
|
overridevirtual |
Implements edm::IEventProcessor.
Definition at line 1943 of file EventProcessor.cc.
References FDEBUG, edm::for_all(), edm::PrincipalCache::lumiPrincipal(), principalCache_, processContext_, schedule_, and subProcesses_.
|
overridevirtual |
Implements edm::IEventProcessor.
Definition at line 1931 of file EventProcessor.cc.
References FDEBUG, edm::for_all(), principalCache_, processContext_, statemachine::Run::processHistoryID(), statemachine::Run::runNumber(), 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(), forkProcess(), init(), readAndMergeLumi(), readAndMergeRun(), readEvent(), readFile(), readLuminosityBlock(), readNextEventForStream(), readRun(), runToCompletion(), and ~EventProcessor().
|
private |
Definition at line 309 of file EventProcessor.h.
Referenced by alreadyHandlingException(), and runToCompletion().
|
private |
Definition at line 321 of file EventProcessor.h.
Referenced by readAndProcessEvent(), readNextEventForStream(), and runToCompletion().
|
private |
Definition at line 323 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 317 of file EventProcessor.h.
Referenced by forkProcess(), init(), and possiblyContinueAfterForkChildFailure().
|
private |
Definition at line 296 of file EventProcessor.h.
Referenced by handleNextEventForStreamAsync(), readAndProcessEvent(), and readNextEventForStream().
|
private |
Definition at line 295 of file EventProcessor.h.
Referenced by handleNextEventForStreamAsync(), readAndProcessEvent(), and readNextEventForStream().
|
private |
Definition at line 305 of file EventProcessor.h.
Referenced by createStateMachine(), and init().
|
private |
Definition at line 282 of file EventProcessor.h.
Referenced by beginLumi(), beginRun(), endLumi(), endOfLoop(), endRun(), forkProcess(), init(), prepareForNextLoop(), processEventAsync(), processEventWithLooper(), and ~EventProcessor().
|
private |
Definition at line 281 of file EventProcessor.h.
Referenced by beginLumi(), beginRun(), endLumi(), endRun(), forkProcess(), init(), and ~EventProcessor().
|
private |
Definition at line 328 of file EventProcessor.h.
Referenced by forkProcess(), and init().
|
private |
Definition at line 306 of file EventProcessor.h.
Referenced by runToCompletion(), and setExceptionMessageFiles().
|
private |
Definition at line 308 of file EventProcessor.h.
Referenced by runToCompletion(), and setExceptionMessageLumis().
|
private |
Definition at line 307 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 304 of file EventProcessor.h.
Referenced by createStateMachine(), and init().
|
private |
Definition at line 324 of file EventProcessor.h.
Referenced by readAndProcessEvent(), and readNextEventForStream().
|
private |
Definition at line 312 of file EventProcessor.h.
Referenced by beginRun(), and init().
|
private |
Definition at line 310 of file EventProcessor.h.
Referenced by endOfLoop(), runToCompletion(), and terminateMachine().
|
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(), forkProcess(), init(), processEventWithLooper(), readAndMergeLumi(), readAndMergeRun(), readEvent(), readFile(), readLuminosityBlock(), readNextEventForStream(), readRun(), rewindInput(), runToCompletion(), 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(), processEventAsync(), processEventWithLooper(), startingNewLoop(), and ~EventProcessor().
|
private |
Definition at line 311 of file EventProcessor.h.
Referenced by beginRun(), and startingNewLoop().
|
private |
Definition at line 322 of file EventProcessor.h.
Referenced by readAndProcessEvent(), readNextEventForStream(), and runToCompletion().
|
private |
Definition at line 314 of file EventProcessor.h.
Referenced by forkProcess(), init(), readAndProcessEvent(), readFile(), and runToCompletion().
|
private |
Definition at line 315 of file EventProcessor.h.
Referenced by forkProcess(), and init().
|
private |
Definition at line 286 of file EventProcessor.h.
Referenced by beginJob().
|
private |
Definition at line 319 of file EventProcessor.h.
Referenced by beginJob(), beginLumi(), beginRun(), endJob(), endLumi(), endRun(), init(), readAndProcessEvent(), and readFile().
|
private |
Definition at line 276 of file EventProcessor.h.
Referenced by beginJob(), endOfLoop(), init(), readFile(), and runToCompletion().
|
private |
Definition at line 300 of file EventProcessor.h.
Referenced by beginLumi(), beginRun(), deleteLumiFromCache(), deleteRunFromCache(), endLumi(), endRun(), init(), processEventAsync(), readAndMergeLumi(), readAndMergeRun(), readEvent(), readFile(), readLuminosityBlock(), readRun(), runToCompletion(), writeLumi(), and writeRun().
|
private |
Definition at line 330 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(), forkProcess(), getAllModuleDescriptions(), getTriggerReport(), init(), openOutputFiles(), processEventAsync(), Config.Process::prune(), respondToCloseInputFile(), respondToOpenInputFile(), shouldWeCloseOutput(), shouldWeStop(), totalEvents(), totalEventsFailed(), totalEventsPassed(), writeLumi(), writeRun(), and ~EventProcessor().
|
private |
Definition at line 279 of file EventProcessor.h.
Referenced by beginJob(), endJob(), forkProcess(), getToken(), handleNextEventForStreamAsync(), init(), processEventAsync(), readNextEventForStream(), and runToCompletion().
|
private |
Definition at line 316 of file EventProcessor.h.
Referenced by forkProcess(), and init().
|
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 303 of file EventProcessor.h.
Referenced by doErrorStuff(), and runToCompletion().
|
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(), processEventAsync(), respondToCloseInputFile(), respondToOpenInputFile(), shouldWeCloseOutput(), shouldWeStop(), writeLumi(), and writeRun().
|
private |
Definition at line 278 of file EventProcessor.h.
Referenced by init().