#include <EventProcessor.h>
Public Member Functions | |
virtual bool | alreadyHandlingException () const |
void | beginJob () |
virtual void | beginLumi (ProcessHistoryID const &phid, RunNumber_t run, LuminosityBlockNumber_t lumi) |
virtual void | beginRun (statemachine::Run const &run) |
void | clearCounters () |
Clears counters used by trigger report. More... | |
virtual void | closeInputFile (bool cleaningUpAfterException) |
virtual void | closeOutputFiles () |
virtual void | deleteLumiFromCache (ProcessHistoryID const &phid, RunNumber_t run, LuminosityBlockNumber_t lumi) |
virtual void | deleteRunFromCache (statemachine::Run const &run) |
virtual void | doErrorStuff () |
void | enableEndPaths (bool active) |
void | endJob () |
virtual void | endLumi (ProcessHistoryID const &phid, RunNumber_t run, LuminosityBlockNumber_t lumi, bool cleaningUpAfterException) |
virtual bool | endOfLoop () |
bool | endPathsEnabled () const |
virtual void | endRun (statemachine::Run const &run, 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 | |
bool | forkProcess (std::string const &jobReportFile) |
std::vector< ModuleDescription const * > | getAllModuleDescriptions () const |
ServiceToken | getToken () |
void | getTriggerReport (TriggerReport &rep) const |
virtual void | openOutputFiles () |
EventProcessor & | operator= (EventProcessor const &)=delete |
virtual void | prepareForNextLoop () |
virtual int | readAndMergeLumi () |
virtual statemachine::Run | readAndMergeRun () |
virtual void | readAndProcessEvent () |
virtual void | readFile () |
virtual int | readLuminosityBlock () |
virtual statemachine::Run | readRun () |
virtual void | respondToCloseInputFile () |
virtual void | respondToOpenInputFile () |
virtual void | rewindInput () |
StatusCode | run () |
virtual StatusCode | runToCompletion () |
virtual void | setExceptionMessageFiles (std::string &message) |
virtual void | setExceptionMessageLumis (std::string &message) |
virtual void | setExceptionMessageRuns (std::string &message) |
virtual bool | shouldWeCloseOutput () const |
virtual bool | shouldWeStop () const |
virtual void | startingNewLoop () |
int | totalEvents () const |
int | totalEventsFailed () const |
int | totalEventsPassed () const |
virtual void | writeLumi (ProcessHistoryID const &phid, RunNumber_t run, LuminosityBlockNumber_t lumi) |
virtual void | writeRun (statemachine::Run const &run) |
~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 | |
bool | checkForAsyncStopRequest (StatusCode &) |
std::auto_ptr < statemachine::Machine > | createStateMachine () |
bool | hasSubProcess () const |
void | init (std::shared_ptr< ProcessDesc > &processDesc, ServiceToken const &token, serviceregistry::ServiceLegacy) |
void | possiblyContinueAfterForkChildFailure () |
void | processEvent (unsigned int iStreamIndex) |
void | processEventsForStreamAsync (unsigned int iStreamIndex, std::atomic< bool > *finishedProcessingEvents) |
void | readEvent (unsigned int iStreamIndex) |
void | setupSignal () |
void | terminateMachine (std::auto_ptr< statemachine::Machine > &) |
Friends | |
class | StreamProcessingTask |
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 58 of file EventProcessor.h.
|
private |
Definition at line 302 of file EventProcessor.h.
|
private |
Definition at line 303 of file EventProcessor.h.
|
explicit |
Definition at line 216 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 259 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 303 of file EventProcessor.cc.
References init().
edm::EventProcessor::EventProcessor | ( | std::string const & | config, |
bool | isPython | ||
) |
meant for unit tests
Definition at line 345 of file EventProcessor.cc.
References HDQMDatabaseProducer::config, init(), edm::serviceregistry::kOverlapIsError, edm::parameterSet(), and PythonProcessDesc::parameterSet().
edm::EventProcessor::~EventProcessor | ( | ) |
Definition at line 557 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 subProcess_.
|
delete |
|
virtual |
Implements edm::IEventProcessor.
Definition at line 2063 of file EventProcessor.cc.
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 576 of file EventProcessor.cc.
References actReg_, cms::Exception::addContext(), bk::beginJob(), beginJobCalled_, hasSubProcess(), i, input_, edm::PreallocationConfiguration::numberOfLuminosityBlocks(), edm::PreallocationConfiguration::numberOfRuns(), edm::PreallocationConfiguration::numberOfStreams(), edm::PreallocationConfiguration::numberOfThreads(), cmsPerfStripChart::operate(), preallocations_, preg_, schedule_, serviceToken_, subProcess_, and edm::convertException::wrap().
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1665 of file EventProcessor.cc.
References edm::LuminosityBlockPrincipal::beginTime(), FDEBUG, i, edm::Service< T >::isAvailable(), edm::LuminosityBlockPrincipal::luminosityBlock(), and edm::LuminosityBlockPrincipal::run().
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1570 of file EventProcessor.cc.
References edm::RunPrincipal::beginTime(), FDEBUG, i, statemachine::Run::processHistoryID(), edm::RunPrincipal::run(), and statemachine::Run::runNumber().
|
private |
Definition at line 1257 of file EventProcessor.cc.
References edm::shutdown_flag.
void edm::EventProcessor::clearCounters | ( | ) |
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1476 of file EventProcessor.cc.
References FDEBUG.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1493 of file EventProcessor.cc.
References FDEBUG.
|
private |
Definition at line 1226 of file EventProcessor.cc.
References edm::errors::Configuration, statemachine::doNotHandleEmptyRunsAndLumis, edm::hlt::Exception, dtDQMClient_cfg::fileMode, statemachine::FULLMERGE, statemachine::handleEmptyRuns, statemachine::handleEmptyRunsAndLumis, statemachine::NOMERGE, and AlCaHLTBitMon_QueryRunRegistry::string.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1842 of file EventProcessor.cc.
References FDEBUG.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1830 of file EventProcessor.cc.
References FDEBUG, statemachine::Run::processHistoryID(), and statemachine::Run::runNumber().
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1559 of file EventProcessor.cc.
References FDEBUG.
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 1205 of file EventProcessor.cc.
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 625 of file EventProcessor.cc.
References actReg_, trackerHits::c, edm::ExceptionCollector::call(), edm::SubProcess::doEndJob(), edm::InputSource::doEndJob(), edm::EDLooperBase::endOfJob(), hasSubProcess(), edm::ExceptionCollector::hasThrown(), i, input_, looper_, edm::PreallocationConfiguration::numberOfStreams(), cmsPerfStripChart::operate(), preallocations_, edm::ExceptionCollector::rethrow(), schedule_, serviceToken_, and subProcess_.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1715 of file EventProcessor.cc.
References edm::LuminosityBlockPrincipal::endTime(), FDEBUG, i, edm::LuminosityBlockPrincipal::luminosityBlock(), and edm::LuminosityBlockPrincipal::run().
Referenced by Types.EventRange::cppID().
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1530 of file EventProcessor.cc.
References FDEBUG, and ntuplemaker::status.
bool edm::EventProcessor::endPathsEnabled | ( | ) | const |
Return true if end_paths are active, and false if they are inactive.
Definition at line 1210 of file EventProcessor.cc.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1622 of file EventProcessor.cc.
References edm::RunPrincipal::endTime(), FDEBUG, i, statemachine::Run::processHistoryID(), edm::RunPrincipal::run(), and statemachine::Run::runNumber().
bool edm::EventProcessor::forkProcess | ( | std::string const & | jobReportFile | ) |
Definition at line 884 of file EventProcessor.cc.
References bk::beginJob(), edm::eventsetup::EventSetupRecord::doGet(), alignCSCRings::e, edm::hlt::Exception, cmsRelvalreport::exit, edm::EventSetup::fillAvailableRecordKeys(), edm::eventsetup::EventSetupRecord::fillRegisteredDataKeys(), edm::EventSetup::find(), edm::eventsetup::EventSetupRecord::find(), edm::installCustomHandler(), NULL, O_NONBLOCK, cmsPerfStripChart::operate(), or, pipe::pipe(), edm::shutdown_flag, relativeConstraints::value, 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 1185 of file EventProcessor.cc.
ServiceToken edm::EventProcessor::getToken | ( | ) |
Definition at line 655 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 1215 of file EventProcessor.cc.
|
inlineprivate |
Definition at line 229 of file EventProcessor.h.
References subProcess_.
Referenced by beginJob(), and endJob().
|
private |
Definition at line 393 of file EventProcessor.cc.
References edm::ScheduleItems::act_table_, act_table_, edm::ScheduleItems::actReg_, actReg_, edm::ScheduleItems::addCPRandTNS(), edm::ScheduleItems::branchIDListHelper_, branchIDListHelper_, continueAfterChildFailure_, emptyRunLumiMode_, esp_, espController_, eventSetupDataToExcludeFromPrefetching_, FDEBUG, fileMode_, edm::fillLooper(), forceESCacheClearOnNewRun_, edm::ParameterSet::getUntrackedParameter(), edm::ParameterSet::getUntrackedParameterSet(), edm::ParameterSet::getUntrackedParameterSetVector(), historyAppender_, cmsHarvester::index, edm::ScheduleItems::initMisc(), edm::ScheduleItems::initSchedule(), edm::ScheduleItems::initServices(), input_, edm::eventsetup::heterocontainer::insert(), edm::PrincipalCache::insert(), edm::ParentageRegistry::insertMapped(), edm::ParentageRegistry::instance(), edm::serviceregistry::kConfigurationOverrides, looper_, edm::makeInput(), numberOfForkedChildren_, numberOfSequentialEventsPerChild_, edm::PreallocationConfiguration::numberOfStreams(), cmsPerfStripChart::operate(), edm::parameterSet(), edm::popSubProcessParameterSet(), preallocations_, edm::ScheduleItems::preg_, preg_, principalCache_, 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, and subProcess_.
Referenced by EventProcessor().
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1485 of file EventProcessor.cc.
References FDEBUG.
|
delete |
|
private |
Definition at line 868 of file EventProcessor.cc.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1549 of file EventProcessor.cc.
References FDEBUG.
|
private |
Definition at line 1989 of file EventProcessor.cc.
References FDEBUG, edm::Service< T >::isAvailable(), edm::ProcessingController::lastOperationSucceeded(), edm::ProcessingController::requestedTransition(), edm::ProcessingController::setLastOperationSucceeded(), edm::ProcessingController::specifiedEventTransition(), ntuplemaker::status, and summarizeEdmComparisonLogfiles::succeeded.
|
private |
Definition at line 1871 of file EventProcessor.cc.
References cmsPerfStripChart::operate(), and processEvent().
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1814 of file EventProcessor.cc.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1777 of file EventProcessor.cc.
References PDRates::Run.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1944 of file EventProcessor.cc.
References pyrootRender::destroy(), and processEvent().
|
private |
Definition at line 1978 of file EventProcessor.cc.
References event(), and FDEBUG.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1458 of file EventProcessor.cc.
References FDEBUG, or, and findQualityFiles::size.
Referenced by Vispa.Plugins.EventBrowser.EventBrowserTabController.EventBrowserTabController::navigate(), Vispa.Main.TabController.TabController::open(), and Vispa.Main.TabController.TabController::refresh().
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1789 of file EventProcessor.cc.
References edm::hlt::Exception, and edm::errors::LogicError.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1759 of file EventProcessor.cc.
References edm::hlt::Exception, edm::errors::LogicError, and PDRates::Run.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1512 of file EventProcessor.cc.
References FDEBUG.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1501 of file EventProcessor.cc.
References FDEBUG.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1543 of file EventProcessor.cc.
References FDEBUG.
|
inline |
Definition at line 311 of file EventProcessor.h.
References runToCompletion().
Referenced by Types.EventID::cppID(), and Types.LuminosityBlockID::cppID().
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1270 of file EventProcessor.cc.
References cms::Exception::addAdditionalInfo(), cms::Exception::alreadyPrinted(), bk::beginJob(), alignCSCRings::e, edm::hlt::Exception, FDEBUG, edm::errors::LogicError, cmsPerfStripChart::operate(), runEdmFileComparison::returnCode, findQualityFiles::size, and edm::convertException::wrap().
Referenced by run().
|
virtual |
Implements edm::IEventProcessor.
Definition at line 2051 of file EventProcessor.cc.
References python.rootplot.argparse::message.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 2059 of file EventProcessor.cc.
References python.rootplot.argparse::message.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 2055 of file EventProcessor.cc.
References python.rootplot.argparse::message.
|
private |
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1554 of file EventProcessor.cc.
References FDEBUG.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 2045 of file EventProcessor.cc.
References FDEBUG.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1520 of file EventProcessor.cc.
References FDEBUG.
|
private |
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 1190 of file EventProcessor.cc.
int edm::EventProcessor::totalEventsFailed | ( | ) | const |
Return the number of events that have not passed any trigger. (N.B. totalEventsFailed() + totalEventsPassed() == totalEvents()
Definition at line 1200 of file EventProcessor.cc.
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 1195 of file EventProcessor.cc.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1836 of file EventProcessor.cc.
References FDEBUG.
|
virtual |
Implements edm::IEventProcessor.
Definition at line 1824 of file EventProcessor.cc.
References FDEBUG, statemachine::Run::processHistoryID(), and statemachine::Run::runNumber().
|
friend |
Definition at line 235 of file EventProcessor.h.
|
private |
Definition at line 262 of file EventProcessor.h.
Referenced by init().
|
private |
Definition at line 255 of file EventProcessor.h.
Referenced by beginJob(), endJob(), init(), and ~EventProcessor().
|
private |
Definition at line 286 of file EventProcessor.h.
|
private |
Definition at line 298 of file EventProcessor.h.
|
private |
Definition at line 300 of file EventProcessor.h.
|
private |
Definition at line 278 of file EventProcessor.h.
Referenced by beginJob().
|
private |
Definition at line 257 of file EventProcessor.h.
Referenced by init().
|
private |
Definition at line 294 of file EventProcessor.h.
Referenced by init().
|
private |
Definition at line 274 of file EventProcessor.h.
|
private |
Definition at line 273 of file EventProcessor.h.
|
private |
Definition at line 282 of file EventProcessor.h.
Referenced by init().
|
private |
Definition at line 261 of file EventProcessor.h.
Referenced by init(), and ~EventProcessor().
|
private |
Definition at line 260 of file EventProcessor.h.
Referenced by init(), and ~EventProcessor().
|
private |
Definition at line 304 of file EventProcessor.h.
Referenced by init().
|
private |
Definition at line 283 of file EventProcessor.h.
|
private |
Definition at line 285 of file EventProcessor.h.
|
private |
Definition at line 284 of file EventProcessor.h.
|
private |
Definition at line 269 of file EventProcessor.h.
|
private |
Definition at line 281 of file EventProcessor.h.
Referenced by init().
|
private |
Definition at line 289 of file EventProcessor.h.
Referenced by init().
|
private |
Definition at line 287 of file EventProcessor.h.
|
private |
Definition at line 267 of file EventProcessor.h.
Referenced by init().
|
private |
Definition at line 259 of file EventProcessor.h.
Referenced by beginJob(), endJob(), init(), and ~EventProcessor().
|
private |
Definition at line 270 of file EventProcessor.h.
Referenced by Config.Process::dumpConfig(), Config.Process::dumpPython(), endJob(), init(), and ~EventProcessor().
|
private |
Definition at line 288 of file EventProcessor.h.
|
private |
Definition at line 299 of file EventProcessor.h.
|
private |
Definition at line 276 of file EventProcessor.h.
|
private |
Definition at line 291 of file EventProcessor.h.
Referenced by init().
|
private |
Definition at line 292 of file EventProcessor.h.
Referenced by init().
|
private |
Definition at line 296 of file EventProcessor.h.
Referenced by beginJob(), endJob(), and init().
|
private |
Definition at line 256 of file EventProcessor.h.
Referenced by beginJob(), and init().
|
private |
Definition at line 277 of file EventProcessor.h.
Referenced by init().
|
private |
Definition at line 263 of file EventProcessor.h.
Referenced by init().
|
private |
Definition at line 264 of file EventProcessor.h.
Referenced by init().
|
private |
Definition at line 265 of file EventProcessor.h.
Referenced by Config.Process::_insertPaths(), beginJob(), endJob(), init(), Config.Process::prune(), and ~EventProcessor().
|
private |
Definition at line 258 of file EventProcessor.h.
Referenced by beginJob(), endJob(), getToken(), and init().
|
private |
Definition at line 293 of file EventProcessor.h.
Referenced by init().
|
private |
Definition at line 279 of file EventProcessor.h.
|
private |
Definition at line 280 of file EventProcessor.h.
|
private |
Definition at line 266 of file EventProcessor.h.
Referenced by beginJob(), Config.Process::dumpConfig(), Config.Process::dumpPython(), endJob(), hasSubProcess(), init(), and ~EventProcessor().